Index: branches/5.2.x/core/units/thesaurus/thesaurus_config.php =================================================================== diff -u -N -r14585 -r16388 --- branches/5.2.x/core/units/thesaurus/thesaurus_config.php (.../thesaurus_config.php) (revision 14585) +++ branches/5.2.x/core/units/thesaurus/thesaurus_config.php (.../thesaurus_config.php) (revision 16388) @@ -1,6 +1,6 @@ 'thesaurus', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'ThesaurusEventHandler', 'file' => 'thesaurus_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'ThesaurusTagProcessor', 'file' => 'thesaurus_tp.php', 'build_event' => 'OnBuild'), +$config = Array ( + 'Prefix' => 'thesaurus', + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'EventHandlerClass' => Array ('class' => 'ThesaurusEventHandler', 'file' => 'thesaurus_eh.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'ThesaurusTagProcessor', 'file' => 'thesaurus_tp.php', 'build_event' => 'OnBuild'), - 'AutoLoad' => true, + 'AutoLoad' => true, - 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 'QueryString' => Array ( + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), - 'IDField' => 'ThesaurusId', + 'IDField' => 'ThesaurusId', - 'TableName' => TABLE_PREFIX.'Thesaurus', + 'TableName' => TABLE_PREFIX.'Thesaurus', - 'TitleField' => 'SearchTerm', + 'TitleField' => 'SearchTerm', - 'TitlePresets' => Array ( - 'default' => Array ( - 'new_status_labels' => Array ('thesaurus' => '!la_title_AddingThesaurus!'), - 'edit_status_labels' => Array ('thesaurus' => '!la_title_EditingThesaurus!'), - ), + 'TitlePresets' => Array ( + 'default' => Array ( + 'new_status_labels' => Array ('thesaurus' => '!la_title_AddingThesaurus!'), + 'edit_status_labels' => Array ('thesaurus' => '!la_title_EditingThesaurus!'), + ), - 'thesaurus_list' => Array ( - 'prefixes' => Array ('thesaurus_List'), 'format' => "!la_title_Thesaurus!", - 'toolbar_buttons' => Array ('new_item', 'edit', 'delete', 'export', 'view', 'dbl-click'), - ), + 'thesaurus_list' => Array ( + 'prefixes' => Array ('thesaurus_List'), 'format' => "!la_title_Thesaurus!", + 'toolbar_buttons' => Array ('new_item', 'edit', 'delete', 'export', 'view', 'dbl-click'), + ), - 'thesaurus_edit' => Array ( - 'prefixes' => Array ('thesaurus'), 'format' => "#thesaurus_status# '#thesaurus_titlefield#'", - 'toolbar_buttons' => Array ('select', 'cancel', 'reset_edit', 'prev', 'next'), - ), + 'thesaurus_edit' => Array ( + 'prefixes' => Array ('thesaurus'), 'format' => "#thesaurus_status# '#thesaurus_titlefield#'", + 'toolbar_buttons' => Array ('select', 'cancel', 'reset_edit', 'prev', 'next'), ), + ), - 'PermSection' => Array('main' => 'in-portal:thesaurus'), + 'PermSection' => Array ('main' => 'in-portal:thesaurus'), - 'Sections' => Array ( - 'in-portal:thesaurus' => Array ( - 'parent' => 'in-portal:website_setting_folder', - 'icon' => 'conf_thesaurus', - 'label' => 'la_title_Thesaurus', - 'url' => Array('t' => 'thesaurus/thesaurus_list', 'pass' => 'm'), - 'permissions' => Array('view', 'add', 'edit', 'delete'), - 'priority' => 9, - 'type' => stTREE, - ), + 'Sections' => Array ( + 'in-portal:thesaurus' => Array ( + 'parent' => 'in-portal:website_setting_folder', + 'icon' => 'conf_thesaurus', + 'label' => 'la_title_Thesaurus', + 'url' => Array ('t' => 'thesaurus/thesaurus_list', 'pass' => 'm'), + 'permissions' => Array ('view', 'add', 'edit', 'delete'), + 'priority' => 9, + 'type' => stTREE, ), + ), - 'ListSQLs' => Array ( - '' => ' SELECT %1$s.* %2$s FROM %1$s', - ), + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM %1$s', + ), - 'ListSortings' => Array ( - '' => Array ( - 'Sorting' => Array ('SearchTerm' => 'asc'), - ) - ), + 'ListSortings' => Array ( + '' => Array ( + 'Sorting' => Array ('SearchTerm' => 'asc'), + ) + ), - 'Fields' => Array ( - 'ThesaurusId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'SearchTerm' => Array ('type' => 'string', 'max_len' => 255, 'required' => 1, 'not_null' => 1, 'default' => ''), - 'ThesaurusTerm' => Array ('type' => 'string', 'max_len' => 255, 'required' => 1, 'not_null' => 1, 'default' => ''), - 'ThesaurusType' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', 'options' => Array ( - 0 => 'NT', -// 1 => 'RT', -// 2 => 'USE' - ), - 'not_null' => 1, 'required' => 1, 'default' => 0 - ), + 'Fields' => Array ( + 'ThesaurusId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'SearchTerm' => Array ('type' => 'string', 'max_len' => 255, 'required' => 1, 'not_null' => 1, 'default' => ''), + 'ThesaurusTerm' => Array ('type' => 'string', 'max_len' => 255, 'required' => 1, 'not_null' => 1, 'default' => ''), + 'ThesaurusType' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'options' => Array ( + 0 => 'NT', +// 1 => 'RT', +// 2 => 'USE' + ), + 'not_null' => 1, 'required' => 1, 'default' => 0 ), + ), - 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disabled.png', - 1 => 'icon16_item.png', - ), - 'Fields' => Array ( - 'ThesaurusId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 70, ), - 'SearchTerm' => Array ('filter_block' => 'grid_like_filter', 'width' => 250, ), - 'ThesaurusTerm' => Array ('filter_block' => 'grid_like_filter', 'width' => 250, ), -// 'ThesaurusType' => Array ('filter_block' => 'grid_options_filter',), - ), + 'Grids' => Array ( + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 0 => 'icon16_disabled.png', + 1 => 'icon16_item.png', ), + 'Fields' => Array ( + 'ThesaurusId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 70, ), + 'SearchTerm' => Array ('filter_block' => 'grid_like_filter', 'width' => 250, ), + 'ThesaurusTerm' => Array ('filter_block' => 'grid_like_filter', 'width' => 250, ), +// 'ThesaurusType' => Array ('filter_block' => 'grid_options_filter',), + ), ), - ); \ No newline at end of file + ), +); \ No newline at end of file