Свойство | Тип | Описание | |
---|---|---|---|
$inputConverterDispatcher | |||
$inputNormalizer | |||
$inputValidatorDispatcher | null | |
||
$internalFormatValidator | |||
$settingsSchema | array | The key is the setting name, and the value is the default value for this setting |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
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 | ||
Результат | The potentially converted and structurally plausible value. |
public fromPersistenceValue ( eZ\Publish\SPI\Persistence\Content\FieldValue $fieldValue ) : |
||
$fieldValue | eZ\Publish\SPI\Persistence\Content\FieldValue | |
Результат |
public getEmptyValue ( ) : |
||
Результат |
public getFieldTypeIdentifier ( ) : string | ||
Результат | string |
protected getRelatedObjectIds ( |
||
$fieldValue |
public getRelations ( eZ\Publish\SPI\FieldType\Value $value ) : array | ||
$value | eZ\Publish\SPI\FieldType\Value | |
Результат | 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 | ||
Результат | array | boolean |
public isEmptyValue ( eZ\Publish\SPI\FieldType\Value $value ) : boolean | ||
$value | eZ\Publish\SPI\FieldType\Value | |
Результат | boolean |
public isSearchable ( ) : boolean | ||
Результат | boolean |
protected loadXMLString ( $xmlString ) : DOMDocument | ||
$xmlString | ||
Результат | DOMDocument |
public toPersistenceValue ( eZ\Publish\SPI\FieldType\Value $value ) : eZ\Publish\SPI\Persistence\Content\FieldValue | ||
$value | eZ\Publish\SPI\FieldType\Value | |
Результат | 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 |
Результат | eZ\Publish\SPI\FieldType\ValidationError[] |
public validateFieldSettings ( mixed $fieldSettings ) : eZ\Publish\SPI\FieldType\ValidationError[] | ||
$fieldSettings | mixed | |
Результат | eZ\Publish\SPI\FieldType\ValidationError[] |
protected ConverterDispatcher,eZ\Publish\Core\FieldType\RichText $inputConverterDispatcher | ||
Результат |
protected Normalizer,eZ\Publish\Core\FieldType\RichText $inputNormalizer | ||
Результат |
protected null|ValidatorDispatcher,eZ\Publish\Core\FieldType\RichText $inputValidatorDispatcher | ||
Результат | null | |
protected ValidatorDispatcher,eZ\Publish\Core\FieldType\RichText $internalFormatValidator | ||
Результат |
protected array $settingsSchema | ||
Результат | array |