mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
new ReflectionClass::hasMethod()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@175590 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
b9fb613d21
commit
993c8c7470
1 changed files with 8 additions and 2 deletions
|
@ -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 @@ class ReflectionClass implements Reflector
|
|||
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 @@ class ReflectionClass implements Reflector
|
|||
]]>
|
||||
</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 @@ class Counter
|
|||
}
|
||||
|
||||
// Create an instance of the Reflection_Method class
|
||||
$method= new ReflectionMethod('Counter', 'increment');
|
||||
$method = new ReflectionMethod('Counter', 'increment');
|
||||
|
||||
// Print out basic information
|
||||
printf(
|
||||
|
|
Loading…
Reference in a new issue