From 10aecf4d127af7d86779eb1917e819d795b06d6d Mon Sep 17 00:00:00 2001 From: Divesh Date: Tue, 25 Jan 2022 15:03:31 +0100 Subject: [PATCH] News Class - remove unnecessary field - follow up to https://github.com/pimcore/demo/commit/b65db7724337f382ff785b54d7fcc2a15ddb83cc --- var/classes/definition_News.php | 160 ++++++++------------------------ 1 file changed, 40 insertions(+), 120 deletions(-) diff --git a/var/classes/definition_News.php b/var/classes/definition_News.php index c3b29774..1c00c4a2 100644 --- a/var/classes/definition_News.php +++ b/var/classes/definition_News.php @@ -12,7 +12,6 @@ - content [fieldcollections] - date [datetime] - gallery [imageGallery] -- dfgdsfgsdfgsdf [select] */ @@ -30,16 +29,16 @@ 'useTraits' => '', 'listingUseTraits' => '', 'encryption' => false, - 'encryptedTables' => + 'encryptedTables' => array ( ), 'allowInherit' => false, 'allowVariants' => false, 'showVariants' => false, - 'fieldDefinitions' => + 'fieldDefinitions' => array ( ), - 'layoutDefinitions' => + 'layoutDefinitions' => Pimcore\Model\DataObject\ClassDefinition\Layout\Panel::__set_state(array( 'fieldtype' => 'panel', 'layout' => NULL, @@ -55,9 +54,9 @@ 'bodyStyle' => NULL, 'datatype' => 'layout', 'permissions' => NULL, - 'childs' => + 'childs' => array ( - 0 => + 0 => Pimcore\Model\DataObject\ClassDefinition\Layout\Region::__set_state(array( 'fieldtype' => 'region', 'name' => 'Base Data', @@ -71,9 +70,9 @@ 'bodyStyle' => '', 'datatype' => 'layout', 'permissions' => NULL, - 'childs' => + 'childs' => array ( - 0 => + 0 => Pimcore\Model\DataObject\ClassDefinition\Layout\Panel::__set_state(array( 'fieldtype' => 'panel', 'layout' => NULL, @@ -89,14 +88,14 @@ 'bodyStyle' => '', 'datatype' => 'layout', 'permissions' => NULL, - 'childs' => + 'childs' => array ( - 0 => + 0 => Pimcore\Model\DataObject\ClassDefinition\Data\Localizedfields::__set_state(array( 'fieldtype' => 'localizedfields', - 'childs' => + 'childs' => array ( - 0 => + 0 => Pimcore\Model\DataObject\ClassDefinition\Data\Input::__set_state(array( 'fieldtype' => 'input', 'width' => 300, @@ -119,7 +118,7 @@ 'invisible' => false, 'visibleGridView' => true, 'visibleSearch' => true, - 'forbiddenNames' => + 'forbiddenNames' => array ( 0 => 'id', 1 => 'key', @@ -167,12 +166,12 @@ 43 => 'children', 44 => 'scheduledtasks', ), - 'blockedVarsForExport' => + 'blockedVarsForExport' => array ( ), 'defaultValueGenerator' => '', )), - 1 => + 1 => Pimcore\Model\DataObject\ClassDefinition\Data\Textarea::__set_state(array( 'fieldtype' => 'textarea', 'width' => 300, @@ -194,7 +193,7 @@ 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false, - 'forbiddenNames' => + 'forbiddenNames' => array ( 0 => 'id', 1 => 'key', @@ -242,7 +241,7 @@ 43 => 'children', 44 => 'scheduledtasks', ), - 'blockedVarsForExport' => + 'blockedVarsForExport' => array ( ), )), @@ -258,7 +257,7 @@ 'provideSplitView' => false, 'tabPosition' => 'top', 'hideLabelsWhenTabsReached' => NULL, - 'referencedFields' => + 'referencedFields' => array ( ), 'fieldDefinitionsCache' => NULL, @@ -276,7 +275,7 @@ 'invisible' => false, 'visibleGridView' => true, 'visibleSearch' => true, - 'forbiddenNames' => + 'forbiddenNames' => array ( 0 => 'id', 1 => 'key', @@ -324,16 +323,16 @@ 43 => 'children', 44 => 'scheduledtasks', ), - 'blockedVarsForExport' => + 'blockedVarsForExport' => array ( ), 'labelWidth' => 100, 'labelAlign' => 'left', )), - 1 => + 1 => Pimcore\Model\DataObject\ClassDefinition\Data\Fieldcollections::__set_state(array( 'fieldtype' => 'fieldcollections', - 'allowedTypes' => + 'allowedTypes' => array ( 0 => 'NewsCars', 1 => 'NewsLinks', @@ -360,7 +359,7 @@ 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false, - 'forbiddenNames' => + 'forbiddenNames' => array ( 0 => 'id', 1 => 'key', @@ -408,20 +407,20 @@ 43 => 'children', 44 => 'scheduledtasks', ), - 'blockedVarsForExport' => + 'blockedVarsForExport' => array ( ), )), ), 'locked' => false, - 'blockedVarsForExport' => + 'blockedVarsForExport' => array ( ), 'icon' => NULL, 'labelWidth' => 100, 'labelAlign' => 'left', )), - 1 => + 1 => Pimcore\Model\DataObject\ClassDefinition\Layout\Panel::__set_state(array( 'fieldtype' => 'panel', 'layout' => NULL, @@ -437,9 +436,9 @@ 'bodyStyle' => '', 'datatype' => 'layout', 'permissions' => NULL, - 'childs' => + 'childs' => array ( - 0 => + 0 => Pimcore\Model\DataObject\ClassDefinition\Data\Datetime::__set_state(array( 'fieldtype' => 'datetime', 'queryColumnType' => 'bigint(20)', @@ -460,7 +459,7 @@ 'invisible' => false, 'visibleGridView' => true, 'visibleSearch' => true, - 'forbiddenNames' => + 'forbiddenNames' => array ( 0 => 'id', 1 => 'key', @@ -508,12 +507,12 @@ 43 => 'children', 44 => 'scheduledtasks', ), - 'blockedVarsForExport' => + 'blockedVarsForExport' => array ( ), 'defaultValueGenerator' => '', )), - 1 => + 1 => Pimcore\Model\DataObject\ClassDefinition\Data\ImageGallery::__set_state(array( 'fieldtype' => 'imageGallery', 'width' => 412, @@ -536,7 +535,7 @@ 'invisible' => false, 'visibleGridView' => false, 'visibleSearch' => false, - 'forbiddenNames' => + 'forbiddenNames' => array ( 0 => 'id', 1 => 'key', @@ -584,92 +583,13 @@ 43 => 'children', 44 => 'scheduledtasks', ), - 'blockedVarsForExport' => + 'blockedVarsForExport' => array ( ), )), - 2 => - Pimcore\Model\DataObject\ClassDefinition\Data\Select::__set_state(array( - 'fieldtype' => 'select', - 'options' => - array ( - ), - 'width' => '', - 'defaultValue' => '', - 'optionsProviderClass' => '', - 'optionsProviderData' => '', - 'columnLength' => 190, - 'dynamicOptions' => false, - 'name' => 'dfgdsfgsdfgsdf', - 'title' => 'dfgdsfgsdfgsdf', - 'tooltip' => '', - 'mandatory' => false, - 'noteditable' => false, - 'index' => false, - 'locked' => NULL, - 'style' => '', - 'permissions' => NULL, - 'datatype' => 'data', - 'relationType' => false, - 'invisible' => false, - 'visibleGridView' => false, - 'visibleSearch' => false, - 'forbiddenNames' => - array ( - 0 => 'id', - 1 => 'key', - 2 => 'path', - 3 => 'type', - 4 => 'index', - 5 => 'classname', - 6 => 'creationdate', - 7 => 'userowner', - 8 => 'value', - 9 => 'class', - 10 => 'list', - 11 => 'fullpath', - 12 => 'childs', - 13 => 'values', - 14 => 'cachetag', - 15 => 'cachetags', - 16 => 'parent', - 17 => 'published', - 18 => 'valuefromparent', - 19 => 'userpermissions', - 20 => 'dependencies', - 21 => 'modificationdate', - 22 => 'usermodification', - 23 => 'byid', - 24 => 'bypath', - 25 => 'data', - 26 => 'versions', - 27 => 'properties', - 28 => 'permissions', - 29 => 'permissionsforuser', - 30 => 'childamount', - 31 => 'apipluginbroker', - 32 => 'resource', - 33 => 'parentClass', - 34 => 'definition', - 35 => 'locked', - 36 => 'language', - 37 => 'omitmandatorycheck', - 38 => 'idpath', - 39 => 'object', - 40 => 'fieldname', - 41 => 'property', - 42 => 'parentid', - 43 => 'children', - 44 => 'scheduledtasks', - ), - 'blockedVarsForExport' => - array ( - ), - 'defaultValueGenerator' => '', - )), ), 'locked' => false, - 'blockedVarsForExport' => + 'blockedVarsForExport' => array ( ), 'icon' => NULL, @@ -678,14 +598,14 @@ )), ), 'locked' => false, - 'blockedVarsForExport' => + 'blockedVarsForExport' => array ( ), 'icon' => NULL, )), ), 'locked' => false, - 'blockedVarsForExport' => + 'blockedVarsForExport' => array ( ), 'icon' => NULL, @@ -698,14 +618,14 @@ 'showAppLoggerTab' => false, 'linkGeneratorReference' => '@App\\Website\\LinkGenerator\\NewsLinkGenerator', 'previewGeneratorReference' => '', - 'compositeIndices' => + 'compositeIndices' => array ( ), 'generateTypeDeclarations' => true, 'showFieldLookup' => false, - 'propertyVisibility' => + 'propertyVisibility' => array ( - 'grid' => + 'grid' => array ( 'id' => true, 'key' => false, @@ -714,7 +634,7 @@ 'modificationDate' => false, 'creationDate' => false, ), - 'search' => + 'search' => array ( 'id' => true, 'key' => false, @@ -726,7 +646,7 @@ ), 'enableGridLocking' => false, 'dao' => NULL, - 'blockedVarsForExport' => + 'blockedVarsForExport' => array ( ), ));