프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$settingsSchema | mixed | The key is the setting name, and the value is the default value for given setting, set to null if no particular default should be set. |
메소드 | 설명 | |
---|---|---|
fromHash ( mixed $hash ) : |
Converts an $hash to the Value defined by the field type. | |
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. | |
isSearchable ( ) : boolean | Returns whether the field type is searchable. | |
toHash ( eZ\Publish\SPI\FieldType\Value $value ) : mixed | Converts a $Value to a hash. | |
validate ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition, eZ\Publish\SPI\FieldType\Value $fieldValue ) : eZ\Publish\SPI\FieldType\ValidationError[] | Validates field value against 'isMultiple' and 'options' settings. | |
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 ( array | |
Inspects given $inputValue and potentially converts it into a dedicated value object. | |
getSortInfo ( |
Returns information for FieldValue->$sortKey relevant to the field type. |
protected checkValueStructure ( |
||
$value |
protected createValueFromInput ( array | |
||
$inputValue | array | |
|
리턴 | The potentially converted and structurally plausible value. |
public getEmptyValue ( ) : |
||
리턴 |
public getFieldTypeIdentifier ( ) : string | ||
리턴 | string |
protected getSortInfo ( |
||
$value | ||
리턴 | array |
public isSearchable ( ) : boolean | ||
리턴 | boolean |
public validate ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition, eZ\Publish\SPI\FieldType\Value $fieldValue ) : eZ\Publish\SPI\FieldType\ValidationError[] | ||
$fieldDefinition | eZ\Publish\API\Repository\Values\ContentType\FieldDefinition | The field definition of the field |
$fieldValue | 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 mixed $settingsSchema | ||
리턴 | mixed |