Zend_Server_Reflection_Function_AbstractFunction/Method Reflection
Decorates a ReflectionFunction. Allows setting and retrieving an alternate 'service' name (i.e., the name to be used when calling via a service), setting and retrieving the description (originally set using the docblock contents), retrieving the callback and callback type, retrieving additional method invocation arguments, and retrieving the method prototypes.
Located in /Zend/Server/Reflection/Function/Abstract.php (line 58)
| Class | Description |
|---|---|
Zend_Server_Reflection_Function
|
Function Reflection |
Zend_Server_Reflection_Method
|
Method Reflection |
Zend_Server_Reflection_Function_Abstract
__construct
( $r, [ $namespace = null], [ $argv = array()])
array
_buildSignatures
(array $return, string $returnDesc, $paramTypes, array $paramDesc, array $params)
array
$_argv
= array() (line 69)
Additional arguments to pass to method on invocation
string
$_class
(line 84)
Declaring class (needed for when serialization occurs)
array
$_config
= array() (line 78)
Used to store extra configuration for the method (typically done by the server class, e.g., to indicate whether or not to instantiate a class).
Associative array; access is as properties via __get() and __set()
string
$_description
= '' (line 90)
Function/method description
string
$_namespace
(line 96)
Namespace with which to prefix function/method name
array
$_prototypes
= array() (line 102)
Prototypes
ReflectionFunction
$_reflection
(line 63)
Constructor __construct (line 115)
Constructor
getDescription (line 454)
Retrieve the description
getInvokeArguments (line 475)
Retrieve additional invocation arguments
getNamespace (line 429)
Return method's namespace
getPrototypes (line 465)
Retrieve all prototypes as array of Zend_Server_Reflection_Prototypes
setDescription (line 440)
Set the description
setNamespace (line 410)
Set method's namespace
_addTree (line 157)
Create signature node tree
Recursive method to build the signature node tree. Increments through each array in $_sigParams, adding every value of the next level to the current value (unless the current value is null).
_buildSignatures (line 204)
Build method signatures
Builds method signatures using the array of return types and the array of parameters types
_buildTree (line 180)
Build the signature tree
Builds a signature tree starting at the return values and descending through each method argument. Returns an array of Zend_Server_Reflection_Nodes.
_reflect (line 263)
Use code reflection to create method signatures
Determines the method help/description text from the function DocBlock comment. Determines method signatures using a combination of ReflectionFunction and parsing of DocBlock @param and @return values.
__call (line 363)
Proxy reflection calls
__get (line 381)
Retrieve configuration parameters
Values are retrieved by key from $_config. Returns null if no value found.
__set (line 399)
Set configuration parameters
Values are stored by $key in $_config.
__wakeup (line 488)
Wakeup from serialization
Reflection needs explicit instantiation to work correctly. Re-instantiate reflection object on wakeup.
Documentation generated on Wed, 21 Feb 2007 11:45:30 -0800 by phpDocumentor 1.3.1