[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Service/StrikeIron/ -> Decorator.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 143 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Service_StrikeIron_Decorator:: (7 methods):
  __construct()
  __get()
  __call()
  _inflect()
  _decorate()
  getDecoratedObject()
  getDecoratedObjectName()


Class: Zend_Service_StrikeIron_Decorator  - X-Ref

Decorates a StrikeIron response object returned by the SOAP extension
to provide more a PHP-like interface.

__construct($object, $name = null)   X-Ref
Class constructor

param: object       $object  Object to decorate
param: null|string  $name    Name of the object

__get($property)   X-Ref
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.

param: string $property  Property name to retrieve
return: mixed             Value of property or NULL

__call($method, $args)   X-Ref
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.

param: string  $method  Name of method called
param: array   $args    Arguments for method

_inflect($property)   X-Ref
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".

param: string $property  Property name to inflect
return: string            Inflected property name

_decorate($result)   X-Ref
Decorate a value returned by the result object.  The default
implementation here only decorates child objects.

param: mixed  $result  Value to decorate
return: mixed           Decorated result

getDecoratedObject()   X-Ref
Return the object being decorated

return: object

getDecoratedObjectName()   X-Ref
Return the name of the object being decorated

return: null|string



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1