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

Inheritance: extends Pimcore\Model\Object\ClassDefinition\Data\Relations\AbstractRelations
Afficher le fichier Open project: pimcore/pimcore Class Usage Examples

Méthodes publiques

Свойство Type Description
$fieldtype string Static type of this element
$height integer Type for the column to query
$maxItems integer
$phpdocType string Type for the generated phpdoc
$queryColumnType string Type for the column to query
$relationType boolean
$width integer

Méthodes publiques

Méthode Description
checkValidity ( mixed $data, boolean $omitMandatoryCheck = false ) Checks if data is valid for current data field
enrichLayoutDefinition ( $object ) Override point for Enriching the layout definition before the layout is returned to the admin interface.
getCacheTags ( mixed $data, array $tags = [] ) : array This is a dummy and is mostly implemented by relation types
getDataForEditmode ( array $data, null | AbstractObject $object = null, mixed $params = [] ) : array
getDataForGrid ( $data, null $object = null, mixed $params = [] ) : array
getDataForQueryResource ( $data, null $object = null, mixed $params = [] )
getDataForResource ( array $data, null | AbstractObject $object = null, mixed $params = [] ) : array
getDataFromEditmode ( array $data, null | AbstractObject $object = null, mixed $params = [] ) : array
getDataFromResource ( array $data, null | AbstractObject $object = null, mixed $params = [] ) : array
getDiffDataFromEditmode ( $data, null $object = null, mixed $params = [] ) : null | Pimcore_Date See parent class.
getDiffVersionPreview ( $data, null $object = null, mixed $params = [] ) : array | string Generates a pretty version preview (similar to getVersionPreview) can be either html or a image URL. See the ObjectMerger plugin documentation for details
getFieldtype ( ) : string
getForCsvExport ( AbstractObject $object, array $params = [] ) : string converts object data to a simple string value or CSV Export
getForWebserviceExport ( AbstractObject $object, mixed $params = [] ) : array | mixed | null
getFromCsvImport ( $importValue, null | AbstractObject $object = null, mixed $params = [] ) : array | mixed
getFromWebserviceImport ( mixed $value, null $object = null, mixed $params = [], null $idMapper = null ) : array | mixed
getHeight ( ) : integer
getMaxItems ( ) : integer
getObjectsAllowed ( ) : boolean
getPhpdocType ( ) : string
getVersionPreview ( array $data, null | AbstractObject $object = null, mixed $params = [] ) : string
getWidth ( ) : integer
isDiffChangeAllowed ( string $object, mixed $params = [] ) : boolean True if change is allowed in edit mode.
marshal ( mixed $value, AbstractObject $object = null, mixed $params = [] ) : mixed Encode value for packing it into a single column.
preGetData ( $object, $params = [] )
preSetData ( $object, $data, $params = [] )
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(.
setFieldtype ( string $fieldtype )
setHeight ( integer $height )
setMaxItems ( $maxItems )
setWidth ( integer $width )
synchronizeWithMasterDefinition ( Data $masterDefinition )
unmarshal ( mixed $value, AbstractObject $object = null, mixed $params = [] ) : mixed See marshal

Method Details

checkValidity() public méthode

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

enrichLayoutDefinition() public méthode

Override point for Enriching the layout definition before the layout is returned to the admin interface.
public enrichLayoutDefinition ( $object )

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

getDataForEditmode() public méthode

See also: Object\ClassDefinition\Data::getDataForEditmode
public getDataForEditmode ( array $data, null | AbstractObject $object = null, mixed $params = [] ) : array
$data array
$object null | Pimcore\Model\Object\AbstractObject
$params mixed
Résultat array

getDataForGrid() public méthode

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

getDataForQueryResource() public méthode

public getDataForQueryResource ( $data, null $object = null, mixed $params = [] )
$data
$object null
$params mixed

getDataForResource() public méthode

See also: Object\ClassDefinition\Data::getDataForResource
public getDataForResource ( array $data, null | AbstractObject $object = null, mixed $params = [] ) : array
$data array
$object null | Pimcore\Model\Object\AbstractObject
$params mixed
Résultat array

getDataFromEditmode() public méthode

See also: Model\Object\ClassDefinition\Data::getDataFromEditmode
public getDataFromEditmode ( array $data, null | AbstractObject $object = null, mixed $params = [] ) : array
$data array
$object null | Pimcore\Model\Object\AbstractObject
$params mixed
Résultat array

getDataFromResource() public méthode

See also: Object\ClassDefinition\Data::getDataFromResource
public getDataFromResource ( array $data, null | AbstractObject $object = null, mixed $params = [] ) : array
$data array
$object null | Pimcore\Model\Object\AbstractObject
$params mixed
Résultat array

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

getDiffVersionPreview() public méthode

Generates a pretty version preview (similar to getVersionPreview) can be either html or a image URL. See the ObjectMerger plugin documentation for details
public getDiffVersionPreview ( $data, null $object = null, mixed $params = [] ) : array | string
$data
$object null
$params mixed
Résultat array | string

getFieldtype() public méthode

public getFieldtype ( ) : string
Résultat string

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 = [] ) : array | mixed | null
$object Pimcore\Model\Object\AbstractObject
$params mixed
Résultat array | mixed | null

getFromCsvImport() public méthode

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

getFromWebserviceImport() public méthode

public getFromWebserviceImport ( mixed $value, null $object = null, mixed $params = [], null $idMapper = null ) : array | mixed
$value mixed
$object null
$params mixed
$idMapper null
Résultat array | mixed

getHeight() public méthode

public getHeight ( ) : integer
Résultat integer

getMaxItems() public méthode

public getMaxItems ( ) : integer
Résultat integer

getObjectsAllowed() public méthode

public getObjectsAllowed ( ) : boolean
Résultat boolean

getPhpdocType() public méthode

public getPhpdocType ( ) : string
Résultat string

getVersionPreview() public méthode

See also: Object\ClassDefinition\Data::getVersionPreview
public getVersionPreview ( array $data, null | AbstractObject $object = null, mixed $params = [] ) : string
$data array
$object null | Pimcore\Model\Object\AbstractObject
$params mixed
Résultat string

getWidth() public méthode

public getWidth ( ) : integer
Résultat integer

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

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 ( $object, $params = [] )

preSetData() public méthode

public preSetData ( $object, $data, $params = [] )

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

setFieldtype() public méthode

public setFieldtype ( string $fieldtype )
$fieldtype string

setHeight() public méthode

public setHeight ( integer $height )
$height integer

setMaxItems() public méthode

public setMaxItems ( $maxItems )
$maxItems

setWidth() public méthode

public setWidth ( integer $width )
$width integer

synchronizeWithMasterDefinition() public méthode

public synchronizeWithMasterDefinition ( Data $masterDefinition )
$masterDefinition Pimcore\Model\Object\ClassDefinition\Data

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

$fieldtype public_oe property

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

$height public_oe property

Type for the column to query
public int $height
Résultat integer

$maxItems public_oe property

public int $maxItems
Résultat integer

$phpdocType public_oe property

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

$queryColumnType public_oe property

Type for the column to query
public string $queryColumnType
Résultat string

$relationType public_oe property

public bool $relationType
Résultat boolean

$width public_oe property

public int $width
Résultat integer