Moodle  2.2.1
http://www.collinsharper.com
Zend_Server_Reflection_Function_Abstract Class Reference
Inheritance diagram for Zend_Server_Reflection_Function_Abstract:

Public Member Functions

 __construct (Reflector $r, $namespace=null, $argv=array())
 __call ($method, $args)
 __get ($key)
 __set ($key, $value)
 setNamespace ($namespace)
 getNamespace ()
 setDescription ($string)
 getDescription ()
 getPrototypes ()
 getInvokeArguments ()
 __wakeup ()

Protected Member Functions

 _addTree (Zend_Server_Reflection_Node $parent, $level=0)
 _buildTree ()
 _buildSignatures ($return, $returnDesc, $paramTypes, $paramDesc)
 _reflect ()

Protected Attributes

 $_reflection
 $_argv = array()
 $_config = array()
 $_class
 $_description = ''
 $_namespace
 $_prototypes = array()

Detailed Description

Definition at line 53 of file Abstract.php.


Constructor & Destructor Documentation

__construct ( Reflector $  r,
namespace = null,
argv = array() 
)

Constructor

Parameters:
ReflectionFunction$r

Definition at line 110 of file Abstract.php.

Here is the call graph for this function:


Member Function Documentation

__call ( method,
args 
)

Proxy reflection calls

Parameters:
string$method
array$args
Returns:
mixed

Definition at line 366 of file Abstract.php.

__get ( key)

Retrieve configuration parameters

Values are retrieved by key from $_config. Returns null if no value found.

Parameters:
string$key
Returns:
mixed

Definition at line 385 of file Abstract.php.

__set ( key,
value 
)

Set configuration parameters

Values are stored by $key in $_config.

Parameters:
string$key
mixed$value
Returns:
void

Definition at line 403 of file Abstract.php.

__wakeup ( )

Wakeup from serialization

Reflection needs explicit instantiation to work correctly. Re-instantiate reflection object on wakeup.

Returns:
void

Reimplemented in Zend_Server_Reflection_Method.

Definition at line 494 of file Abstract.php.

_addTree ( Zend_Server_Reflection_Node parent,
level = 0 
) [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).

Parameters:
Zend_Server_Reflection_Node$parent
int$level
Returns:
void

Definition at line 153 of file Abstract.php.

Here is the caller graph for this function:

_buildSignatures ( return,
returnDesc,
paramTypes,
paramDesc 
) [protected]

Build method signatures

Builds method signatures using the array of return types and the array of parameters types

Parameters:
array$returnArray of return types
string$returnDescReturn value description
array$paramsArray of arguments (each an array of types)
array$paramDescArray of parameter descriptions
Returns:
array

Definition at line 200 of file Abstract.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_buildTree ( ) [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.

Returns:
array

Definition at line 176 of file Abstract.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_reflect ( ) [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

Parameters:
and
Returns:
values.
Parameters:
ReflectionFunction$function
Returns:
array

Definition at line 259 of file Abstract.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Retrieve the description

Returns:
void

Definition at line 460 of file Abstract.php.

Here is the caller graph for this function:

Retrieve additional invocation arguments

Returns:
array

Definition at line 481 of file Abstract.php.

Here is the caller graph for this function:

Return method's namespace

Returns:
string

Definition at line 434 of file Abstract.php.

Here is the caller graph for this function:

Retrieve all prototypes as array of Zend_Server_Reflection_Prototypes

Returns:
array

Definition at line 471 of file Abstract.php.

Here is the caller graph for this function:

setDescription ( string)

Set the description

Parameters:
string$string
Returns:
void

Definition at line 445 of file Abstract.php.

Here is the caller graph for this function:

setNamespace ( namespace)

Set method's namespace

Parameters:
string$namespace
Returns:
void

Definition at line 414 of file Abstract.php.

Here is the caller graph for this function:


Field Documentation

$_argv = array() [protected]

Definition at line 64 of file Abstract.php.

$_class [protected]

Reimplemented in Zend_Server_Reflection_Method.

Definition at line 79 of file Abstract.php.

$_config = array() [protected]

Definition at line 73 of file Abstract.php.

$_description = '' [protected]

Definition at line 85 of file Abstract.php.

$_namespace [protected]

Definition at line 91 of file Abstract.php.

$_prototypes = array() [protected]

Definition at line 97 of file Abstract.php.

$_reflection [protected]

Definition at line 58 of file Abstract.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations