nlopess Sun Dec 26 07:35:09 2004 EDT
Modified files: /phpdoc/en/language/oop5 reflection.xml Log: new ReflectionClass::hasMethod() http://cvs.php.net/diff.php/phpdoc/en/language/oop5/reflection.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc/en/language/oop5/reflection.xml diff -u phpdoc/en/language/oop5/reflection.xml:1.6 phpdoc/en/language/oop5/reflection.xml:1.7 --- phpdoc/en/language/oop5/reflection.xml:1.6 Sun Nov 21 06:54:44 2004 +++ phpdoc/en/language/oop5/reflection.xml Sun Dec 26 07:35:08 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <sect1 id="language.oop5.reflection"> <title>Reflection</title> <sect2 id="language.oop5.reflection.introduction"> @@ -317,6 +317,7 @@ public bool isInternal() public bool isUserDefined() public bool isInstantiable() + public bool hasMethod(string name) public string getFileName() public int getStartLine() public int getEndLine() @@ -348,6 +349,11 @@ ]]> </programlisting> </informalexample> + <note> + <simpara> + <function>hasMethod</function> was added in PHP 5.1.0. + </simpara> + </note> <para> To introspect a class, you will first have to create an instance of the <classname>ReflectionClass</classname> class. You can then @@ -530,7 +536,7 @@ } // Create an instance of the Reflection_Method class -$method= new ReflectionMethod('Counter', 'increment'); +$method = new ReflectionMethod('Counter', 'increment'); // Print out basic information printf(