<?php

/**
* Generated at: 2016-08-09T09:00:04+02:00
* Inheritance: no
* Variants: no
* IP: 192.168.11.111


Fields Summary:
- localizedfields [localizedfields]
-- title [input]
-- text [wysiwyg]
-- tags [input]
- date [datetime]
- categories [objects]
- posterImage [hotspotimage]
*/
return Pimcore\Model\Object\ClassDefinition::__set_state(array('name' => 'blogArticle', 'description' => '', 'creationDate' => 1388389165, 'modificationDate' => 1470726004, 'userOwner' => 7, 'userModification' => 7, 'parentClass' => '', 'useTraits' => NULL, 'allowInherit' => false, 'allowVariants' => false, 'showVariants' => false, 'layoutDefinitions' => Pimcore\Model\Object\ClassDefinition\Layout\Panel::__set_state(array('fieldtype' => 'panel', 'labelWidth' => 100, 'layout' => NULL, 'name' => 'pimcore_root', 'type' => NULL, 'region' => NULL, 'title' => NULL, 'width' => NULL, 'height' => NULL, 'collapsible' => false, 'collapsed' => NULL, 'bodyStyle' => NULL, 'datatype' => 'layout', 'permissions' => NULL, 'childs' => array(0 => Pimcore\Model\Object\ClassDefinition\Layout\Region::__set_state(array('fieldtype' => 'region', 'name' => 'Layout', 'type' => NULL, 'region' => NULL, 'title' => '', 'width' => '', 'height' => '', 'collapsible' => false, 'collapsed' => false, 'bodyStyle' => '', 'datatype' => 'layout', 'permissions' => NULL, 'childs' => array(0 => Pimcore\Model\Object\ClassDefinition\Data\Localizedfields::__set_state(array('fieldtype' => 'localizedfields', 'phpdocType' => '\\Pimcore\\Model\\Object\\Localizedfield', 'childs' => array(0 => Pimcore\Model\Object\ClassDefinition\Data\Input::__set_state(array('fieldtype' => 'input', 'width' => 500, 'queryColumnType' => 'varchar', 'columnType' => 'varchar', 'columnLength' => 190, 'phpdocType' => 'string', 'regex' => '', 'name' => 'title', 'title' => 'Title', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 1 => Pimcore\Model\Object\ClassDefinition\Data\Wysiwyg::__set_state(array('fieldtype' => 'wysiwyg', 'width' => '', 'height' => '', 'queryColumnType' => 'longtext', 'columnType' => 'longtext', 'phpdocType' => 'string', 'toolbarConfig' => '', 'name' => 'text', 'title' => 'Text', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 2 => Pimcore\Model\Object\ClassDefinition\Data\Input::__set_state(array('fieldtype' => 'input', 'width' => 500, 'queryColumnType' => 'varchar', 'columnType' => 'varchar', 'columnLength' => 190, 'phpdocType' => 'string', 'regex' => '', 'name' => 'tags', 'title' => 'Tags', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => true, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false))), 'name' => 'localizedfields', 'region' => 'center', 'layout' => NULL, 'title' => '', 'width' => '', 'height' => '', 'maxTabs' => NULL, 'labelWidth' => NULL, 'referencedFields' => array(), 'fieldDefinitionsCache' => array('title' => Pimcore\Model\Object\ClassDefinition\Data\Input::__set_state(array('fieldtype' => 'input', 'width' => 500, 'queryColumnType' => 'varchar', 'columnType' => 'varchar', 'columnLength' => 190, 'phpdocType' => 'string', 'regex' => '', 'name' => 'title', 'title' => 'Title', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 'text' => Pimcore\Model\Object\ClassDefinition\Data\Wysiwyg::__set_state(array('fieldtype' => 'wysiwyg', 'width' => '', 'height' => '', 'queryColumnType' => 'longtext', 'columnType' => 'longtext', 'phpdocType' => 'string', 'toolbarConfig' => '', 'name' => 'text', 'title' => 'Text', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 'tags' => Pimcore\Model\Object\ClassDefinition\Data\Input::__set_state(array('fieldtype' => 'input', 'width' => 500, 'queryColumnType' => 'varchar', 'columnType' => 'varchar', 'columnLength' => 190, 'phpdocType' => 'string', 'regex' => '', 'name' => 'tags', 'title' => 'Tags', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => true, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false))), 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => NULL, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'columnType' => NULL, 'queryColumnType' => NULL, 'relationType' => false, 'invisible' => false, 'visibleGridView' => true, 'visibleSearch' => true)), 1 => Pimcore\Model\Object\ClassDefinition\Layout\Panel::__set_state(array('fieldtype' => 'panel', 'labelWidth' => 100, 'layout' => NULL, 'name' => 'Layout', 'type' => NULL, 'region' => 'east', 'title' => '', 'width' => 450, 'height' => '', 'collapsible' => false, 'collapsed' => false, 'bodyStyle' => '', 'datatype' => 'layout', 'permissions' => NULL, 'childs' => array(0 => Pimcore\Model\Object\ClassDefinition\Data\Datetime::__set_state(array('fieldtype' => 'datetime', 'queryColumnType' => 'bigint(20)', 'columnType' => 'bigint(20)', 'phpdocType' => '\\Pimcore\\Date', 'defaultValue' => NULL, 'useCurrentDate' => false, 'name' => 'date', 'title' => 'Date', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 1 => Pimcore\Model\Object\ClassDefinition\Data\Objects::__set_state(array('fieldtype' => 'objects', 'width' => '', 'height' => '', 'maxItems' => '', 'queryColumnType' => 'text', 'phpdocType' => 'array', 'relationType' => true, 'lazyLoading' => false, 'classes' => array(0 => array('classes' => 'blogCategory')), 'name' => 'categories', 'title' => 'Categories', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'columnType' => NULL, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 2 => Pimcore\Model\Object\ClassDefinition\Data\Hotspotimage::__set_state(array('fieldtype' => 'hotspotimage', 'queryColumnType' => array('image' => 'int(11)', 'hotspots' => 'text'), 'columnType' => array('image' => 'int(11)', 'hotspots' => 'text'), 'phpdocType' => '\\Pimcore\\Model\\Object\\Data\\Hotspotimage', 'ratioX' => NULL, 'ratioY' => NULL, 'width' => 430, 'height' => 400, 'uploadPath' => '', 'name' => 'posterImage', 'title' => 'Poster Image', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false))), 'locked' => false))), 'locked' => false))), 'locked' => false)), 'icon' => '', 'previewUrl' => '', 'group' => NULL, 'propertyVisibility' => array('grid' => array('id' => true, 'path' => true, 'published' => true, 'modificationDate' => true, 'creationDate' => true), 'search' => array('id' => true, 'path' => true, 'published' => true, 'modificationDate' => true, 'creationDate' => true)), 'dao' => NULL));
<?php

/**
* Generated at: 2016-08-09T09:00:04+02:00
* Inheritance: no
* Variants: no
* IP: 192.168.11.111


Fields Summary:
- localizedfields [localizedfields]
-- name [input]
*/
return Pimcore\Model\Object\ClassDefinition::__set_state(array('name' => 'blogCategory', 'description' => '', 'creationDate' => 1388389401, 'modificationDate' => 1470726004, 'userOwner' => 7, 'userModification' => 7, 'parentClass' => '', 'useTraits' => NULL, 'allowInherit' => false, 'allowVariants' => false, 'showVariants' => false, 'layoutDefinitions' => Pimcore\Model\Object\ClassDefinition\Layout\Panel::__set_state(array('fieldtype' => 'panel', 'labelWidth' => 100, 'layout' => NULL, 'name' => 'pimcore_root', 'type' => NULL, 'region' => NULL, 'title' => NULL, 'width' => NULL, 'height' => NULL, 'collapsible' => false, 'collapsed' => NULL, 'bodyStyle' => NULL, 'datatype' => 'layout', 'permissions' => NULL, 'childs' => array(0 => Pimcore\Model\Object\ClassDefinition\Layout\Panel::__set_state(array('fieldtype' => 'panel', 'labelWidth' => 100, 'layout' => '', 'name' => 'Layout', 'type' => NULL, 'region' => '', 'title' => '', 'width' => '', 'height' => '', 'collapsible' => false, 'collapsed' => false, 'bodyStyle' => '', 'datatype' => 'layout', 'permissions' => NULL, 'childs' => array(0 => Pimcore\Model\Object\ClassDefinition\Data\Localizedfields::__set_state(array('fieldtype' => 'localizedfields', 'phpdocType' => '\\Pimcore\\Model\\Object\\Localizedfield', 'childs' => array(0 => Pimcore\Model\Object\ClassDefinition\Data\Input::__set_state(array('fieldtype' => 'input', 'width' => '', 'queryColumnType' => 'varchar', 'columnType' => 'varchar', 'columnLength' => 190, 'phpdocType' => 'string', 'regex' => '', 'name' => 'name', 'title' => 'Name', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false))), 'name' => 'localizedfields', 'region' => '', 'layout' => '', 'title' => '', 'width' => '', 'height' => '', 'maxTabs' => NULL, 'labelWidth' => NULL, 'referencedFields' => array(), 'fieldDefinitionsCache' => array('name' => Pimcore\Model\Object\ClassDefinition\Data\Input::__set_state(array('fieldtype' => 'input', 'width' => '', 'queryColumnType' => 'varchar', 'columnType' => 'varchar', 'columnLength' => 190, 'phpdocType' => 'string', 'regex' => '', 'name' => 'name', 'title' => 'Name', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false))), 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => NULL, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'columnType' => NULL, 'queryColumnType' => NULL, 'relationType' => false, 'invisible' => false, 'visibleGridView' => true, 'visibleSearch' => true))), 'locked' => false))), 'locked' => false)), 'icon' => '', 'previewUrl' => '', 'group' => NULL, 'propertyVisibility' => array('grid' => array('id' => true, 'path' => true, 'published' => true, 'modificationDate' => true, 'creationDate' => true), 'search' => array('id' => true, 'path' => true, 'published' => true, 'modificationDate' => true, 'creationDate' => true)), 'dao' => NULL));
示例#3
0
<?php

/**
* Generated at: 2016-08-09T09:00:04+02:00
* Inheritance: no
* Variants: no
* Changed by: system (0)
* IP: 192.168.11.111


Fields Summary:
- gender [gender]
- firstname [firstname]
- lastname [lastname]
- email [email]
- newsletterActive [newsletterActive]
- newsletterConfirmed [newsletterConfirmed]
- dateRegister [datetime]
*/
return Pimcore\Model\Object\ClassDefinition::__set_state(array('name' => 'person', 'description' => '', 'creationDate' => 1368620452, 'modificationDate' => 1470726004, 'userOwner' => 0, 'userModification' => 0, 'parentClass' => '', 'useTraits' => NULL, 'allowInherit' => false, 'allowVariants' => false, 'showVariants' => false, 'layoutDefinitions' => Pimcore\Model\Object\ClassDefinition\Layout\Panel::__set_state(array('fieldtype' => 'panel', 'labelWidth' => 100, 'layout' => NULL, 'name' => 'pimcore_root', 'type' => NULL, 'region' => NULL, 'title' => NULL, 'width' => NULL, 'height' => NULL, 'collapsible' => false, 'collapsed' => NULL, 'bodyStyle' => NULL, 'datatype' => 'layout', 'permissions' => NULL, 'childs' => array(0 => Pimcore\Model\Object\ClassDefinition\Layout\Panel::__set_state(array('fieldtype' => 'panel', 'labelWidth' => 100, 'layout' => NULL, 'name' => 'Layout', 'type' => NULL, 'region' => NULL, 'title' => NULL, 'width' => NULL, 'height' => NULL, 'collapsible' => false, 'collapsed' => NULL, 'bodyStyle' => NULL, 'datatype' => 'layout', 'permissions' => NULL, 'childs' => array(0 => Pimcore\Model\Object\ClassDefinition\Data\Gender::__set_state(array('fieldtype' => 'gender', 'options' => array(0 => array('key' => 'male', 'value' => 'male'), 1 => array('key' => 'female', 'value' => 'female'), 2 => array('key' => '', 'value' => 'unknown')), 'width' => '', 'defaultValue' => NULL, 'queryColumnType' => 'varchar(190)', 'columnType' => 'varchar(190)', 'phpdocType' => 'string', 'name' => 'gender', 'title' => 'Gender', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 1 => Pimcore\Model\Object\ClassDefinition\Data\Firstname::__set_state(array('fieldtype' => 'firstname', 'width' => '', 'queryColumnType' => 'varchar', 'columnType' => 'varchar', 'columnLength' => 190, 'phpdocType' => 'string', 'regex' => '', 'name' => 'firstname', 'title' => 'Firstname', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 2 => Pimcore\Model\Object\ClassDefinition\Data\Lastname::__set_state(array('fieldtype' => 'lastname', 'width' => '', 'queryColumnType' => 'varchar', 'columnType' => 'varchar', 'columnLength' => 190, 'phpdocType' => 'string', 'regex' => '', 'name' => 'lastname', 'title' => 'Lastname', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 3 => Pimcore\Model\Object\ClassDefinition\Data\Email::__set_state(array('fieldtype' => 'email', 'width' => '', 'queryColumnType' => 'varchar', 'columnType' => 'varchar', 'columnLength' => 190, 'phpdocType' => 'string', 'regex' => '', 'name' => 'email', 'title' => 'Email', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 4 => Pimcore\Model\Object\ClassDefinition\Data\NewsletterActive::__set_state(array('fieldtype' => 'newsletterActive', 'defaultValue' => 0, 'queryColumnType' => 'tinyint(1)', 'columnType' => 'tinyint(1)', 'phpdocType' => 'boolean', 'name' => 'newsletterActive', 'title' => 'Newsletter Active', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => NULL, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => true, 'visibleSearch' => true)), 5 => Pimcore\Model\Object\ClassDefinition\Data\NewsletterConfirmed::__set_state(array('fieldtype' => 'newsletterConfirmed', 'defaultValue' => 0, 'queryColumnType' => 'tinyint(1)', 'columnType' => 'tinyint(1)', 'phpdocType' => 'boolean', 'name' => 'newsletterConfirmed', 'title' => 'Newsletter Confirmed', 'tooltip' => '', 'mandatory' => false, 'noteditable' => true, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 6 => Pimcore\Model\Object\ClassDefinition\Data\Datetime::__set_state(array('fieldtype' => 'datetime', 'queryColumnType' => 'bigint(20)', 'columnType' => 'bigint(20)', 'phpdocType' => '\\Pimcore\\Date', 'defaultValue' => NULL, 'useCurrentDate' => false, 'name' => 'dateRegister', 'title' => 'dateRegister', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false))), 'locked' => false))), 'locked' => false)), 'icon' => '', 'previewUrl' => '', 'group' => NULL, 'propertyVisibility' => array('grid' => array('id' => true, 'path' => true, 'published' => true, 'modificationDate' => true, 'creationDate' => true), 'search' => array('id' => true, 'path' => true, 'published' => true, 'modificationDate' => true, 'creationDate' => true)), 'dao' => NULL));
示例#4
0
<?php

/**
* Generated at: 2016-08-09T09:00:04+02:00
* Inheritance: no
* Variants: no
* Changed by: system (0)
* IP: 192.168.11.111


Fields Summary:
- localizedfields [localizedfields]
-- title [input]
-- shortText [textarea]
-- text [wysiwyg]
- date [datetime]
- image_1 [image]
- image_2 [image]
- image_3 [image]
*/
return Pimcore\Model\Object\ClassDefinition::__set_state(array('name' => 'news', 'description' => '', 'creationDate' => 1368613289, 'modificationDate' => 1470726004, 'userOwner' => 0, 'userModification' => 0, 'parentClass' => '', 'useTraits' => NULL, 'allowInherit' => false, 'allowVariants' => false, 'showVariants' => false, 'layoutDefinitions' => Pimcore\Model\Object\ClassDefinition\Layout\Panel::__set_state(array('fieldtype' => 'panel', 'labelWidth' => 100, 'layout' => NULL, 'name' => 'pimcore_root', 'type' => NULL, 'region' => NULL, 'title' => NULL, 'width' => NULL, 'height' => NULL, 'collapsible' => false, 'collapsed' => NULL, 'bodyStyle' => NULL, 'datatype' => 'layout', 'permissions' => NULL, 'childs' => array(0 => Pimcore\Model\Object\ClassDefinition\Layout\Region::__set_state(array('fieldtype' => 'region', 'name' => 'Layout', 'type' => NULL, 'region' => NULL, 'title' => NULL, 'width' => NULL, 'height' => NULL, 'collapsible' => false, 'collapsed' => NULL, 'bodyStyle' => NULL, 'datatype' => 'layout', 'permissions' => NULL, 'childs' => array(0 => Pimcore\Model\Object\ClassDefinition\Data\Localizedfields::__set_state(array('fieldtype' => 'localizedfields', 'phpdocType' => '\\Pimcore\\Model\\Object\\Localizedfield', 'childs' => array(0 => Pimcore\Model\Object\ClassDefinition\Data\Input::__set_state(array('fieldtype' => 'input', 'width' => 300, 'queryColumnType' => 'varchar', 'columnType' => 'varchar', 'columnLength' => 190, 'phpdocType' => 'string', 'regex' => '', 'name' => 'title', 'title' => 'Title', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 1 => Pimcore\Model\Object\ClassDefinition\Data\Textarea::__set_state(array('fieldtype' => 'textarea', 'width' => 300, 'height' => '', 'queryColumnType' => 'longtext', 'columnType' => 'longtext', 'phpdocType' => 'string', 'name' => 'shortText', 'title' => 'Short Text', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 2 => Pimcore\Model\Object\ClassDefinition\Data\Wysiwyg::__set_state(array('fieldtype' => 'wysiwyg', 'width' => '', 'height' => '', 'queryColumnType' => 'longtext', 'columnType' => 'longtext', 'phpdocType' => 'string', 'toolbarConfig' => '', 'name' => 'text', 'title' => 'Text', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false))), 'name' => 'localizedfields', 'region' => 'center', 'layout' => '', 'title' => '', 'width' => '', 'height' => '', 'maxTabs' => NULL, 'labelWidth' => NULL, 'referencedFields' => array(), 'fieldDefinitionsCache' => array('title' => Pimcore\Model\Object\ClassDefinition\Data\Input::__set_state(array('fieldtype' => 'input', 'width' => 300, 'queryColumnType' => 'varchar', 'columnType' => 'varchar', 'columnLength' => 190, 'phpdocType' => 'string', 'regex' => '', 'name' => 'title', 'title' => 'Title', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 'shortText' => Pimcore\Model\Object\ClassDefinition\Data\Textarea::__set_state(array('fieldtype' => 'textarea', 'width' => 300, 'height' => '', 'queryColumnType' => 'longtext', 'columnType' => 'longtext', 'phpdocType' => 'string', 'name' => 'shortText', 'title' => 'Short Text', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 'text' => Pimcore\Model\Object\ClassDefinition\Data\Wysiwyg::__set_state(array('fieldtype' => 'wysiwyg', 'width' => '', 'height' => '', 'queryColumnType' => 'longtext', 'columnType' => 'longtext', 'phpdocType' => 'string', 'toolbarConfig' => '', 'name' => 'text', 'title' => 'Text', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false))), 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => NULL, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'columnType' => NULL, 'queryColumnType' => NULL, 'relationType' => false, 'invisible' => false, 'visibleGridView' => true, 'visibleSearch' => true)), 1 => Pimcore\Model\Object\ClassDefinition\Layout\Panel::__set_state(array('fieldtype' => 'panel', 'labelWidth' => 100, 'layout' => '', 'name' => 'Date & Images', 'type' => NULL, 'region' => 'east', 'title' => '', 'width' => 400, 'height' => '', 'collapsible' => false, 'collapsed' => false, 'bodyStyle' => '', 'datatype' => 'layout', 'permissions' => NULL, 'childs' => array(0 => Pimcore\Model\Object\ClassDefinition\Data\Datetime::__set_state(array('fieldtype' => 'datetime', 'queryColumnType' => 'bigint(20)', 'columnType' => 'bigint(20)', 'phpdocType' => '\\Pimcore\\Date', 'defaultValue' => NULL, 'useCurrentDate' => false, 'name' => 'date', 'title' => 'Date', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 1 => Pimcore\Model\Object\ClassDefinition\Data\Image::__set_state(array('fieldtype' => 'image', 'width' => 350, 'height' => 350, 'uploadPath' => '', 'queryColumnType' => 'int(11)', 'columnType' => 'int(11)', 'phpdocType' => '\\Pimcore\\Model\\Asset\\Image', 'name' => 'image_1', 'title' => 'Image', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 2 => Pimcore\Model\Object\ClassDefinition\Data\Image::__set_state(array('fieldtype' => 'image', 'width' => 350, 'height' => 350, 'uploadPath' => '', 'queryColumnType' => 'int(11)', 'columnType' => 'int(11)', 'phpdocType' => '\\Pimcore\\Model\\Asset\\Image', 'name' => 'image_2', 'title' => 'Image', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 3 => Pimcore\Model\Object\ClassDefinition\Data\Image::__set_state(array('fieldtype' => 'image', 'width' => 350, 'height' => 350, 'uploadPath' => '', 'queryColumnType' => 'int(11)', 'columnType' => 'int(11)', 'phpdocType' => '\\Pimcore\\Model\\Asset\\Image', 'name' => 'image_3', 'title' => 'Image', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false))), 'locked' => false))), 'locked' => false))), 'locked' => false)), 'icon' => '', 'previewUrl' => '/%title_n%o_id', 'group' => NULL, 'propertyVisibility' => array('grid' => array('id' => true, 'path' => true, 'published' => true, 'modificationDate' => true, 'creationDate' => true), 'search' => array('id' => true, 'path' => true, 'published' => true, 'modificationDate' => true, 'creationDate' => true)), 'dao' => NULL));
示例#5
0
<?php

/** 
* Generated at: 2016-08-09T09:00:04+02:00
* Inheritance: no
* Variants: no
* Changed by: system (0)
* IP: 192.168.11.111


Fields Summary: 
- date [datetime]
- person [href]
- message [textarea]
- terms [checkbox]
*/
return Pimcore\Model\Object\ClassDefinition::__set_state(array('name' => 'inquiry', 'description' => '', 'creationDate' => 1368620413, 'modificationDate' => 1470726004, 'userOwner' => 0, 'userModification' => 0, 'parentClass' => '', 'useTraits' => NULL, 'allowInherit' => false, 'allowVariants' => false, 'showVariants' => false, 'layoutDefinitions' => Pimcore\Model\Object\ClassDefinition\Layout\Panel::__set_state(array('fieldtype' => 'panel', 'labelWidth' => 100, 'layout' => NULL, 'name' => 'pimcore_root', 'type' => NULL, 'region' => NULL, 'title' => NULL, 'width' => NULL, 'height' => NULL, 'collapsible' => false, 'collapsed' => NULL, 'bodyStyle' => NULL, 'datatype' => 'layout', 'permissions' => NULL, 'childs' => array(0 => Pimcore\Model\Object\ClassDefinition\Layout\Panel::__set_state(array('fieldtype' => 'panel', 'labelWidth' => 100, 'layout' => '', 'name' => 'Layout', 'type' => NULL, 'region' => '', 'title' => '', 'width' => '', 'height' => '', 'collapsible' => false, 'collapsed' => false, 'bodyStyle' => '', 'datatype' => 'layout', 'permissions' => NULL, 'childs' => array(0 => Pimcore\Model\Object\ClassDefinition\Layout\Panel::__set_state(array('fieldtype' => 'panel', 'labelWidth' => 100, 'layout' => NULL, 'name' => 'Layout', 'type' => NULL, 'region' => NULL, 'title' => NULL, 'width' => NULL, 'height' => NULL, 'collapsible' => false, 'collapsed' => NULL, 'bodyStyle' => NULL, 'datatype' => 'layout', 'permissions' => NULL, 'childs' => array(0 => Pimcore\Model\Object\ClassDefinition\Data\Datetime::__set_state(array('fieldtype' => 'datetime', 'queryColumnType' => 'bigint(20)', 'columnType' => 'bigint(20)', 'phpdocType' => '\\Pimcore\\Date', 'defaultValue' => NULL, 'useCurrentDate' => false, 'name' => 'date', 'title' => 'Date', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 1 => Pimcore\Model\Object\ClassDefinition\Data\Href::__set_state(array('fieldtype' => 'href', 'width' => 450, 'assetUploadPath' => '', 'relationType' => true, 'queryColumnType' => array('id' => 'int(11)', 'type' => 'enum(\'document\',\'asset\',\'object\')'), 'phpdocType' => '\\Pimcore\\Model\\Document\\Page | \\Pimcore\\Model\\Document\\Snippet | \\Pimcore\\Model\\Document | \\Pimcore\\Model\\Asset | \\Pimcore\\Model\\Object\\AbstractObject', 'objectsAllowed' => true, 'assetsAllowed' => false, 'assetTypes' => array(), 'documentsAllowed' => false, 'documentTypes' => array(), 'lazyLoading' => false, 'classes' => array(0 => array('classes' => 'person')), 'name' => 'person', 'title' => 'Person', 'tooltip' => '', 'mandatory' => true, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'columnType' => NULL, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 2 => Pimcore\Model\Object\ClassDefinition\Data\Textarea::__set_state(array('fieldtype' => 'textarea', 'width' => 450, 'height' => '', 'queryColumnType' => 'longtext', 'columnType' => 'longtext', 'phpdocType' => 'string', 'name' => 'message', 'title' => 'Message', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false)), 3 => Pimcore\Model\Object\ClassDefinition\Data\Checkbox::__set_state(array('fieldtype' => 'checkbox', 'defaultValue' => 0, 'queryColumnType' => 'tinyint(1)', 'columnType' => 'tinyint(1)', 'phpdocType' => 'boolean', 'name' => 'terms', 'title' => 'Terms of Use', 'tooltip' => '', 'mandatory' => false, 'noteditable' => false, 'index' => false, 'locked' => false, 'style' => '', 'permissions' => NULL, 'datatype' => 'data', 'relationType' => false, 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false))), 'locked' => false))), 'locked' => false))), 'locked' => false)), 'icon' => '', 'previewUrl' => '', 'group' => NULL, 'propertyVisibility' => array('grid' => array('id' => true, 'path' => true, 'published' => true, 'modificationDate' => true, 'creationDate' => true), 'search' => array('id' => true, 'path' => true, 'published' => true, 'modificationDate' => true, 'creationDate' => true)), 'dao' => NULL));
 /**
  * @param $classname
  * @param $filepath
  * @throws \Exception
  */
 private static function createClass($classname, $filepath)
 {
     $class = \Pimcore\Model\Object\ClassDefinition::getByName($classname);
     if (!$class) {
         $class = new \Pimcore\Model\Object\ClassDefinition();
         $class->setName($classname);
     }
     $json = file_get_contents($filepath);
     $success = \Pimcore\Model\Object\ClassDefinition\Service::importClassDefinitionFromJson($class, $json);
     if (!$success) {
         throw new \Exception("Could not import {$classname} Class.");
     }
 }