eZPublishCommunityProject  2013.5
eZ\Publish\Core\REST\Common\FieldTypeProcessorRegistry Class Reference

FieldTypeProcessorRegistry. More...

Public Member Functions

 __construct (array $processors=array())
 
 getProcessor ($fieldTypeIdentifier)
 Returns the processor for $fieldTypeIdentifier. More...
 
 hasProcessor ($fieldTypeIdentifier)
 Returns if a processor is registered for $fieldTypeIdentifier. More...
 
 registerProcessor ($fieldTypeIdentifier, FieldTypeProcessor $processor)
 Registers $processor for $fieldTypeIdentifier. More...
 

Private Attributes

 $processors = array()
 

Detailed Description

Constructor & Destructor Documentation

eZ\Publish\Core\REST\Common\FieldTypeProcessorRegistry::__construct ( array  $processors = array())
Parameters
\eZ\Publish\Core\REST\Common\FieldTypeProcessor[]$processors

Member Function Documentation

eZ\Publish\Core\REST\Common\FieldTypeProcessorRegistry::getProcessor (   $fieldTypeIdentifier)

Returns the processor for $fieldTypeIdentifier.

Parameters
string$fieldTypeIdentifier
Exceptions
\RuntimeExceptionif not processor is registered for $fieldTypeIdentifier
Returns
eZ\Publish\Core\REST\Common\FieldTypeProcessorRegistry::hasProcessor (   $fieldTypeIdentifier)

Returns if a processor is registered for $fieldTypeIdentifier.

Parameters
string$fieldTypeIdentifier
Returns
boolean

Referenced by eZ\Publish\Core\REST\Common\FieldTypeProcessorRegistry\getProcessor().

eZ\Publish\Core\REST\Common\FieldTypeProcessorRegistry::registerProcessor (   $fieldTypeIdentifier,
FieldTypeProcessor  $processor 
)

Registers $processor for $fieldTypeIdentifier.

Parameters
string$fieldTypeIdentifier
\eZ\Publish\Core\REST\Common\FieldTypeProcessor$processor

Referenced by eZ\Publish\Core\REST\Common\FieldTypeProcessorRegistry\__construct().

Member Data Documentation

eZ\Publish\Core\REST\Common\FieldTypeProcessorRegistry::$processors = array()
private

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