Changeset View
Changeset View
Standalone View
Standalone View
branches/1.2.x/units/widgets/widgets_config.php
Show All 22 Lines | |||||
'QueryString' => Array ( | 'QueryString' => Array ( | ||||
1 => 'id', | 1 => 'id', | ||||
2 => 'Page', | 2 => 'Page', | ||||
3 => 'PerPage', | 3 => 'PerPage', | ||||
4 => 'event', | 4 => 'event', | ||||
5 => 'mode', | 5 => 'mode', | ||||
), | ), | ||||
'Hooks' => array( | |||||
array( | |||||
'Mode' => hBEFORE, | |||||
'Conditional' => false, | |||||
'HookToPrefix' => 'priority', | |||||
'HookToSpecial' => '*', | |||||
'HookToEvent' => array('OnAfterConfigRead'), | |||||
'DoPrefix' => '', | |||||
'DoSpecial' => '*', | |||||
'DoEvent' => 'OnModifyPrioritiesConfig', | |||||
), | |||||
), | |||||
// in case, when one method does everything | // in case, when one method does everything | ||||
'RewriteListener' => 'WidgetRewriteListener', | 'RewriteListener' => 'WidgetRewriteListener', | ||||
// in case, when building and parsing is done by separate methods | // in case, when building and parsing is done by separate methods | ||||
// 'RewriteListener' => Array ('WidgetRewriteBuilder', 'WidgetRewriteParser'), | // 'RewriteListener' => Array ('WidgetRewriteBuilder', 'WidgetRewriteParser'), | ||||
'IDField' => 'WidgetId', | 'IDField' => 'WidgetId', | ||||
Show All 17 Lines | |||||
'default' => Array ( | 'default' => Array ( | ||||
'new_status_labels' => Array ('widget' => '!la_title_AddingWidget!'), | 'new_status_labels' => Array ('widget' => '!la_title_AddingWidget!'), | ||||
'edit_status_labels' => Array ('widget' => '!la_title_EditingWidget!'), | 'edit_status_labels' => Array ('widget' => '!la_title_EditingWidget!'), | ||||
'new_titlefield' => Array ('widget' => '!la_title_NewWidget!'), | 'new_titlefield' => Array ('widget' => '!la_title_NewWidget!'), | ||||
), | ), | ||||
'widget_list' => Array ( | 'widget_list' => Array ( | ||||
'prefixes' => Array ('widget_List'), 'format' => '#section_label#', | 'prefixes' => Array ('widget_List'), 'format' => '#section_label#', | ||||
'toolbar_buttons' => Array ('new_item', 'edit', 'delete', 'approve', 'decline', 'export', 'import', 'view', 'dbl-click',), | 'toolbar_buttons' => array('new_item', 'edit', 'delete', 'approve', 'decline', 'move_up', 'move_down', 'refresh', 'export', 'import', 'view', 'dbl-click'), | ||||
), | ), | ||||
'widget_edit' => Array ( | 'widget_edit' => Array ( | ||||
'prefixes' => Array ('widget'), 'format' => '#widget_status# - #widget_titlefield#', | 'prefixes' => Array ('widget'), 'format' => '#widget_status# - #widget_titlefield#', | ||||
'toolbar_buttons' => Array ('select', 'cancel', 'reset_edit', 'prev', 'next'), | 'toolbar_buttons' => Array ('select', 'cancel', 'reset_edit', 'prev', 'next'), | ||||
), | ), | ||||
), | ), | ||||
Show All 21 Lines | |||||
'ItemSQLs' => Array ( | 'ItemSQLs' => Array ( | ||||
'' => 'SELECT %1$s.* %2$s | '' => 'SELECT %1$s.* %2$s | ||||
FROM %1$s', | FROM %1$s', | ||||
), | ), | ||||
'ListSortings' => Array ( | 'ListSortings' => Array ( | ||||
'' => Array ( | '' => Array ( | ||||
// 'ForcedSorting' => Array ('Priority' => 'desc'), | 'Sorting' => array('Priority' => 'desc'), | ||||
'Sorting' => Array ('Title' => 'asc'), | |||||
) | ) | ||||
), | ), | ||||
'CalculatedFields' => array( | 'CalculatedFields' => array( | ||||
'' => array( | '' => array( | ||||
'VirtualActionField' => '%1$s.WidgetId', | 'VirtualActionField' => '%1$s.WidgetId', | ||||
) | ) | ||||
), | ), | ||||
▲ Show 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | |||||
'file_types' => '*.*', | 'file_types' => '*.*', | ||||
'files_description' => '!la_hint_AllFiles!', | 'files_description' => '!la_hint_AllFiles!', | ||||
'upload_dir' => '/system/user_files/', // relative to project's home | 'upload_dir' => '/system/user_files/', // relative to project's home | ||||
'as_image' => false, | 'as_image' => false, | ||||
'multiple' => 5, // false or max number of files - will be stored as serialized array of paths | 'multiple' => 5, // false or max number of files - will be stored as serialized array of paths | ||||
'direct_links' => true, // use direct file urls or send files through wrapper (requires mod_mime_magic) | 'direct_links' => true, // use direct file urls or send files through wrapper (requires mod_mime_magic) | ||||
'default' => null | 'default' => null | ||||
), | ), | ||||
'Priority' => array( | |||||
'type' => 'int', | |||||
'formatter' => 'kOptionsFormatter', 'options' => array(), | |||||
'not_null' => 1, 'default' => 0, | |||||
), | |||||
), | ), | ||||
'Grids' => Array ( | 'Grids' => Array ( | ||||
'Default' => Array ( | 'Default' => Array ( | ||||
// 'Icons' => Array ('default' => 'icon16_custom.gif'), | 'Icons' => array( | ||||
'default' => 'icon16_item.png', | |||||
1 => 'icon16_item.png', | |||||
2 => 'icon16_pending.png', | |||||
0 => 'icon16_disabled.png', | |||||
'module' => 'core', | |||||
), | |||||
'Fields' => Array ( | 'Fields' => Array ( | ||||
'WidgetId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter'), | 'WidgetId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter'), | ||||
'Title' => Array ('title' => 'column:la_fld_Name', 'data_block' => 'grid_custom_td'), | 'Title' => Array ('title' => 'column:la_fld_Name', 'data_block' => 'grid_custom_td'), | ||||
'Image' => Array ('data_block' => 'grid_image_td', 'filter_block' => 'grid_empty_filter', 'width' => 120), | 'Image' => Array ('data_block' => 'grid_image_td', 'filter_block' => 'grid_empty_filter', 'width' => 120), | ||||
'Type' => Array ('filter_block' => 'grid_options_filter'), | 'Type' => Array ('filter_block' => 'grid_options_filter'), | ||||
'Status' => Array ('filter_block' => 'grid_options_filter'), | 'Status' => Array ('filter_block' => 'grid_options_filter'), | ||||
'Good' => Array ('filter_block' => 'grid_like_filter'), | 'Good' => Array ('filter_block' => 'grid_like_filter'), | ||||
'Qty' => Array ('header_block' => 'grid_column_title_no_sorting', 'filter_block' => 'grid_range_filter'), | 'Qty' => Array ('header_block' => 'grid_column_title_no_sorting', 'filter_block' => 'grid_range_filter'), | ||||
'Email' => Array ('filter_block' => 'grid_like_filter'), | 'Email' => Array ('filter_block' => 'grid_like_filter'), | ||||
'Phone' => Array ('filter_block' => 'grid_like_filter'), | 'Phone' => Array ('filter_block' => 'grid_like_filter'), | ||||
'CreatedOn' => Array ('filter_block' => 'grid_date_range_filter'), | 'CreatedOn' => Array ('filter_block' => 'grid_date_range_filter'), | ||||
'Description' => Array ('filter_block' => 'grid_like_filter'), | 'Description' => Array ('filter_block' => 'grid_like_filter'), | ||||
'VirtualActionField' => Array ('title' => 'column:la_fld_Action', 'data_block' => 'grid_delete_td'), | 'VirtualActionField' => Array ('title' => 'column:la_fld_Action', 'data_block' => 'grid_delete_td'), | ||||
'Priority' => array('filter_block' => 'grid_options_filter'), | |||||
), | ), | ||||
), | ), | ||||
), | ), | ||||
/*'ConfigMapping' => Array ( | /*'ConfigMapping' => Array ( | ||||
'PerPage' => 'Perpage_Widgets', | 'PerPage' => 'Perpage_Widgets', | ||||
'ShortListPerPage' => 'Perpage_Widgets_Short', | 'ShortListPerPage' => 'Perpage_Widgets_Short', | ||||
),*/ | ),*/ | ||||
); | ); | ||||
No newline at end of file |