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

상속: extends eZ\Publish\Core\FieldType\FieldType
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$validatorConfigurationSchema

공개 메소드들

메소드 설명
fromHash ( mixed $hash ) : eZ\Publish\Core\FieldType\BinaryBase\Value Converts an $hash to the Value defined by the field type.
fromPersistenceValue ( eZ\Publish\SPI\Persistence\Content\FieldValue $fieldValue ) : eZ\Publish\Core\FieldType\BinaryBase\Value Converts a persistence $fieldValue to a Value.
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.
toPersistenceValue ( eZ\Publish\SPI\FieldType\Value $value ) : eZ\Publish\SPI\Persistence\Content\FieldValue Converts a $value to a persistence value.
validate ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition, eZ\Publish\SPI\FieldType\Value $fieldValue ) : eZ\Publish\SPI\FieldType\ValidationError[] Validates a field based on the validators in the field definition.
validateValidatorConfiguration ( mixed $validatorConfiguration ) : eZ\Publish\SPI\FieldType\ValidationError[] Validates the validatorConfiguration 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 ) : eZ\Publish\Core\FieldType\BinaryBase\Value Creates a specific value of the derived class from $inputValue.
createValueFromInput ( string | array | eZ\Publish\Core\FieldType\BinaryBase\Value $inputValue ) : eZ\Publish\Core\FieldType\BinaryBase\Value Inspects given $inputValue and potentially converts it into a dedicated value object.
getSortInfo ( Value $value ) : boolean BinaryBase does not support sorting.

메소드 상세

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.
abstract protected createValue ( array $inputValue ) : eZ\Publish\Core\FieldType\BinaryBase\Value
$inputValue array
리턴 eZ\Publish\Core\FieldType\BinaryBase\Value

createValueFromInput() 보호된 메소드

Inspects given $inputValue and potentially converts it into a dedicated value object.
protected createValueFromInput ( string | array | eZ\Publish\Core\FieldType\BinaryBase\Value $inputValue ) : eZ\Publish\Core\FieldType\BinaryBase\Value
$inputValue string | array | eZ\Publish\Core\FieldType\BinaryBase\Value
리턴 eZ\Publish\Core\FieldType\BinaryBase\Value The potentially converted and structurally plausible value.

fromHash() 공개 메소드

Converts an $hash to the Value defined by the field type.
public fromHash ( mixed $hash ) : eZ\Publish\Core\FieldType\BinaryBase\Value
$hash mixed
리턴 eZ\Publish\Core\FieldType\BinaryBase\Value $value

fromPersistenceValue() 공개 메소드

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

getName() 공개 메소드

It will be used to generate content name and url alias if current field is designated to be used in the content name/urlAlias pattern.
public getName ( eZ\Publish\SPI\FieldType\Value $value ) : string
$value eZ\Publish\SPI\FieldType\Value
리턴 string

getSortInfo() 보호된 메소드

BinaryBase does not support sorting.
protected getSortInfo ( Value $value ) : boolean
$value eZ\Publish\Core\FieldType\Value
리턴 boolean

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

toPersistenceValue() 공개 메소드

In this method the field type puts the data which is stored in the field of content in the repository into the property FieldValue::data. The format of $data is a primitive, an array (map) or an object, which is then canonically converted to e.g. json/xml structures by future storage engines without further conversions. For mapping the $data to the legacy database an appropriate Converter (implementing eZ\Publish\Core\Persistence\Legacy\FieldValue\Converter) has implemented for the field type. Note: $data should only hold data which is actually stored in the field. It must not hold data which is stored externally. The $externalData property in the FieldValue is used for storing data externally by the FieldStorage interface method storeFieldData. The FieldValuer::sortKey is build by the field type for using by sort operations.
또한 보기: eZ\Publish\SPI\Persistence\Content\FieldValue
public toPersistenceValue ( eZ\Publish\SPI\FieldType\Value $value ) : eZ\Publish\SPI\Persistence\Content\FieldValue
$value eZ\Publish\SPI\FieldType\Value The value of the field type
리턴 eZ\Publish\SPI\Persistence\Content\FieldValue the value processed by the storage engine

validate() 공개 메소드

Validates a field based on the validators in the field definition.
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[]

validateValidatorConfiguration() 공개 메소드

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

프로퍼티 상세

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

또한 보기: eZ\Publish\Core\FieldType::$validatorConfigurationSchema
protected $validatorConfigurationSchema