eZPublishCommunityProject  2013.9
eZ\Publish\Core\MVC\Legacy\Templating\LegacyCompatible Interface Reference

This interface must be implemented to make objects compatible with legacy eZ Template engine. More...

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

Public Member Functions

 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...
 

Detailed Description

This interface must be implemented to make objects compatible with legacy eZ Template engine.

Member Function Documentation

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

Returns the value of attribute $name.

Parameters
string$name
Exceptions
\InvalidArgumentExceptionIf $name is not supported as a valid attribute
Returns
mixed

Implemented in eZ\Publish\Core\MVC\Legacy\Templating\LegacyAdapter, and eZ\Publish\Core\MVC\Legacy\Templating\Adapter\ValueObjectAdapter.

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

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

Returns
array

Implemented in eZ\Publish\Core\MVC\Legacy\Templating\LegacyAdapter, and eZ\Publish\Core\MVC\Legacy\Templating\Adapter\ValueObjectAdapter.

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

Returns true if object supports attribute $name.

Parameters
string$name
Returns
boolean

Implemented in eZ\Publish\Core\MVC\Legacy\Templating\LegacyAdapter, and eZ\Publish\Core\MVC\Legacy\Templating\Adapter\ValueObjectAdapter.


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