Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Service_StrikeIron_Decorator Class Reference

Public Member Functions

 __construct ($object, $name=null)
 Class constructor.
 
 __get ($property)
 Proxy property access to the decorated object, inflecting the property name and decorating any child objects returned.
 
 __call ($method, $args)
 Proxy method calls to the decorated object.
 
 getDecoratedObject ()
 Return the object being decorated.
 
 getDecoratedObjectName ()
 Return the name of the object being decorated.
 

Protected Member Functions

 _inflect ($property)
 Inflect a property name from PHP-style to the result object's style.
 
 _decorate ($result)
 Decorate a value returned by the result object.
 

Protected Attributes

 $_name = null
 
 $_object = null
 

Constructor & Destructor Documentation

__construct (   $object,
  $name = null 
)

Class constructor.

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

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
__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
_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
_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
getDecoratedObject ( )

Return the object being decorated.

Returns
object
getDecoratedObjectName ( )

Return the name of the object being decorated.

Returns
null|string

Member Data Documentation

$_name = null
protected
$_object = null
protected