Moodle  2.2.1
http://www.collinsharper.com
Zend_Service_StrikeIron_Decorator Class Reference

Public Member Functions

 __construct ($object, $name=null)
 __get ($property)
 __call ($method, $args)
 getDecoratedObject ()
 getDecoratedObjectName ()

Protected Member Functions

 _inflect ($property)
 _decorate ($result)

Protected Attributes

 $_name = null
 $_object = null

Detailed Description

Definition at line 33 of file Decorator.php.


Constructor & Destructor Documentation

__construct ( object,
name = null 
)

Class constructor

Parameters:
object$objectObject to decorate
null | string$nameName of the object

Definition at line 53 of file Decorator.php.


Member Function Documentation

__call ( method,
args 
)

Proxy method calls to the decorated object. This will only be used when the SOAPClient returns a custom PHP object via its classmap option so no inflection is done.

Parameters:
string$methodName of method called
array$argsArguments for method

Definition at line 91 of file Decorator.php.

__get ( property)

Proxy property access to the decorated object, inflecting the property name and decorating any child objects returned. If the property is not found in the decorated object, return NULL as a convenience feature to avoid notices.

Parameters:
string$propertyProperty name to retrieve
Returns:
mixed Value of property or NULL

Definition at line 68 of file Decorator.php.

Here is the call graph for this function:

_decorate ( result) [protected]

Decorate a value returned by the result object. The default implementation here only decorates child objects.

Parameters:
mixed$resultValue to decorate
Returns:
mixed Decorated result

Definition at line 116 of file Decorator.php.

Here is the caller graph for this function:

_inflect ( property) [protected]

Inflect a property name from PHP-style to the result object's style. The default implementation here only inflects the case of the first letter, e.g. from "fooBar" to "FooBar".

Parameters:
string$propertyProperty name to inflect
Returns:
string Inflected property name

Definition at line 104 of file Decorator.php.

Here is the caller graph for this function:

Return the object being decorated

Returns:
object

Definition at line 129 of file Decorator.php.

Return the name of the object being decorated

Returns:
null|string

Definition at line 139 of file Decorator.php.


Field Documentation

$_name = null [protected]

Definition at line 39 of file Decorator.php.

$_object = null [protected]

Definition at line 45 of file Decorator.php.


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