Index: branches/5.2.x/core/units/theme_files/theme_files_config.php =================================================================== diff -u -N -r14585 -r16388 --- branches/5.2.x/core/units/theme_files/theme_files_config.php (.../theme_files_config.php) (revision 14585) +++ branches/5.2.x/core/units/theme_files/theme_files_config.php (.../theme_files_config.php) (revision 16388) @@ -1,6 +1,6 @@ 'theme-file', - 'ItemClass' => Array('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class' => 'ThemeFileEventHandler', 'file' => 'theme_file_eh.php', 'build_event'=>'OnBuild'), - 'TagProcessorClass' => Array('class' => 'kDBTagProcessor', 'file' => '', 'build_event'=>'OnBuild'), - 'AutoLoad' => true, +$config = Array ( + 'Prefix' => 'theme-file', + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'EventHandlerClass' => Array ('class' => 'ThemeFileEventHandler', 'file' => 'theme_file_eh.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), - 'QueryString' => Array( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 'AutoLoad' => true, - 'IDField' => 'FileId', + 'QueryString' => Array ( + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), - 'TitleField' => 'FileName', + 'IDField' => 'FileId', - 'TableName' => TABLE_PREFIX.'ThemeFiles', + 'TitleField' => 'FileName', - 'ForeignKey' => 'ThemeId', - 'ParentTableKey' => 'ThemeId', - 'ParentPrefix' => 'theme', - 'AutoDelete' => true, - 'AutoClone' => true, + 'TableName' => TABLE_PREFIX.'ThemeFiles', - 'ListSQLs' => Array( '' => 'SELECT %1$s.* %2$s FROM %s'), - 'ItemSQLs' => Array( '' => 'SELECT %1$s.* %2$s FROM %s'), + 'ForeignKey' => 'ThemeId', + 'ParentTableKey' => 'ThemeId', + 'ParentPrefix' => 'theme', + 'AutoDelete' => true, + 'AutoClone' => true, - 'ListSortings' => Array ( - '' => Array( - 'Sorting' => Array('FileName' => 'asc'), - ) - ), + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM %s' + ), - 'Fields' => Array( - 'FileId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ThemeId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'FileName' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), - 'FilePath' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), - 'TemplateAlias' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), - 'Description' => Array ('type' => 'string', 'max_len' => 255, 'default' => NULL), - 'FileType' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'FileFound' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'FileMetaInfo' => Array ('type' => 'string', 'default' => NULL), - ), + 'ListSortings' => Array ( + '' => Array ( + 'Sorting' => Array ('FileName' => 'asc'), + ) + ), - 'VirtualFields' => Array ( - 'FileContents' => Array ('type' => 'string', 'required' => 1, 'default' => ''), - 'BlockPosition' => Array ('type' => 'string', 'default' => ''), - ), + 'Fields' => Array ( + 'FileId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ThemeId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'FileName' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), + 'FilePath' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), + 'TemplateAlias' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), + 'Description' => Array ('type' => 'string', 'max_len' => 255, 'default' => NULL), + 'FileType' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'FileFound' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'FileMetaInfo' => Array ('type' => 'string', 'default' => NULL), + ), - 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disabled.png', - 1 => 'icon16_item.png', - ), - 'Fields' => Array ( - 'FileId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 70, ), - 'FileName' => Array ('width' => 150, ), - 'FilePath' => Array ('width' => 300, ), - 'Description' => Array ('width' => 300, ), - ), + 'VirtualFields' => Array ( + 'FileContents' => Array ('type' => 'string', 'required' => 1, 'default' => ''), + 'BlockPosition' => Array ('type' => 'string', 'default' => ''), + ), - ), - ), - ); \ No newline at end of file + 'Grids' => Array ( + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 0 => 'icon16_disabled.png', + 1 => 'icon16_item.png', + ), + 'Fields' => Array ( + 'FileId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 70, ), + 'FileName' => Array ('width' => 150, ), + 'FilePath' => Array ('width' => 300, ), + 'Description' => Array ('width' => 300, ), + ), + ), + ), +); \ No newline at end of file