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

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

Méthodes publiques

Свойство Type Description
$cols object
$columnType string Type for the column
$fieldtype string Static type of this element
$height integer
$labelFirstCell string
$labelWidth integer
$phpdocType string Type for the generated phpdoc
$queryColumnType string Type for the column to query
$rows object
$width integer

Méthodes publiques

Méthode Description
checkValidity ( mixed $data, boolean $omitMandatoryCheck = false ) Checks if data is valid for current data field
getCols ( ) : object
getColumnType ( ) : array | string
getDataForEditmode ( string $data, null | AbstractObject $object = null, mixed $params = [] ) : string
getDataForGrid ( $data, null $object = null, mixed $params = [] ) : array | null
getDataForQueryResource ( string $data, null | AbstractObject $object = null, mixed $params = [] ) : string
getDataForResource ( string $data, null | AbstractObject $object = null, mixed $params = [] ) : string
getDataFromEditmode ( string $data, null | AbstractObject $object = null, mixed $params = [] ) : string
getDataFromResource ( string $data, null | AbstractObject $object = null, mixed $params = [] ) : Pimcore\Model\Object\Data\StructuredTable
getDiffDataForEditMode ( mixed $data, null $object = null, mixed $params = [] ) : array | null See parent class.
getForCsvExport ( AbstractObject $object, array $params = [] ) : string converts object data to a simple string value or CSV Export
getForWebserviceExport ( string $object, mixed $params = [] ) : mixed converts data to be exposed via webservices
getFromCsvImport ( $importValue, null | AbstractObject $object = null, mixed $params = [] ) : mixed | Pimcore\Model\Object\Data\StructuredTable
getFromWebserviceImport ( mixed $value, null $object = null, mixed $params = [], null $idMapper = null ) : mixed | void
getHeight ( ) : integer
getLabelFirstCell ( ) : string
getLabelWidth ( ) : integer
getQueryColumnType ( ) : array | string
getRows ( ) : object
getVersionPreview ( string $data, null | AbstractObject $object = null, mixed $params = [] ) : string
getWidth ( ) : integer
isDiffChangeAllowed ( string $object, mixed $params = [] ) : boolean True if change is allowed in edit mode.
isEmpty ( $data ) : boolean
setCols ( object $cols ) : void
setHeight ( integer $height ) : void
setLabelFirstCell ( $labelFirstCell )
setLabelWidth ( integer $labelWidth ) : void
setRows ( object $rows ) : void
setWidth ( integer $width )
sort ( $a, $b )
synchronizeWithMasterDefinition ( Data $masterDefinition )

Méthodes protégées

Méthode Description
calculateDbColumns ( ) : array
typeMapper ( $type, $length = null ) : string | null

Method Details

calculateDbColumns() protected méthode

protected calculateDbColumns ( ) : array
Résultat array

checkValidity() public méthode

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

getCols() public méthode

public getCols ( ) : object
Résultat object

getColumnType() public méthode

public getColumnType ( ) : array | string
Résultat array | string

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 = [] ) : array | null
$data
$object null
$params mixed
Résultat array | null

getDataForQueryResource() public méthode

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

getDataForResource() public méthode

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

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

getDataFromResource() public méthode

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

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

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

converts data to be exposed via webservices
public getForWebserviceExport ( string $object, mixed $params = [] ) : mixed
$object string
$params mixed
Résultat mixed

getFromCsvImport() public méthode

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

getFromWebserviceImport() public méthode

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

getHeight() public méthode

public getHeight ( ) : integer
Résultat integer

getLabelFirstCell() public méthode

public getLabelFirstCell ( ) : string
Résultat string

getLabelWidth() public méthode

public getLabelWidth ( ) : integer
Résultat integer

getQueryColumnType() public méthode

public getQueryColumnType ( ) : array | string
Résultat array | string

getRows() public méthode

public getRows ( ) : object
Résultat object

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

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

isEmpty() public méthode

public isEmpty ( $data ) : boolean
$data
Résultat boolean

setCols() public méthode

public setCols ( object $cols ) : void
$cols object
Résultat void

setHeight() public méthode

public setHeight ( integer $height ) : void
$height integer
Résultat void

setLabelFirstCell() public méthode

public setLabelFirstCell ( $labelFirstCell )
$labelFirstCell

setLabelWidth() public méthode

public setLabelWidth ( integer $labelWidth ) : void
$labelWidth integer
Résultat void

setRows() public méthode

public setRows ( object $rows ) : void
$rows object
Résultat void

setWidth() public méthode

public setWidth ( integer $width )
$width integer

sort() public méthode

public sort ( $a, $b )

synchronizeWithMasterDefinition() public méthode

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

typeMapper() protected méthode

protected typeMapper ( $type, $length = null ) : string | null
$type string text|number|bool
$length int The length of the column, default is 255 for text
Résultat string | null

Property Details

$cols public_oe property

public object $cols
Résultat object

$columnType public_oe property

Type for the column
public string $columnType
Résultat string

$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

$labelFirstCell public_oe property

public string $labelFirstCell
Résultat string

$labelWidth public_oe property

public int $labelWidth
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

$rows public_oe property

public object $rows
Résultat object

$width public_oe property

public int $width
Résultat integer