Zend Framework
1.12
|
Public Member Functions | |
__construct (Reflector $r, $namespace=null, $argv=array()) | |
Constructor. | |
__call ($method, $args) | |
Proxy reflection calls. | |
__get ($key) | |
Retrieve configuration parameters. | |
__set ($key, $value) | |
Set configuration parameters. | |
setNamespace ($namespace) | |
Set method's namespace. | |
getNamespace () | |
Return method's namespace. | |
setDescription ($string) | |
Set the description. | |
getDescription () | |
Retrieve the description. | |
getPrototypes () | |
Retrieve all prototypes as array of Zend_Server_Reflection_Prototypes. | |
getInvokeArguments () | |
Retrieve additional invocation arguments. | |
__wakeup () | |
Wakeup from serialization. | |
Protected Member Functions | |
_addTree (Zend_Server_Reflection_Node $parent, $level=0) | |
Create signature node tree. | |
_buildTree () | |
Build the signature tree. | |
_buildSignatures ($return, $returnDesc, $paramTypes, $paramDesc) | |
Build method signatures. | |
_reflect () | |
Use code reflection to create method signatures. | |
Protected Attributes | |
$_reflection | |
$_argv = array() | |
$_config = array() | |
$_class | |
$_description = '' | |
$_namespace | |
$_prototypes = array() | |
__construct | ( | Reflector | $r, |
$namespace = null , |
|||
$argv = array() |
|||
) |
Constructor.
ReflectionFunction | $r |
__call | ( | $method, | |
$args | |||
) |
Proxy reflection calls.
string | $method | |
array | $args |
__get | ( | $key | ) |
Retrieve configuration parameters.
Values are retrieved by key from $_config. Returns null if no value found.
string | $key |
__set | ( | $key, | |
$value | |||
) |
Set configuration parameters.
Values are stored by $key in $_config.
string | $key | |
mixed | $value |
__wakeup | ( | ) |
Wakeup from serialization.
Reflection needs explicit instantiation to work correctly. Re-instantiate reflection object on wakeup.
|
protected |
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).
Zend_Server_Reflection_Node | $parent | |
int | $level |
|
protected |
Build method signatures.
Builds method signatures using the array of return types and the array of parameters types
array | $return | Array of return types |
string | $returnDesc | Return value description |
array | $params | Array of arguments (each an array of types) |
array | $paramDesc | Array of parameter descriptions |
|
protected |
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.
|
protected |
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
and@return | values. | |
ReflectionFunction | $function |
getDescription | ( | ) |
Retrieve the description.
getInvokeArguments | ( | ) |
Retrieve additional invocation arguments.
getNamespace | ( | ) |
Return method's namespace.
getPrototypes | ( | ) |
Retrieve all prototypes as array of Zend_Server_Reflection_Prototypes.
setDescription | ( | $string | ) |
Set the description.
string | $string |
setNamespace | ( | $namespace | ) |
Set method's namespace.
string | $namespace |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |