프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |