-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Translate ReflectionProperty::isDynamic (#1969)
- Loading branch information
Showing
1 changed file
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- EN-Revision: 969db61a5f40e5f1cd259c3f46b74d8393ee2a23 Maintainer: Fan2Shrek Status: ready --> | ||
<!-- Reviewed: yes --> | ||
<refentry xml:id="reflectionproperty.isdynamic" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<refnamediv> | ||
<refname>ReflectionProperty::isDynamic</refname> | ||
<refpurpose>Vérifie si la propriété est une propriété dynamique</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<methodsynopsis role="ReflectionProperty"> | ||
<modifier>public</modifier> <type>bool</type><methodname>ReflectionProperty::isDynamic</methodname> | ||
<void/> | ||
</methodsynopsis> | ||
<simpara> | ||
Vérifie si la propriété a été déclarée à l'exécution, ou si la | ||
propriété a été déclarée à la compilation. | ||
</simpara> | ||
</refsect1> | ||
|
||
<refsect1 role="parameters"> | ||
&reftitle.parameters; | ||
&no.function.parameters; | ||
</refsect1> | ||
|
||
<refsect1 role="returnvalues"> | ||
&reftitle.returnvalues; | ||
<simpara> | ||
&true; si la propriété a été déclarée à l'exécution, ou &false; si | ||
elle a été créée à la compilation. | ||
</simpara> | ||
</refsect1> | ||
|
||
<refsect1 role="examples"> | ||
&reftitle.examples; | ||
<example> | ||
<title>Exemple de <methodname>ReflectionProperty::isDynamic</methodname></title> | ||
<programlisting role="php"> | ||
<![CDATA[ | ||
<?php | ||
#[\AllowDynamicProperties] | ||
class Foo { | ||
public $bar; | ||
} | ||
$o = new Foo(); | ||
$o->bar = 42; | ||
$o->baz = 42; | ||
$ro = new ReflectionObject($o); | ||
var_dump($ro->getProperty('bar')->isDynamic()); | ||
var_dump($ro->getProperty('baz')->isDynamic()); | ||
?> | ||
]]> | ||
</programlisting> | ||
&example.outputs; | ||
<screen> | ||
<![CDATA[ | ||
bool(false) | ||
bool(true) | ||
]]> | ||
</screen> | ||
</example> | ||
</refsect1> | ||
|
||
<refsect1 role="seealso"> | ||
&reftitle.seealso; | ||
<simplelist> | ||
<member><methodname>ReflectionProperty::getValue</methodname></member> | ||
</simplelist> | ||
</refsect1> | ||
|
||
</refentry> | ||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |