| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Source view] [Print] [Project Stats]
base include file for SimpleTest
| Version: | $Id$ |
| File Size: | 280 lines (10 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
SimpleReflection:: (18 methods):
SimpleReflection()
classExists()
classExistsSansAutoload()
classOrInterfaceExists()
classOrInterfaceExistsSansAutoload()
_classOrInterfaceExistsWithAutoload()
getMethods()
getInterfaces()
getInterfaceMethods()
_isInterfaceMethod()
getParent()
isAbstract()
_onlyParents()
getSignature()
_getFullSignature()
_getParameterSignatures()
_suppressSpurious()
_isOptional()
Class: SimpleReflection - X-Ref
Version specific reflection API.| SimpleReflection($interface) X-Ref |
| Stashes the class/interface. param: string $interface Class or interface |
| classExists() X-Ref |
| Checks that a class has been declared. Versions before PHP5.0.2 need a check that it's not really an interface. return: boolean True if defined. |
| classExistsSansAutoload() X-Ref |
| Needed to kill the autoload feature in PHP5 for classes created dynamically. return: boolean True if defined. |
| classOrInterfaceExists() X-Ref |
| Checks that a class or interface has been declared. return: boolean True if defined. |
| classOrInterfaceExistsSansAutoload() X-Ref |
| Needed to kill the autoload feature in PHP5 for classes created dynamically. return: boolean True if defined. |
| _classOrInterfaceExistsWithAutoload($interface, $autoload) X-Ref |
| Needed to select the autoload feature in PHP5 for classes created dynamically. param: string $interface Class or interface name. param: boolean $autoload True totriggerautoload. return: boolean True if interface defined. |
| getMethods() X-Ref |
| Gets the list of methods on a class or interface. Needs to recursively look at all of the interfaces included. returns: array List of method names. |
| getInterfaces() X-Ref |
| Gets the list of interfaces from a class. If the class name is actually an interface then just that interface is returned. returns: array List of interfaces. |
| getInterfaceMethods() X-Ref |
| Gets the list of methods for the implemented interfaces only. returns: array List of enforced method signatures. |
| _isInterfaceMethod($method) X-Ref |
| Checks to see if the method signature has to be tightly specified. returns: boolean True if enforced. param: string $method Method name. |
| getParent() X-Ref |
| Finds the parent class name. returns: string Parent class name. |
| isAbstract() X-Ref |
| Determines if the class is abstract. returns: boolean True if abstract. |
| _onlyParents($interfaces) X-Ref |
| Wittles a list of interfaces down to only the top level parents. returns: array List of parent interface names. param: array $interfaces Reflection API interfaces |
| getSignature($name) X-Ref |
| Gets the source code matching the declaration of a method. param: string $name Method name. return: string Method signature up to last |
| _getFullSignature($name) X-Ref |
| For a signature specified in an interface, full details must be replicated to be a valid implementation. param: string $name Method name. return: string Method signature up to last |
| _getParameterSignatures($method) X-Ref |
| Gets the source code for each parameter. param: ReflectionMethod $method Method object from return: array List of strings, each |
| _suppressSpurious($name) X-Ref |
| The SPL library has problems with the Reflection library. In particular, you can get extra characters in parameter names :(. param: string $name Parameter name. return: string Cleaner name. |
| _isOptional($parameter) X-Ref |
| Test of a reflection parameter being optional that works with early versions of PHP5. param: reflectionParameter $parameter Is this optional. return: boolean True if optional. |
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |