eZPublishCommunityProject  2013.5
eZ\Publish\Core\MVC\Legacy\Templating\Adapter\DefinitionBasedAdapter Class Reference
+ Inheritance diagram for eZ\Publish\Core\MVC\Legacy\Templating\Adapter\DefinitionBasedAdapter:
+ Collaboration diagram for eZ\Publish\Core\MVC\Legacy\Templating\Adapter\DefinitionBasedAdapter:

Public Member Functions

 __construct (ValueObject $valueObject)
 
- Public Member Functions inherited from eZ\Publish\Core\MVC\Legacy\Templating\Adapter\ValueObjectAdapter
 __construct (ValueObject $valueObject, array $attributesMap)
 
 attribute ($name)
 Returns the value of attribute $name. More...
 
 attributes ()
 Returns an array of supported attributes (only their names). More...
 
 getValueObject ()
 
 hasAttribute ($name)
 Returns true if object supports attribute $name. More...
 

Protected Member Functions

 definition ()
 Returns the hash map, mapping the legacy attributes name (key) to the value object property name (value) (e.g. More...
 

Constructor & Destructor Documentation

eZ\Publish\Core\MVC\Legacy\Templating\Adapter\DefinitionBasedAdapter::__construct ( ValueObject  $valueObject)

Member Function Documentation

eZ\Publish\Core\MVC\Legacy\Templating\Adapter\DefinitionBasedAdapter::definition ( )
abstractprotected

Returns the hash map, mapping the legacy attributes name (key) to the value object property name (value) (e.g.

my_legacy_attribute_name => newPropertyName).

The value of an entry in the returned array can also be a closure which would be called directly with the value object as only parameter.

Returns
array

Referenced by eZ\Publish\Core\MVC\Legacy\Templating\Adapter\DefinitionBasedAdapter\__construct().


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