PHP Class eZ\Publish\Core\Repository\FieldTypeService

See also: eZ\Publish\API\Repository\FieldType
Inheritance: implements eZ\Publish\API\Repository\FieldTypeService
Datei anzeigen Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$fieldTypeRegistry eZ\Publish\Core\Repository\Helper\FieldTypeRegistry
$fieldTypes eZ\Publish\API\Repository\FieldType[] Holds an array of FieldType objects to avoid re creating them all the time from SPI variants.

Public Methods

Method Description
__construct ( FieldTypeRegistry $fieldTypeRegistry ) Setups service with reference to repository object that created it & corresponding handler.
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

Setups service with reference to repository object that created it & corresponding handler.
public __construct ( FieldTypeRegistry $fieldTypeRegistry )
$fieldTypeRegistry eZ\Publish\Core\Repository\Helper\FieldTypeRegistry Registry for SPI FieldTypes

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

$fieldTypeRegistry protected_oe property

protected FieldTypeRegistry,eZ\Publish\Core\Repository\Helper $fieldTypeRegistry
return eZ\Publish\Core\Repository\Helper\FieldTypeRegistry

$fieldTypes protected_oe property

Holds an array of FieldType objects to avoid re creating them all the time from SPI variants.
protected FieldType[],eZ\Publish\API\Repository $fieldTypes
return eZ\Publish\API\Repository\FieldType[]