PHP Class eZ\Publish\Core\REST\Client\FieldTypeService

Inheritance: implements eZ\Publish\API\Repository\FieldTypeService
Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$fieldTypes FieldType[] FieldTypes by identifier.

Public Methods

Method Description
__construct ( array $fieldTypes = [] )
addFieldType ( FieldType $fieldType ) Adds the given $fieldType.
getFieldType ( string $identifier ) : eZ\Publish\API\Repository\FieldType Returns the FieldType registered with the given identifier.
getFieldTypes ( ) : eZ\Publish\API\Repository\FieldType[] Returns a list of all field types.
hasFieldType ( string $identifier ) : boolean Returns if there is a FieldType registered under $identifier.

Method Details

__construct() public method

public __construct ( array $fieldTypes = [] )
$fieldTypes array

addFieldType() public method

Note, this is not an API method and not meant to be used directly!
public addFieldType ( FieldType $fieldType )
$fieldType FieldType

getFieldType() public method

Returns the FieldType registered with the given identifier.
public getFieldType ( string $identifier ) : eZ\Publish\API\Repository\FieldType
$identifier string
return eZ\Publish\API\Repository\FieldType

getFieldTypes() public method

Returns a list of all field types.
public getFieldTypes ( ) : eZ\Publish\API\Repository\FieldType[]
return eZ\Publish\API\Repository\FieldType[]

hasFieldType() public method

Returns if there is a FieldType registered under $identifier.
public hasFieldType ( string $identifier ) : boolean
$identifier string
return boolean

Property Details

$fieldTypes protected property

FieldTypes by identifier.
protected FieldType[],eZ\Publish\Core\REST\Client $fieldTypes
return FieldType[]