PHP Class Pimcore\Model\Object\ClassDefinition\Service

Show file Open project: pimcore/pimcore Class Usage Examples

Public Methods

Method Description
generateClassDefinitionJson ( ClassDefinition $class ) : string
generateFieldCollectionJson ( $fieldCollection ) : string
generateLayoutTreeFromArray ( $array, boolean $throwException = false ) : boolean
generateObjectBrickJson ( $objectBrick ) : string
importClassDefinitionFromJson ( $class, $json, $throwException = false ) : boolean
importFieldCollectionFromJson ( $fieldCollection, $json, $throwException = false ) : boolean
importObjectBrickFromJson ( $objectBrick, $json, $throwException = false ) : boolean
skipColumn ( $tableDefinitions, $table, $colName, $type, $default, $null ) : boolean
updateTableDefinitions ( &$tableDefinitions, $tableNames )

Method Details

generateClassDefinitionJson() public static method

public static generateClassDefinitionJson ( ClassDefinition $class ) : string
$class Pimcore\Model\Object\ClassDefinition
return string

generateFieldCollectionJson() public static method

public static generateFieldCollectionJson ( $fieldCollection ) : string
$fieldCollection
return string

generateLayoutTreeFromArray() public static method

public static generateLayoutTreeFromArray ( $array, boolean $throwException = false ) : boolean
$array
$throwException boolean
return boolean

generateObjectBrickJson() public static method

public static generateObjectBrickJson ( $objectBrick ) : string
$objectBrick
return string

importClassDefinitionFromJson() public static method

public static importClassDefinitionFromJson ( $class, $json, $throwException = false ) : boolean
$class
$json
return boolean

importFieldCollectionFromJson() public static method

public static importFieldCollectionFromJson ( $fieldCollection, $json, $throwException = false ) : boolean
$fieldCollection
$json
return boolean

importObjectBrickFromJson() public static method

public static importObjectBrickFromJson ( $objectBrick, $json, $throwException = false ) : boolean
$objectBrick
$json
return boolean

skipColumn() public static method

public static skipColumn ( $tableDefinitions, $table, $colName, $type, $default, $null ) : boolean
$tableDefinitions
$table
$colName
$type
$default
$null
return boolean

updateTableDefinitions() public static method

public static updateTableDefinitions ( &$tableDefinitions, $tableNames )
$tableDefinitions
$tableNames