PHP Class Pimcore\Model\Object\ClassDefinition\Data\Localizedfields

Inheritance: extends Pimcore\Model\Object\ClassDefinition\Data
Afficher le fichier Open project: pimcore/pimcore

Méthodes publiques

Свойство Type Description
$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 Properties

Свойство Type Description
$referencedFields array contains further localized field definitions if there are more than one localized fields in on class

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
getDataForValidity ( Localizedfield | mixed $localizedObject, array $languages ) : array

Private Methods

Méthode Description
doGetDataForEditMode ( $data, $object, &$fieldData, &$metaData, integer $level = 1 ) : array

Method Details

__sleep() public méthode

public __sleep ( ) : array
Résultat array

addChild() public méthode

public addChild ( mixed $child ) : void
$child mixed
Résultat void

addReferencedField() public méthode

public addReferencedField ( $field )
$field

checkValidity() public méthode

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

classSaved() public méthode

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
Résultat void

delete() public méthode

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

doGetFieldDefinitions() public méthode

public doGetFieldDefinitions ( null $def = null, array $fields = [] ) : array
$def null
$fields array
Résultat array

getCacheTags() public méthode

This is a dummy and is mostly implemented by relation types
public getCacheTags ( mixed $data, array $tags = [] ) : array
$data mixed
$tags array
Résultat array

getChildren() public méthode

public getChildren ( ) : array
Résultat array

getDataForEditmode() public méthode

See also: 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
Résultat string

getDataForGrid() public méthode

public getDataForGrid ( $data, null $object = null, mixed $params = [] ) : stdClass
$data
$object null
$params mixed
Résultat stdClass

getDataForSearchIndex() public méthode

public getDataForSearchIndex ( $object, mixed $params = [] ) : string
$object
$params mixed
Résultat string

getDataForValidity() protected méthode

protected getDataForValidity ( Localizedfield | mixed $localizedObject, array $languages ) : array
$localizedObject Pimcore\Model\Object\Localizedfield | mixed
$languages array
Résultat array

getDataFromEditmode() public méthode

See also: 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
Résultat string

getDiffDataForEditmode() public méthode

See parent class.
public getDiffDataForEditmode ( mixed $data, null $object = null, mixed $params = [] ) : array | null
$data mixed
$object null
$params mixed
Résultat array | null

getDiffDataFromEditmode() public méthode

See parent class.
public getDiffDataFromEditmode ( $data, null $object = null, mixed $params = [] ) : null | Pimcore_Date
$data
$object null
$params mixed
Résultat null | Pimcore_Date

getFieldDefinitions() public méthode

public getFieldDefinitions ( ) : array
Résultat array

getFielddefinition() public méthode

public getFielddefinition ( $name ) : mixed
$name
Résultat mixed

getForCsvExport() public méthode

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
Résultat string

getForWebserviceExport() public méthode

public getForWebserviceExport ( AbstractObject $object, mixed $params = [] ) : mixed
$object Pimcore\Model\Object\AbstractObject
$params mixed
Résultat mixed

getFromCsvImport() public méthode

public getFromCsvImport ( string $importValue, null | AbstractObject $object = null, mixed $params = [] ) : null
$importValue string
$object null | Pimcore\Model\Object\AbstractObject
$params mixed
Résultat null

getFromWebserviceImport() public méthode

public getFromWebserviceImport ( mixed $value, null $object = null, mixed $params = [], null $idMapper = null ) : mixed | null | Localizedfield
$value mixed
$object null
$params mixed
$idMapper null
Résultat mixed | null | Pimcore\Model\Object\Localizedfield

getGetterCode() public méthode

public getGetterCode ( $class ) : string
$class
Résultat string

getHeight() public méthode

public getHeight ( ) : integer
Résultat integer

getLabelWidth() public méthode

public getLabelWidth ( ) : integer
Résultat integer

getLayout() public méthode

public getLayout ( ) : string
Résultat string

getMaxTabs() public méthode

public getMaxTabs ( ) : integer
Résultat integer

getName() public méthode

public getName ( ) : string
Résultat string

getReferencedFields() public méthode

public getReferencedFields ( ) : array
Résultat array

getRegion() public méthode

public getRegion ( ) : string
Résultat string

getSetterCode() public méthode

public getSetterCode ( $class ) : string
$class
Résultat string

getTitle() public méthode

public getTitle ( ) : string
Résultat string

getVersionPreview() public méthode

See also: 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
Résultat string

getWidth() public méthode

public getWidth ( ) : integer
Résultat integer

hasChildren() public méthode

public hasChildren ( ) : boolean
Résultat boolean

isDiffChangeAllowed() public méthode

True if change is allowed in edit mode.
public isDiffChangeAllowed ( string $object, mixed $params = [] ) : boolean
$object string
$params mixed
Résultat boolean

load() public méthode

public load ( $object, array $params = [] ) : Localizedfield
$object
$params array
Résultat Pimcore\Model\Object\Localizedfield

marshal() public méthode

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
Résultat mixed

preGetData() public méthode

public preGetData ( $container, array $params = [] ) : Localizedfield
$params array
Résultat Pimcore\Model\Object\Localizedfield

resolveDependencies() public méthode

public resolveDependencies ( $data ) : array
$data
Résultat array

rewriteIds() public méthode

..), "asset" => array(...) )
public rewriteIds ( mixed $object, array $idMapping, array $params = [] ) : Pimcore\Model\Element\ElementInterface
$object mixed
$idMapping array
$params array
Résultat Pimcore\Model\Element\ElementInterface

save() public méthode

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

setChildren() public méthode

public setChildren ( array $children )
$children array

setHeight() public méthode

public setHeight ( $height )
$height

setLabelWidth() public méthode

public setLabelWidth ( integer $labelWidth )
$labelWidth integer

setLayout() public méthode

public setLayout ( $layout )
$layout

setMaxTabs() public méthode

public setMaxTabs ( integer $maxTabs )
$maxTabs integer

setName() public méthode

public setName ( string $name )
$name string

setReferencedFields() public méthode

public setReferencedFields ( array $referencedFields )
$referencedFields array

setRegion() public méthode

public setRegion ( $region )
$region

setTitle() public méthode

public setTitle ( string $title )
$title string

setValues() public méthode

public setValues ( mixed $data = [], array $blockedKeys = [] ) : void
$data mixed
$blockedKeys array
Résultat void

setWidth() public méthode

public setWidth ( $width )
$width

unmarshal() public méthode

See marshal
public unmarshal ( mixed $value, AbstractObject $object = null, mixed $params = [] ) : mixed
$value mixed
$object Pimcore\Model\Object\AbstractObject
$params mixed
Résultat mixed

Property Details

$childs public_oe property

public array $childs
Résultat array

$fieldDefinitionsCache public_oe property

public array $fieldDefinitionsCache
Résultat array

$fieldtype public_oe property

Static type of this element
public string $fieldtype
Résultat string

$height public_oe property

public int $height
Résultat integer

$labelWidth public_oe property

public int $labelWidth
Résultat integer

$layout public_oe property

public string $layout
Résultat string

$maxTabs public_oe property

public int $maxTabs
Résultat integer

$name public_oe property

public string $name
Résultat string

$phpdocType public_oe property

Type for the generated phpdoc
public string $phpdocType
Résultat string

$referencedFields protected_oe property

contains further localized field definitions if there are more than one localized fields in on class
protected array $referencedFields
Résultat array

$region public_oe property

public string $region
Résultat string

$title public_oe property

public string $title
Résultat string

$width public_oe property

public int $width
Résultat integer