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

Public Member Functions

 __construct (array $fieldTypes=array())
 
 addFieldType (FieldType $fieldType)
 Adds the given $fieldType. 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()
 

Constructor & Destructor Documentation

eZ\Publish\Core\REST\Client\FieldTypeService::__construct ( array  $fieldTypes = array())
Parameters
\eZ\Publish\Core\REST\Client\FieldType[]$fieldTypes
Returns
void

Member Function Documentation

eZ\Publish\Core\REST\Client\FieldTypeService::addFieldType ( FieldType  $fieldType)

Adds the given $fieldType.

Note, this is not an API method and not meant to be used directly!

Parameters
FieldType$fieldTypeprotected
Returns
void

Referenced by eZ\Publish\Core\REST\Client\FieldTypeService\__construct().

eZ\Publish\Core\REST\Client\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.

eZ\Publish\Core\REST\Client\FieldTypeService::getFieldTypes ( )

Returns a list of all field types.

Returns
[]

Implements eZ\Publish\API\Repository\FieldTypeService.

eZ\Publish\Core\REST\Client\FieldTypeService::hasFieldType (   $identifier)

Returns if there is a FieldType registered under $identifier.

Parameters
string$identifier
Returns
boolean

Implements eZ\Publish\API\Repository\FieldTypeService.

Referenced by eZ\Publish\Core\REST\Client\FieldTypeService\getFieldType().

Member Data Documentation

eZ\Publish\Core\REST\Client\FieldTypeService::$fieldTypes = array()
protected

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