|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| SimpleReflection ($interface) | |
| classExists () | |
| classExistsSansAutoload () | |
| classOrInterfaceExists () | |
| classOrInterfaceExistsSansAutoload () | |
| getMethods () | |
| getInterfaces () | |
| getParent () | |
| isAbstract () | |
| isInterface () | |
| hasFinal () | |
| getSignature ($method) | |
| SimpleReflection ($interface) | |
| classExists () | |
| classExistsSansAutoload () | |
| classOrInterfaceExists () | |
| classOrInterfaceExistsSansAutoload () | |
| _classOrInterfaceExistsWithAutoload ($interface, $autoload) | |
| getMethods () | |
| getInterfaces () | |
| getInterfaceMethods () | |
| _isInterfaceMethod ($method) | |
| getParent () | |
| isAbstract () | |
| isInterface () | |
| hasFinal () | |
| _onlyParents ($interfaces) | |
| _isAbstractMethod ($name) | |
| _isConstructor ($name) | |
| _isAbstractMethodInParents ($name) | |
| _isStaticMethod ($name) | |
| getSignature ($name) | |
| _getFullSignature ($name) | |
| _getParameterSignatures ($method) | |
| _suppressSpurious ($name) | |
| _isOptional ($parameter) | |
Data Fields | |
| $_interface | |
Definition at line 15 of file reflection_php4.php.
| _classOrInterfaceExistsWithAutoload | ( | $ | interface, |
| $ | autoload | ||
| ) |
Needed to select the autoload feature in PHP5 for classes created dynamically.
| string | $interface | Class or interface name. |
| boolean | $autoload | True totriggerautoload. |
Definition at line 79 of file reflection_php5.php.

| _getFullSignature | ( | $ | name | ) |
For a signature specified in an interface, full details must be replicated to be a valid implementation.
| string | $name | Method name. |
Definition at line 314 of file reflection_php5.php.


| _getParameterSignatures | ( | $ | method | ) |
Gets the source code for each parameter.
| ReflectionMethod | $method | Method object from reflection API |
Definition at line 332 of file reflection_php5.php.


| _isAbstractMethod | ( | $ | name | ) |
Checks whether a method is abstract or not.
| string | $name | Method name. |
Definition at line 221 of file reflection_php5.php.

| _isAbstractMethodInParents | ( | $ | name | ) |
Checks whether a method is abstract in all parents or not.
| string | $name | Method name. |
Definition at line 245 of file reflection_php5.php.

| _isConstructor | ( | $ | name | ) |
Checks whether a method is the constructor.
| string | $name | Method name. |
Definition at line 235 of file reflection_php5.php.
| _isInterfaceMethod | ( | $ | method | ) |
Checks to see if the method signature has to be tightly specified.
| string | $method | Method name. |
Definition at line 134 of file reflection_php5.php.


| _isOptional | ( | $ | parameter | ) |
Test of a reflection parameter being optional that works with early versions of PHP5.
| reflectionParameter | $parameter | Is this optional. |
Definition at line 373 of file reflection_php5.php.

| _isStaticMethod | ( | $ | name | ) |
Checks whether a method is static or not.
| string | $name | Method name |
Definition at line 266 of file reflection_php5.php.

| _onlyParents | ( | $ | interfaces | ) |
Whittles a list of interfaces down to only the necessary top level parents.
| array | $interfaces | Reflection API interfaces to reduce. |
Definition at line 196 of file reflection_php5.php.

| _suppressSpurious | ( | $ | name | ) |
The SPL library has problems with the Reflection library. In particular, you can get extra characters in parameter names :(.
| string | $name | Parameter name. |
Definition at line 362 of file reflection_php5.php.

| classExists | ( | ) |
Checks that a class has been declared.
Definition at line 32 of file reflection_php4.php.
| classExists | ( | ) |
Checks that a class has been declared. Versions before PHP5.0.2 need a check that it's not really an interface.
Definition at line 33 of file reflection_php5.php.
Needed to kill the autoload feature in PHP5 for classes created dynamically.
Definition at line 42 of file reflection_php4.php.
Needed to kill the autoload feature in PHP5 for classes created dynamically.
Definition at line 47 of file reflection_php5.php.
Checks that a class or interface has been declared.
Definition at line 52 of file reflection_php4.php.
Checks that a class or interface has been declared.
Definition at line 57 of file reflection_php5.php.

Needed to kill the autoload feature in PHP5 for classes created dynamically.
Definition at line 62 of file reflection_php4.php.
Needed to kill the autoload feature in PHP5 for classes created dynamically.
Definition at line 67 of file reflection_php5.php.

Gets the list of methods for the implemented interfaces only.
Definition at line 119 of file reflection_php5.php.


| getInterfaces | ( | ) |
Gets the list of interfaces from a class. If the class name is actually an interface then just that interface is returned.
Definition at line 83 of file reflection_php4.php.

| getInterfaces | ( | ) |
Gets the list of interfaces from a class. If the class name is actually an interface then just that interface is returned.
Definition at line 105 of file reflection_php5.php.

| getMethods | ( | ) |
Gets the list of methods on a class or interface.
Definition at line 72 of file reflection_php4.php.
| getMethods | ( | ) |
Gets the list of methods on a class or interface.
Definition at line 94 of file reflection_php5.php.
| getParent | ( | ) |
Finds the parent class name.
Definition at line 92 of file reflection_php4.php.
| getParent | ( | ) |
Finds the parent class name.
Definition at line 143 of file reflection_php5.php.
| getSignature | ( | $ | method | ) |
Gets the source code matching the declaration of a method.
| string | $method | Method name. public |
Definition at line 132 of file reflection_php4.php.
| getSignature | ( | $ | name | ) |
Writes the source code matching the declaration of a method.
| string | $name | Method name. |
Definition at line 282 of file reflection_php5.php.

| hasFinal | ( | ) |
Scans for final methods, but as it's PHP 4 there aren't any.
Definition at line 122 of file reflection_php4.php.
| hasFinal | ( | ) |
Scans for final methods, as they screw up inherited mocks by not allowing you to override them.
Definition at line 178 of file reflection_php5.php.
| isAbstract | ( | ) |
Determines if the class is abstract, which for PHP 4 will never be the case.
Definition at line 102 of file reflection_php4.php.
| isAbstract | ( | ) |
Trivially determines if the class is abstract.
Definition at line 157 of file reflection_php5.php.
| isInterface | ( | ) |
Determines if the the entity is an interface, which for PHP 4 will never be the case.
Definition at line 112 of file reflection_php4.php.
| isInterface | ( | ) |
Trivially determines if the class is an interface.
Definition at line 167 of file reflection_php5.php.
| SimpleReflection | ( | $ | interface | ) |
Stashes the class/interface.
| string | $interface | Class or interface to inspect. |
Definition at line 22 of file reflection_php5.php.
| SimpleReflection | ( | $ | interface | ) |
Stashes the class/interface.
| string | $interface | Class or interface to inspect. |
Definition at line 23 of file reflection_php4.php.
| $_interface |
Definition at line 16 of file reflection_php4.php.