|
Moodle
2.2.1
http://www.collinsharper.com
|
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 | |
Definition at line 33 of file Decorator.php.
| __construct | ( | $ | object, |
| $ | name = null |
||
| ) |
Class constructor
| object | $object | Object to decorate |
| null | string | $name | Name of the object |
Definition at line 53 of file Decorator.php.
| __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.
| string | $method | Name of method called |
| array | $args | Arguments 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.
| string | $property | Property name to retrieve |
Definition at line 68 of file Decorator.php.

| _decorate | ( | $ | result | ) | [protected] |
Decorate a value returned by the result object. The default implementation here only decorates child objects.
| mixed | $result | Value to decorate |
Definition at line 116 of file Decorator.php.

| _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".
| string | $property | Property name to inflect |
Definition at line 104 of file Decorator.php.

Return the name of the object being decorated
Definition at line 139 of file Decorator.php.
$_name = null [protected] |
Definition at line 39 of file Decorator.php.
$_object = null [protected] |
Definition at line 45 of file Decorator.php.