johannes Mon Apr 25 15:08:03 2005 EDT
Modified files: /phpdoc/en/language/oop5 reflection.xml Log: new ReflectionProperty::getDocComment() method http://cvs.php.net/diff.php/phpdoc/en/language/oop5/reflection.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc/en/language/oop5/reflection.xml diff -u phpdoc/en/language/oop5/reflection.xml:1.9 phpdoc/en/language/oop5/reflection.xml:1.10 --- phpdoc/en/language/oop5/reflection.xml:1.9 Thu Feb 17 13:01:53 2005 +++ phpdoc/en/language/oop5/reflection.xml Mon Apr 25 15:08:02 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <sect1 id="language.oop5.reflection"> <title>Reflection</title> <sect2 id="language.oop5.reflection.introduction"> @@ -619,11 +619,17 @@ public mixed getValue(stdclass object) public void setValue(stdclass object, mixed value) public ReflectionClass getDeclaringClass() + public string getDocComment() } ?> ]]> </programlisting> </informalexample> + <note> + <simpara> + <function>getDocComment</function> was added in PHP 5.1.0. + </simpara> + </note> <para> To introspect a property, you will first have to create an instance of the <classname>ReflectionProperty</classname> class. You can then