|
Moodle
2.2.1
http://www.collinsharper.com
|

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() | |
Definition at line 53 of file Abstract.php.
| __construct | ( | Reflector $ | r, |
| $ | namespace = null, |
||
| $ | argv = array() |
||
| ) |
Constructor
| ReflectionFunction | $r |
Definition at line 110 of file Abstract.php.

| __call | ( | $ | method, |
| $ | args | ||
| ) |
Proxy reflection calls
| string | $method | |
| array | $args |
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.
| string | $key |
Definition at line 385 of file Abstract.php.
| __set | ( | $ | key, |
| $ | value | ||
| ) |
Set configuration parameters
Values are stored by $key in $_config.
| string | $key | |
| mixed | $value |
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.
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).
| Zend_Server_Reflection_Node | $parent | |
| int | $level |
Definition at line 153 of file Abstract.php.

| _buildSignatures | ( | $ | return, |
| $ | returnDesc, | ||
| $ | paramTypes, | ||
| $ | paramDesc | ||
| ) | [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 |
Definition at line 200 of file Abstract.php.


| _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.
Definition at line 176 of file Abstract.php.


| _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
| and |
| ReflectionFunction | $function |
Definition at line 259 of file Abstract.php.


| getDescription | ( | ) |
Retrieve the description
Definition at line 460 of file Abstract.php.

Retrieve additional invocation arguments
Definition at line 481 of file Abstract.php.

| getNamespace | ( | ) |
Return method's namespace
Definition at line 434 of file Abstract.php.

| getPrototypes | ( | ) |
Retrieve all prototypes as array of Zend_Server_Reflection_Prototypes
Definition at line 471 of file Abstract.php.

| setDescription | ( | $ | string | ) |
Set the description
| string | $string |
Definition at line 445 of file Abstract.php.

| setNamespace | ( | $ | namespace | ) |
Set method's namespace
| string | $namespace |
Definition at line 414 of file Abstract.php.

$_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.