\Zend_Server_Reflection_Function_Abstract
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 .
- Copyright: Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Server_Reflection_Function_Abstract
{
- // members
- protected ReflectionFunction $_reflection;
- protected array $_argv = ;
- protected array $_config = ;
- protected $_class;
- protected string $_description = '';
- protected $_namespace;
- protected array $_prototypes = ;
- private $_return;
- private $_returnDesc;
- private $_paramDesc;
- private $_sigParams;
- private $_sigParamsDepth;
- // methods
- public void __construct()
- protected void _addTree()
- protected array _buildTree()
- protected array _buildSignatures()
- protected array _reflect()
- public mixed __call()
- public mixed __get()
- public void __set()
- public void setNamespace()
- public string getNamespace()
- public void setDescription()
- public void getDescription()
- public array getPrototypes()
- public array getInvokeArguments()
- public void __wakeup()
Members
private
- $_paramDesc
- $_return
- $_returnDesc
- $_sigParams
- $_sigParamsDepth
protected
- $_argv
—
array
Additional arguments to pass to method on invocation - $_class
—
string
Declaring class (needed for when serialization occurs) - $_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). - $_description
—
string
Function/method description - $_namespace
—
string
Namespace with which to prefix function/method name - $_prototypes
—
array
Prototypes - $_reflection — ReflectionFunction
Methods
protected
- _addTree() — Create signature node tree
- _buildSignatures() — Build method signatures
- _buildTree() — Build the signature tree
- _reflect() — Use code reflection to create method signatures
public
- __construct() — Constructor
- __call() — Proxy reflection calls
- __get() — Retrieve configuration parameters
- __set() — Set configuration parameters
- __wakeup() — Wakeup from serialization
- getDescription() — Retrieve the description
- getInvokeArguments() — Retrieve additional invocation arguments
- getNamespace() — Return method's namespace
- getPrototypes() — Retrieve all prototypes as array of {@link Zend_Server_Reflection_Prototype Zend_Server_Reflection_Prototypes}
- setDescription() — Set the description
- setNamespace() — Set method's namespace