Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Function/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 {@link Zend_Server_Reflection_Prototype prototypes}.
array $_argv = 'array'Additional arguments to pass to method on invocation
Detailsstring $_class = ''Declaring class (needed for when serialization occurs)
Detailsarray $_config = 'array'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 {@link __get()} and {@link __set()}
Detailsstring $_description = ''Function/method description
Detailsstring $_namespace = ''Namespace with which to prefix function/method name
Details $_paramDesc = ''
Detailsarray $_prototypes = 'array'Prototypes
DetailsReflectionFunction $_reflection = ''
Details $_return = ''
Details $_returnDesc = ''
Details $_sigParams = ''
Details $_sigParamsDepth = ''
Details__call(
string $method, array $args
)
:
mixedProxy reflection calls
Details__construct(
ReflectionFunction $r, $namespace
=
null, $argv
=
array
)
:
Constructor
Details__get(
string $key
)
:
mixedRetrieve configuration parameters
Values are retrieved by key from {@link $_config}. Returns null if no value found.
Details__set(
string $key, mixed $value
)
:
voidSet configuration parameters
Values are stored by $key in {@link $_config}.
Details__wakeup(
)
:
voidWakeup from serialization
Reflection needs explicit instantiation to work correctly. Re-instantiate reflection object on wakeup.
Details_addTree(
Zend_Server_Reflection_Node $parent, int $level
=
0
)
:
voidCreate signature node tree
Recursive method to build the signature node tree. Increments through each array in {@link $_sigParams}, adding every value of the next level to the current value (unless the current value is null).
Details_buildSignatures(
array $return, string $returnDesc, $paramTypes, array $paramDesc
)
:
arrayBuild method signatures
Builds method signatures using the array of return types and the array of parameters types
Details_buildTree(
)
:
arrayBuild the signature tree
Builds a signature tree starting at the return values and descending through each method argument. Returns an array of {@link Zend_Server_Reflection_Node}s.
Details_reflect(
)
:
arrayUse 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.
DetailsgetDescription(
)
:
voidRetrieve the description
DetailsgetInvokeArguments(
)
:
arrayRetrieve additional invocation arguments
DetailsgetNamespace(
)
:
stringReturn method's namespace
DetailsgetPrototypes(
)
:
arrayRetrieve all prototypes as array of {@link Zend_Server_Reflection_Prototype Zend_Server_Reflection_Prototypes}
DetailssetDescription(
string $string
)
:
voidSet the description
DetailssetNamespace(
string $namespace
)
:
voidSet method's namespace
Details