eZPublishCommunityProject  2012.12
eZ\Publish\Core\Repository\FieldTypeService Class Reference
+ Inheritance diagram for eZ\Publish\Core\Repository\FieldTypeService:
+ Collaboration diagram for eZ\Publish\Core\Repository\FieldTypeService:

Public Member Functions

 __construct (RepositoryInterface $repository, Handler $handler, array $settings=array())
 Setups service with reference to repository object that created it & corresponding handler. More...
 
 getFieldType ($identifier)
 Returns the FieldType registered with the given identifier. More...
 
 getFieldTypes ()
 Returns a list of all field types. More...
 
 hasFieldType ($identifier)
 Returns if there is a FieldType registered under $identifier. More...
 

Protected Attributes

 $fieldTypes = array()
 
 $persistenceHandler
 
 $repository
 
 $settings
 

Constructor & Destructor Documentation

eZ\Publish\Core\Repository\FieldTypeService::__construct ( RepositoryInterface  $repository,
Handler  $handler,
array  $settings = array() 
)

Setups service with reference to repository object that created it & corresponding handler.

Parameters
\eZ\Publish\API\Repository\Repository$repository
\eZ\Publish\SPI\Persistence\Handler$handler
array$settingsHash of SPI FieldTypes or callable callbacks to generate one.

Member Function Documentation

eZ\Publish\Core\Repository\FieldTypeService::getFieldType (   $identifier)

Returns the FieldType registered with the given identifier.

Parameters
string$identifier
Returns
Exceptions
\eZ\Publish\API\Repository\Exceptions\NotFoundExceptionif there is no FieldType registered with $identifier

Implements eZ\Publish\API\Repository\FieldTypeService.

Referenced by eZ\Publish\Core\Repository\FieldTypeService\getFieldTypes().

eZ\Publish\Core\Repository\FieldTypeService::getFieldTypes ( )

Returns a list of all field types.

Returns
[]

Implements eZ\Publish\API\Repository\FieldTypeService.

eZ\Publish\Core\Repository\FieldTypeService::hasFieldType (   $identifier)

Returns if there is a FieldType registered under $identifier.

Parameters
string$identifier
Returns
boolean

Implements eZ\Publish\API\Repository\FieldTypeService.

Member Data Documentation

eZ\Publish\Core\Repository\FieldTypeService::$fieldTypes = array()
protected
eZ\Publish\Core\Repository\FieldTypeService::$persistenceHandler
protected
eZ\Publish\Core\Repository\FieldTypeService::$repository
protected
eZ\Publish\Core\Repository\FieldTypeService::$settings
protected

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