Property | Type | Description | |
---|---|---|---|
$inputConverterDispatcher | |||
$inputNormalizer | |||
$inputValidatorDispatcher | null | |
||
$internalFormatValidator | |||
$settingsSchema | array | The key is the setting name, and the value is the default value for this setting |
Method | Description | |
---|---|---|
__construct ( |
||
fromHash ( mixed $hash ) : |
Converts an $hash to the Value defined by the field type. | |
fromPersistenceValue ( eZ\Publish\SPI\Persistence\Content\FieldValue $fieldValue ) : |
Creates a new Value object from persistence data. | |
getEmptyValue ( ) : |
Returns the fallback default value of field type when no such default value is provided in the field definition in content types. | |
getFieldTypeIdentifier ( ) : string | Returns the field type identifier for this field type. | |
getName ( eZ\Publish\SPI\FieldType\Value $value ) : string | Returns the name of the given field value. | |
getRelations ( eZ\Publish\SPI\FieldType\Value $value ) : array | Returns relation data extracted from value. | |
isEmptyValue ( eZ\Publish\SPI\FieldType\Value $value ) : boolean | Returns if the given $value is considered empty by the field type. | |
isSearchable ( ) : boolean | Returns whether the field type is searchable. | |
toHash ( eZ\Publish\SPI\FieldType\Value $value ) : mixed | Converts a $Value to a hash. | |
toPersistenceValue ( eZ\Publish\SPI\FieldType\Value $value ) : eZ\Publish\SPI\Persistence\Content\FieldValue | ||
validate ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition, eZ\Publish\SPI\FieldType\Value $value ) : eZ\Publish\SPI\FieldType\ValidationError[] | Validates a field based on the validators in the field definition. | |
validateFieldSettings ( mixed $fieldSettings ) : eZ\Publish\SPI\FieldType\ValidationError[] | Validates the fieldSettings of a FieldDefinitionCreateStruct or FieldDefinitionUpdateStruct. |
Method | Description | |
---|---|---|
checkValueStructure ( |
Throws an exception if value structure is not of expected format. | |
createValueFromInput ( |
Inspects given $inputValue and potentially converts it into a dedicated value object. | |
getRelatedObjectIds ( |
||
getSortInfo ( |
Returns sortKey information. | |
loadXMLString ( $xmlString ) : DOMDocument | Creates \DOMDocument from given $xmlString. |
public __construct ( |
||
$internalFormatValidator | ||
$inputConverterDispatcher | ||
$inputNormalizer | ||
$inputValidatorDispatcher |
protected checkValueStructure ( |
||
$value |
protected createValueFromInput ( |
||
$inputValue | ||
return | The potentially converted and structurally plausible value. |
public fromPersistenceValue ( eZ\Publish\SPI\Persistence\Content\FieldValue $fieldValue ) : |
||
$fieldValue | eZ\Publish\SPI\Persistence\Content\FieldValue | |
return |
public getEmptyValue ( ) : |
||
return |
public getFieldTypeIdentifier ( ) : string | ||
return | string |
protected getRelatedObjectIds ( |
||
$fieldValue |
public getRelations ( eZ\Publish\SPI\FieldType\Value $value ) : array | ||
$value | eZ\Publish\SPI\FieldType\Value | |
return | array | Hash with relation type as key and array of destination content ids as value.
Example:
array(
\eZ\Publish\API\Repository\Values\Content\Relation::LINK => array(
"contentIds" => array( 12, 13, 14 ),
"locationIds" => array( 24 )
),
\eZ\Publish\API\Repository\Values\Content\Relation::EMBED => array(
"contentIds" => array( 12 ),
"locationIds" => array( 24, 45 )
),
\eZ\Publish\API\Repository\Values\Content\Relation::ATTRIBUTE => array( 12 )
)
|
protected getSortInfo ( |
||
$value | ||
return | array | boolean |
public isEmptyValue ( eZ\Publish\SPI\FieldType\Value $value ) : boolean | ||
$value | eZ\Publish\SPI\FieldType\Value | |
return | boolean |
public isSearchable ( ) : boolean | ||
return | boolean |
protected loadXMLString ( $xmlString ) : DOMDocument | ||
$xmlString | ||
return | DOMDocument |
public toPersistenceValue ( eZ\Publish\SPI\FieldType\Value $value ) : eZ\Publish\SPI\Persistence\Content\FieldValue | ||
$value | eZ\Publish\SPI\FieldType\Value | |
return | eZ\Publish\SPI\Persistence\Content\FieldValue |
public validate ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition, eZ\Publish\SPI\FieldType\Value $value ) : eZ\Publish\SPI\FieldType\ValidationError[] | ||
$fieldDefinition | eZ\Publish\API\Repository\Values\ContentType\FieldDefinition | The field definition of the field |
$value | eZ\Publish\SPI\FieldType\Value | The field value for which an action is performed |
return | eZ\Publish\SPI\FieldType\ValidationError[] |
public validateFieldSettings ( mixed $fieldSettings ) : eZ\Publish\SPI\FieldType\ValidationError[] | ||
$fieldSettings | mixed | |
return | eZ\Publish\SPI\FieldType\ValidationError[] |
protected ConverterDispatcher,eZ\Publish\Core\FieldType\RichText $inputConverterDispatcher | ||
return |
protected Normalizer,eZ\Publish\Core\FieldType\RichText $inputNormalizer | ||
return |
protected null|ValidatorDispatcher,eZ\Publish\Core\FieldType\RichText $inputValidatorDispatcher | ||
return | null | |
protected ValidatorDispatcher,eZ\Publish\Core\FieldType\RichText $internalFormatValidator | ||
return |
protected array $settingsSchema | ||
return | array |