eZPublishCommunityProject  2013.6
eZ\Publish\Core\MVC\Legacy\Templating\LegacyAdapter Class Reference

Generic legacy compatible object. More...

+ Inheritance diagram for eZ\Publish\Core\MVC\Legacy\Templating\LegacyAdapter:
+ Collaboration diagram for eZ\Publish\Core\MVC\Legacy\Templating\LegacyAdapter:

Public Member Functions

 __construct ($transferredObject)
 
 attribute ($name)
 Returns the value of attribute $name. More...
 
 attributes ()
 Returns an array of supported attributes (only their names). More...
 
 hasAttribute ($name)
 Returns true if object supports attribute $name. More...
 

Private Attributes

 $getters
 
 $object
 
 $properties
 

Detailed Description

Generic legacy compatible object.

Aggregates any object that needs to be passed to an eZ Publish legacy template.

Constructor & Destructor Documentation

eZ\Publish\Core\MVC\Legacy\Templating\LegacyAdapter::__construct (   $transferredObject)
Parameters
mixed$transferredObjectObject being passed to the legacy template.

Member Function Documentation

eZ\Publish\Core\MVC\Legacy\Templating\LegacyAdapter::attribute (   $name)

Returns the value of attribute $name.

Parameters
string$name
Exceptions
\InvalidArgumentExceptionIf $name is not supported by aggregated object
Returns
mixed

Implements eZ\Publish\Core\MVC\Legacy\Templating\LegacyCompatible.

eZ\Publish\Core\MVC\Legacy\Templating\LegacyAdapter::attributes ( )

Returns an array of supported attributes (only their names).

Returns
array

Implements eZ\Publish\Core\MVC\Legacy\Templating\LegacyCompatible.

eZ\Publish\Core\MVC\Legacy\Templating\LegacyAdapter::hasAttribute (   $name)

Returns true if object supports attribute $name.

Parameters
string$name
Returns
boolean

Implements eZ\Publish\Core\MVC\Legacy\Templating\LegacyCompatible.

Member Data Documentation

eZ\Publish\Core\MVC\Legacy\Templating\LegacyAdapter::$getters
private
eZ\Publish\Core\MVC\Legacy\Templating\LegacyAdapter::$object
private
eZ\Publish\Core\MVC\Legacy\Templating\LegacyAdapter::$properties
private

The documentation for this class was generated from the following file: