| [ Index ] |
|
Code source de PRADO 3.0.6 |
[Code source] [Imprimer] [Statistiques]
base include file for SimpleTest
| Version: | $Id: reflection_php5.php 1397 2006-09-07 07:55:53Z wei $ |
| Poids: | 275 lignes (10 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
SimpleReflection:: (18 méthodes):
SimpleReflection()
classExists()
classExistsSansAutoload()
classOrInterfaceExists()
classOrInterfaceExistsSansAutoload()
_classOrInterfaceExistsWithAutoload()
getMethods()
getInterfaces()
getInterfaceMethods()
_isInterfaceMethod()
getParent()
isAbstract()
_onlyParents()
getSignature()
_getFullSignature()
_getParameterSignatures()
_suppressSpurious()
_isOptional()
Classe: 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. |
| Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |