PHP 클래스 eZ\Publish\Core\FieldType\Media\Type

This field type represents a simple string.
상속: extends eZ\Publish\Core\FieldType\BinaryBase\Type
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$settingsSchema array

공개 메소드들

메소드 설명
fromPersistenceValue ( eZ\Publish\SPI\Persistence\Content\FieldValue $fieldValue ) : Value Converts a persistence $fieldValue to a Value.
getEmptyValue ( ) : Value 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.
isSearchable ( ) : boolean Returns whether the field type is searchable.
toHash ( eZ\Publish\SPI\fieldType\Value $value ) : mixed Converts a $Value to a hash.
validateFieldSettings ( mixed $fieldSettings ) : eZ\Publish\SPI\FieldType\ValidationError[] Validates the fieldSettings of a FieldDefinitionCreateStruct or FieldDefinitionUpdateStruct.

보호된 메소드들

메소드 설명
checkValueStructure ( Value $value ) Throws an exception if value structure is not of expected format.
completeValue ( Value $value ) Attempts to complete the data in $value.
createValue ( array $inputValue ) : Value Creates a specific value of the derived class from $inputValue.

메소드 상세

checkValueStructure() 보호된 메소드

Throws an exception if value structure is not of expected format.
protected checkValueStructure ( Value $value )
$value eZ\Publish\Core\FieldType\Value

completeValue() 보호된 메소드

Attempts to complete the data in $value.
protected completeValue ( Value $value )
$value eZ\Publish\Core\FieldType\Value

createValue() 보호된 메소드

Creates a specific value of the derived class from $inputValue.
protected createValue ( array $inputValue ) : Value
$inputValue array
리턴 Value

fromPersistenceValue() 공개 메소드

This method builds a field type value from the $data and $externalData properties.
public fromPersistenceValue ( eZ\Publish\SPI\Persistence\Content\FieldValue $fieldValue ) : Value
$fieldValue eZ\Publish\SPI\Persistence\Content\FieldValue
리턴 Value

getEmptyValue() 공개 메소드

Returns the fallback default value of field type when no such default value is provided in the field definition in content types.
public getEmptyValue ( ) : Value
리턴 Value

getFieldTypeIdentifier() 공개 메소드

Returns the field type identifier for this field type.
public getFieldTypeIdentifier ( ) : string
리턴 string

isSearchable() 공개 메소드

Returns whether the field type is searchable.
public isSearchable ( ) : boolean
리턴 boolean

toHash() 공개 메소드

Converts a $Value to a hash.
public toHash ( eZ\Publish\SPI\fieldType\Value $value ) : mixed
$value eZ\Publish\SPI\fieldType\Value
리턴 mixed

validateFieldSettings() 공개 메소드

Validates the fieldSettings of a FieldDefinitionCreateStruct or FieldDefinitionUpdateStruct.
public validateFieldSettings ( mixed $fieldSettings ) : eZ\Publish\SPI\FieldType\ValidationError[]
$fieldSettings mixed
리턴 eZ\Publish\SPI\FieldType\ValidationError[]

프로퍼티 상세

$settingsSchema 보호되어 있는 프로퍼티

protected array $settingsSchema
리턴 array