PHP Класс Pimcore\Model\Object\ClassDefinition\Data\Localizedfields

Наследование: extends Pimcore\Model\Object\ClassDefinition\Data
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$childs array
$fieldDefinitionsCache array
$fieldtype string Static type of this element
$height integer
$labelWidth integer
$layout string
$maxTabs integer
$name string
$phpdocType string Type for the generated phpdoc
$region string
$title string
$width integer

Защищенные свойства (Protected)

Свойство Тип Описание
$referencedFields array contains further localized field definitions if there are more than one localized fields in on class

Открытые методы

Метод Описание
__sleep ( ) : array
addChild ( mixed $child ) : void
addReferencedField ( $field )
checkValidity ( mixed $data, boolean $omitMandatoryCheck = false ) Checks if data is valid for current data field
classSaved ( $class, $params = [] ) : void This method is called in Object|Class::save() and is used to create the database table for the localized data
delete ( $object, $params = [] )
doGetFieldDefinitions ( null $def = null, array $fields = [] ) : array
getCacheTags ( mixed $data, array $tags = [] ) : array This is a dummy and is mostly implemented by relation types
getChildren ( ) : array
getDataForEditmode ( string $data, null | AbstractObject $object = null, mixed $params = [] ) : string
getDataForGrid ( $data, null $object = null, mixed $params = [] ) : stdClass
getDataForSearchIndex ( $object, mixed $params = [] ) : string
getDataFromEditmode ( string $data, null | AbstractObject $object = null, mixed $params = [] ) : string
getDiffDataForEditmode ( mixed $data, null $object = null, mixed $params = [] ) : array | null See parent class.
getDiffDataFromEditmode ( $data, null $object = null, mixed $params = [] ) : null | Pimcore_Date See parent class.
getFieldDefinitions ( ) : array
getFielddefinition ( $name ) : mixed
getForCsvExport ( AbstractObject $object, array $params = [] ) : string converts object data to a simple string value or CSV Export
getForWebserviceExport ( AbstractObject $object, mixed $params = [] ) : mixed
getFromCsvImport ( string $importValue, null | AbstractObject $object = null, mixed $params = [] ) : null
getFromWebserviceImport ( mixed $value, null $object = null, mixed $params = [], null $idMapper = null ) : mixed | null | Localizedfield
getGetterCode ( $class ) : string
getHeight ( ) : integer
getLabelWidth ( ) : integer
getLayout ( ) : string
getMaxTabs ( ) : integer
getName ( ) : string
getReferencedFields ( ) : array
getRegion ( ) : string
getSetterCode ( $class ) : string
getTitle ( ) : string
getVersionPreview ( string $data, null | AbstractObject $object = null, mixed $params = [] ) : string
getWidth ( ) : integer
hasChildren ( ) : boolean
isDiffChangeAllowed ( string $object, mixed $params = [] ) : boolean True if change is allowed in edit mode.
load ( $object, array $params = [] ) : Localizedfield
marshal ( mixed $value, AbstractObject $object = null, mixed $params = [] ) : mixed Encode value for packing it into a single column.
preGetData ( $container, array $params = [] ) : Localizedfield
resolveDependencies ( $data ) : array
rewriteIds ( mixed $object, array $idMapping, array $params = [] ) : Pimcore\Model\Element\ElementInterface Rewrites id from source to target, $idMapping contains array( "document" => array( SOURCE_ID => TARGET_ID, SOURCE_ID => TARGET_ID ), "object" => array(.
save ( $object, array $params = [] )
setChildren ( array $children )
setHeight ( $height )
setLabelWidth ( integer $labelWidth )
setLayout ( $layout )
setMaxTabs ( integer $maxTabs )
setName ( string $name )
setReferencedFields ( array $referencedFields )
setRegion ( $region )
setTitle ( string $title )
setValues ( mixed $data = [], array $blockedKeys = [] ) : void
setWidth ( $width )
unmarshal ( mixed $value, AbstractObject $object = null, mixed $params = [] ) : mixed See marshal

Защищенные методы

Метод Описание
getDataForValidity ( Localizedfield | mixed $localizedObject, array $languages ) : array

Приватные методы

Метод Описание
doGetDataForEditMode ( $data, $object, &$fieldData, &$metaData, integer $level = 1 ) : array

Описание методов

__sleep() публичный Метод

public __sleep ( ) : array
Результат array

addChild() публичный Метод

public addChild ( mixed $child ) : void
$child mixed
Результат void

addReferencedField() публичный Метод

public addReferencedField ( $field )
$field

checkValidity() публичный Метод

Checks if data is valid for current data field
public checkValidity ( mixed $data, boolean $omitMandatoryCheck = false )
$data mixed
$omitMandatoryCheck boolean

classSaved() публичный Метод

This method is called in Object|Class::save() and is used to create the database table for the localized data
public classSaved ( $class, $params = [] ) : void
Результат void

delete() публичный Метод

public delete ( $object, $params = [] )
$object

doGetFieldDefinitions() публичный Метод

public doGetFieldDefinitions ( null $def = null, array $fields = [] ) : array
$def null
$fields array
Результат array

getCacheTags() публичный Метод

This is a dummy and is mostly implemented by relation types
public getCacheTags ( mixed $data, array $tags = [] ) : array
$data mixed
$tags array
Результат array

getChildren() публичный Метод

public getChildren ( ) : array
Результат array

getDataForEditmode() публичный Метод

См. также: Object\ClassDefinition\Data::getDataForEditmode
public getDataForEditmode ( string $data, null | AbstractObject $object = null, mixed $params = [] ) : string
$data string
$object null | Pimcore\Model\Object\AbstractObject
$params mixed
Результат string

getDataForGrid() публичный Метод

public getDataForGrid ( $data, null $object = null, mixed $params = [] ) : stdClass
$data
$object null
$params mixed
Результат stdClass

getDataForSearchIndex() публичный Метод

public getDataForSearchIndex ( $object, mixed $params = [] ) : string
$object
$params mixed
Результат string

getDataForValidity() защищенный Метод

protected getDataForValidity ( Localizedfield | mixed $localizedObject, array $languages ) : array
$localizedObject Pimcore\Model\Object\Localizedfield | mixed
$languages array
Результат array

getDataFromEditmode() публичный Метод

См. также: Model\Object\ClassDefinition\Data::getDataFromEditmode
public getDataFromEditmode ( string $data, null | AbstractObject $object = null, mixed $params = [] ) : string
$data string
$object null | Pimcore\Model\Object\AbstractObject
$params mixed
Результат string

getDiffDataForEditmode() публичный Метод

See parent class.
public getDiffDataForEditmode ( mixed $data, null $object = null, mixed $params = [] ) : array | null
$data mixed
$object null
$params mixed
Результат array | null

getDiffDataFromEditmode() публичный Метод

See parent class.
public getDiffDataFromEditmode ( $data, null $object = null, mixed $params = [] ) : null | Pimcore_Date
$data
$object null
$params mixed
Результат null | Pimcore_Date

getFieldDefinitions() публичный Метод

public getFieldDefinitions ( ) : array
Результат array

getFielddefinition() публичный Метод

public getFielddefinition ( $name ) : mixed
$name
Результат mixed

getForCsvExport() публичный Метод

converts object data to a simple string value or CSV Export
public getForCsvExport ( AbstractObject $object, array $params = [] ) : string
$object Pimcore\Model\Object\AbstractObject
$params array
Результат string

getForWebserviceExport() публичный Метод

public getForWebserviceExport ( AbstractObject $object, mixed $params = [] ) : mixed
$object Pimcore\Model\Object\AbstractObject
$params mixed
Результат mixed

getFromCsvImport() публичный Метод

public getFromCsvImport ( string $importValue, null | AbstractObject $object = null, mixed $params = [] ) : null
$importValue string
$object null | Pimcore\Model\Object\AbstractObject
$params mixed
Результат null

getFromWebserviceImport() публичный Метод

public getFromWebserviceImport ( mixed $value, null $object = null, mixed $params = [], null $idMapper = null ) : mixed | null | Localizedfield
$value mixed
$object null
$params mixed
$idMapper null
Результат mixed | null | Pimcore\Model\Object\Localizedfield

getGetterCode() публичный Метод

public getGetterCode ( $class ) : string
$class
Результат string

getHeight() публичный Метод

public getHeight ( ) : integer
Результат integer

getLabelWidth() публичный Метод

public getLabelWidth ( ) : integer
Результат integer

getLayout() публичный Метод

public getLayout ( ) : string
Результат string

getMaxTabs() публичный Метод

public getMaxTabs ( ) : integer
Результат integer

getName() публичный Метод

public getName ( ) : string
Результат string

getReferencedFields() публичный Метод

public getReferencedFields ( ) : array
Результат array

getRegion() публичный Метод

public getRegion ( ) : string
Результат string

getSetterCode() публичный Метод

public getSetterCode ( $class ) : string
$class
Результат string

getTitle() публичный Метод

public getTitle ( ) : string
Результат string

getVersionPreview() публичный Метод

См. также: Object\ClassDefinition\Data::getVersionPreview
public getVersionPreview ( string $data, null | AbstractObject $object = null, mixed $params = [] ) : string
$data string
$object null | Pimcore\Model\Object\AbstractObject
$params mixed
Результат string

getWidth() публичный Метод

public getWidth ( ) : integer
Результат integer

hasChildren() публичный Метод

public hasChildren ( ) : boolean
Результат boolean

isDiffChangeAllowed() публичный Метод

True if change is allowed in edit mode.
public isDiffChangeAllowed ( string $object, mixed $params = [] ) : boolean
$object string
$params mixed
Результат boolean

load() публичный Метод

public load ( $object, array $params = [] ) : Localizedfield
$object
$params array
Результат Pimcore\Model\Object\Localizedfield

marshal() публичный Метод

Encode value for packing it into a single column.
public marshal ( mixed $value, AbstractObject $object = null, mixed $params = [] ) : mixed
$value mixed
$object Pimcore\Model\Object\AbstractObject
$params mixed
Результат mixed

preGetData() публичный Метод

public preGetData ( $container, array $params = [] ) : Localizedfield
$params array
Результат Pimcore\Model\Object\Localizedfield

resolveDependencies() публичный Метод

public resolveDependencies ( $data ) : array
$data
Результат array

rewriteIds() публичный Метод

..), "asset" => array(...) )
public rewriteIds ( mixed $object, array $idMapping, array $params = [] ) : Pimcore\Model\Element\ElementInterface
$object mixed
$idMapping array
$params array
Результат Pimcore\Model\Element\ElementInterface

save() публичный Метод

public save ( $object, array $params = [] )
$object
$params array

setChildren() публичный Метод

public setChildren ( array $children )
$children array

setHeight() публичный Метод

public setHeight ( $height )
$height

setLabelWidth() публичный Метод

public setLabelWidth ( integer $labelWidth )
$labelWidth integer

setLayout() публичный Метод

public setLayout ( $layout )
$layout

setMaxTabs() публичный Метод

public setMaxTabs ( integer $maxTabs )
$maxTabs integer

setName() публичный Метод

public setName ( string $name )
$name string

setReferencedFields() публичный Метод

public setReferencedFields ( array $referencedFields )
$referencedFields array

setRegion() публичный Метод

public setRegion ( $region )
$region

setTitle() публичный Метод

public setTitle ( string $title )
$title string

setValues() публичный Метод

public setValues ( mixed $data = [], array $blockedKeys = [] ) : void
$data mixed
$blockedKeys array
Результат void

setWidth() публичный Метод

public setWidth ( $width )
$width

unmarshal() публичный Метод

See marshal
public unmarshal ( mixed $value, AbstractObject $object = null, mixed $params = [] ) : mixed
$value mixed
$object Pimcore\Model\Object\AbstractObject
$params mixed
Результат mixed

Описание свойств

$childs публичное свойство

public array $childs
Результат array

$fieldDefinitionsCache публичное свойство

public array $fieldDefinitionsCache
Результат array

$fieldtype публичное свойство

Static type of this element
public string $fieldtype
Результат string

$height публичное свойство

public int $height
Результат integer

$labelWidth публичное свойство

public int $labelWidth
Результат integer

$layout публичное свойство

public string $layout
Результат string

$maxTabs публичное свойство

public int $maxTabs
Результат integer

$name публичное свойство

public string $name
Результат string

$phpdocType публичное свойство

Type for the generated phpdoc
public string $phpdocType
Результат string

$referencedFields защищенное свойство

contains further localized field definitions if there are more than one localized fields in on class
protected array $referencedFields
Результат array

$region публичное свойство

public string $region
Результат string

$title публичное свойство

public string $title
Результат string

$width публичное свойство

public int $width
Результат integer