eZPublishCommunityProject  2012.12
eZ\Publish\Core\MVC\Legacy\Templating\Converter\ApiContentConverter Class Reference
+ Inheritance diagram for eZ\Publish\Core\MVC\Legacy\Templating\Converter\ApiContentConverter:
+ Collaboration diagram for eZ\Publish\Core\MVC\Legacy\Templating\Converter\ApiContentConverter:

Public Member Functions

 __construct (\Closure $legacyKernelClosure)
 
 convert ($object)
 Converts $object to make it compatible with eZTemplate API. More...
 
 convertAll ()
 Converts all registered objects and returns them in a hash where the object's alias is the key. More...
 
 register ($object, $alias)
 Registers an object to the converter. More...
 

Protected Member Functions

 getLegacyKernel ()
 

Private Attributes

 $apiObjects
 
 $legacyKernelClosure
 

Constructor & Destructor Documentation

eZ\Publish\Core\MVC\Legacy\Templating\Converter\ApiContentConverter::__construct ( \Closure  $legacyKernelClosure)

Member Function Documentation

eZ\Publish\Core\MVC\Legacy\Templating\Converter\ApiContentConverter::convert (   $object)

Converts $object to make it compatible with eZTemplate API.

Parameters
object$object
Exceptions
\InvalidArgumentExceptionIf $object is actually not an object
Returns
mixed|

Implements eZ\Publish\Core\MVC\Legacy\Templating\Converter\ObjectConverter.

eZ\Publish\Core\MVC\Legacy\Templating\Converter\ApiContentConverter::convertAll ( )

Converts all registered objects and returns them in a hash where the object's alias is the key.

Returns
array|[]

Implements eZ\Publish\Core\MVC\Legacy\Templating\Converter\MultipleObjectConverter.

eZ\Publish\Core\MVC\Legacy\Templating\Converter\ApiContentConverter::getLegacyKernel ( )
finalprotected
eZ\Publish\Core\MVC\Legacy\Templating\Converter\ApiContentConverter::register (   $object,
  $alias 
)

Registers an object to the converter.

$alias is the variable name that will be exposed in the legacy template.

Parameters
mixed$object
string$alias
Exceptions
\InvalidArgumentExceptionIf $object is not an object
Returns
void

Implements eZ\Publish\Core\MVC\Legacy\Templating\Converter\MultipleObjectConverter.

Member Data Documentation

eZ\Publish\Core\MVC\Legacy\Templating\Converter\ApiContentConverter::$apiObjects
private
eZ\Publish\Core\MVC\Legacy\Templating\Converter\ApiContentConverter::$legacyKernelClosure
private

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