Index: modules/in-link/units/listing_types/listing_types_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-link/units/listing_types/listing_types_config.php (revision 15601) +++ modules/in-link/units/listing_types/listing_types_config.php (revision ) @@ -14,149 +14,154 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'lst', + 'Prefix' => 'lst', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'ListingTypesEventHandler', 'file' => 'listing_types_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'ListingTypesEventHandler', 'file' => 'listing_types_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'ListingTypesTagProcessor', 'file' => 'listing_types_tag_processor.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'ListingTypesTagProcessor', 'file' => 'listing_types_tag_processor.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, + - 'AggregateTags' => Array ( + 'AggregateTags' => Array ( - Array ( - 'AggregateTo' => 'l', - 'AggregatedTagName' => 'ListListingTypes', - 'LocalTagName' => 'PrintList', - ), - Array ( - 'AggregateTo' => 'l', - 'AggregatedTagName' => 'ListingTypeField', - 'LocalTagName' => 'Field', - ), - ), + Array ( + 'AggregateTo' => 'l', + 'AggregatedTagName' => 'ListListingTypes', + 'LocalTagName' => 'PrintList', + ), + Array ( + 'AggregateTo' => 'l', + 'AggregatedTagName' => 'ListingTypeField', + 'LocalTagName' => 'Field', + ), + ), - 'Hooks' => Array (), + - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', + 1 => 'id', - 2 => 'Page', + 2 => 'Page', - 3 => 'PerPage', + 3 => 'PerPage', - 4 => 'event', + 4 => 'event', - 5 => 'mode', + 5 => 'mode', - ), + ), + - 'IDField' => 'ListingTypeId', + 'IDField' => 'ListingTypeId', - 'TitleField' => 'Name', + 'TitleField' => 'Name', + - 'TitlePresets' => Array ( + 'TitlePresets' => Array ( - 'default' => Array ( 'new_status_labels' => Array ('lst' => '!la_title_AddingPaidListingType!'), + 'default' => Array ( + 'new_status_labels' => Array ('lst' => '!la_title_AddingPaidListingType!'), - 'edit_status_labels' => Array ('lst' => '!la_title_EditingPaidListingType!'), + 'edit_status_labels' => Array ('lst' => '!la_title_EditingPaidListingType!'), - 'new_titlefield' => Array ('lst' => '!la_title_NewPaidListingType!'), + 'new_titlefield' => Array ('lst' => '!la_title_NewPaidListingType!'), - ), + ), - 'listing_type_list' =>Array ( 'prefixes' => Array ('lst_List'), - 'format' => "!la_title_PaidListingTypes!", + 'listing_type_list' =>Array ( + 'prefixes' => Array ('lst_List'), 'format' => "!la_title_PaidListingTypes!", - ), + ), - 'listing_type_edit' =>Array ( 'prefixes' => Array ('lst'), + 'listing_type_edit' =>Array ( + 'prefixes' => Array ('lst'), - 'new_titlefield' => Array ('lst' => '!la_title_NewPaidListingType!'), + 'new_titlefield' => Array ('lst' => '!la_title_NewPaidListingType!'), - 'format' => "#lst_status# '#lst_titlefield#' - !la_title_General!", + 'format' => "#lst_status# '#lst_titlefield#' - !la_title_General!", - ), + ), - 'listing_type_shop_cart' =>Array ( 'prefixes' => Array ('lst'), + 'listing_type_shop_cart' =>Array ( + 'prefixes' => Array ('lst'), - 'new_titlefield' => Array ('lst' => '!la_title_NewPaidListingType!'), + 'new_titlefield' => Array ('lst' => '!la_title_NewPaidListingType!'), - 'format' => "#lst_status# '#lst_titlefield#' - !la_title_ShopCartEntry!", + 'format' => "#lst_status# '#lst_titlefield#' - !la_title_ShopCartEntry!", - ), + ), - - - ), + ), - 'EditTabPresets' => Array ( - 'Default' => Array ( - 'general' => Array ('title' => 'la_tab_General', 't' => 'in-link/paid_listings/paid_listing_type_edit', 'priority' => 1), - ), - ), + 'EditTabPresets' => Array ( + 'Default' => Array ( + 'general' => Array ('title' => 'la_tab_General', 't' => 'in-link/paid_listings/paid_listing_type_edit', 'priority' => 1), + ), + ), - 'PermSection' => Array ('main' => 'in-link:listing_types'), + 'PermSection' => Array ('main' => 'in-link:listing_types'), - 'Sections' => Array ( + 'Sections' => Array ( - 'in-link:listing_types' => Array ( + 'in-link:listing_types' => Array ( - 'parent' => 'in-link:paid_listings_folder', + 'parent' => 'in-link:paid_listings_folder', - 'icon' => 'paid_listings', + 'icon' => 'paid_listings', - 'label' => 'la_tab_ListingTypes', + 'label' => 'la_tab_ListingTypes', - 'url' => Array ('t' => 'in-link/paid_listings/paid_listing_types_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-link/paid_listings/paid_listing_types_list', 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit', 'delete'), + 'permissions' => Array ('view', 'add', 'edit', 'delete'), - 'priority' => 1.2, // ., because this section replaces parent in tree + 'priority' => 1.2, // ., because this section replaces parent in tree - 'type' => stTAB, + 'type' => stTAB, - ), - ), + ), + ), - 'TableName' => TABLE_PREFIX.'ListingTypes', + 'TableName' => TABLE_PREFIX.'ListingTypes', - 'ListSQLs' => Array ( '' => 'SELECT * FROM %s',), // key - special, value - list select sql + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s', + ), - 'ItemSQLs' => Array ( '' => 'SELECT * FROM %s',), - - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( + '' => Array ( - 'Sorting' => Array ('ListingTypeId' => 'asc'), - ) - ), + 'Sorting' => Array ('ListingTypeId' => 'asc'), + ) + ), - 'Fields' => Array ( - 'ListingTypeId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'Name' => Array ('type' => 'string', 'not_null' => 1, 'default' => '', 'required' => '1'), - 'Description' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => NULL), - 'Duration' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'DurationType' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (1 => 'la_opt_sec', 2 => 'la_opt_min', 3 => 'la_opt_hour', 4 => 'la_opt_day', 5 => 'la_opt_week', 6 => 'la_opt_month', 7 => 'la_opt_year')), - 'OnPurchaseEdPick' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_On', 0 => 'la_Off'), 'default' => 3), + 'Fields' => Array ( + 'ListingTypeId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'Name' => Array ('type' => 'string', 'not_null' => 1, 'default' => '', 'required' => '1'), + 'Description' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => NULL), + 'Duration' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'DurationType' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (1 => 'la_opt_sec', 2 => 'la_opt_min', 3 => 'la_opt_hour', 4 => 'la_opt_day', 5 => 'la_opt_week', 6 => 'la_opt_month', 7 => 'la_opt_year')), + 'OnPurchaseEdPick' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_On', 0 => 'la_Off'), 'default' => 3), - 'OnPurchaseStatus' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_Enabled', 0 => 'la_Disabled', 2 => 'la_Pending'), 'default' => 3), + 'OnPurchaseStatus' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_Enabled', 0 => 'la_Disabled', 2 => 'la_Pending'), 'default' => 3), - 'OnPurchaseNew' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_On', 0 => 'la_Off', 2 => 'la_Auto'), 'default' => 3), - 'OnPurchasePop' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_On', 0 => 'la_Off', 2 => 'la_Auto'), 'default' => 3), - 'OnPurchaseHot' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_On', 0 => 'la_Off', 2 => 'la_Auto'), 'default' => 3), - 'OnPurchasePriorityAction' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (0 => 'la_DontChange', 1 => 'la_SetEqualTo', 2 => 'la_IncreaseBy', 3 => 'la_DecreaseBy'), 'default' => 0), - 'OnPurchasePriorityValue' => Array ('type' => 'int', 'not_null' => 1, 'default' => 1), - 'OnPurchaseAddToCatEnabled' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'OnPurchaseAddToCat' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'OnPurchaseCustomTemplate' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'OnPurchaseNew' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_On', 0 => 'la_Off', 2 => 'la_Auto'), 'default' => 3), + 'OnPurchasePop' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_On', 0 => 'la_Off', 2 => 'la_Auto'), 'default' => 3), + 'OnPurchaseHot' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_On', 0 => 'la_Off', 2 => 'la_Auto'), 'default' => 3), + 'OnPurchasePriorityAction' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (0 => 'la_DontChange', 1 => 'la_SetEqualTo', 2 => 'la_IncreaseBy', 3 => 'la_DecreaseBy'), 'default' => 0), + 'OnPurchasePriorityValue' => Array ('type' => 'int', 'not_null' => 1, 'default' => 1), + 'OnPurchaseAddToCatEnabled' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'OnPurchaseAddToCat' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'OnPurchaseCustomTemplate' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'OnExpireEdPick' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_On', 0 => 'la_Off'), 'not_null' => 1, 'default' => 3), - 'OnExpireNew' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_On', 0 => 'la_Off', 2 => 'la_Auto'), 'default' => 3), - 'OnExpirePop' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_On', 0 => 'la_Off', 2 => 'la_Auto'), 'default' => 3), - 'OnExpireHot' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_On', 0 => 'la_Off', 2 => 'la_Auto'), 'default' => 3), - 'OnExpirePriorityAction' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (0 => 'la_DontChange', 1 => 'la_SetEqualTo', 2 => 'la_IncreaseBy', 3 => 'la_DecreaseBy'), 'default' => 0), - 'OnExpirePriorityValue' => Array ('type' => 'int', 'not_null' => 1, 'default' => 1), - 'OnExpireRemoveFromCatEnabled' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'OnExpireRemoveFromCat' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'OnExpireCustomTemplate' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'OnExpireEdPick' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_On', 0 => 'la_Off'), 'not_null' => 1, 'default' => 3), + 'OnExpireNew' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_On', 0 => 'la_Off', 2 => 'la_Auto'), 'default' => 3), + 'OnExpirePop' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_On', 0 => 'la_Off', 2 => 'la_Auto'), 'default' => 3), + 'OnExpireHot' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_On', 0 => 'la_Off', 2 => 'la_Auto'), 'default' => 3), + 'OnExpirePriorityAction' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (0 => 'la_DontChange', 1 => 'la_SetEqualTo', 2 => 'la_IncreaseBy', 3 => 'la_DecreaseBy'), 'default' => 0), + 'OnExpirePriorityValue' => Array ('type' => 'int', 'not_null' => 1, 'default' => 1), + 'OnExpireRemoveFromCatEnabled' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'OnExpireRemoveFromCat' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'OnExpireCustomTemplate' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'OnExpireStatus' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_Enabled', 0 => 'la_Disabled', 2 => 'la_Pending'), 'default' => 3), - 'RenewalReminder' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'EnableBuying' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, - 'default' => 0, 'not_null' => 1, - ), - 'ShopCartName' => Array ('type' => 'string', 'default' => null), - 'Price' => Array ('type' => 'double', 'default' => ''), - 'Recurring' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, - 'default' => 0, 'not_null' => 1, - ), - 'VirtualProductId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - ), + 'OnExpireStatus' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (3 => 'la_Unchanged', 1 => 'la_Enabled', 0 => 'la_Disabled', 2 => 'la_Pending'), 'default' => 3), + 'RenewalReminder' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'EnableBuying' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, + 'default' => 0, 'not_null' => 1, + ), + 'ShopCartName' => Array ('type' => 'string', 'default' => null), + 'Price' => Array ('type' => 'double', 'default' => ''), + 'Recurring' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, + 'default' => 0, 'not_null' => 1, + ), + 'VirtualProductId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + ), - 'Grids' => Array ( + 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disbaled.png', - 1 => 'icon16_item.png', - 'module' => 'core', - ), - 'Fields' => Array ( - 'ListingTypeId' => Array ( 'title' => 'column:la_fld_Id' , 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60), - 'Name' => Array ('filter_block' => 'grid_like_filter', 'width' => 250), - 'Duration' => Array ('data_block' => 'duration_td', 'filter_block' => 'grid_like_filter', 'width' => 100), - ), + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 0 => 'icon16_disbaled.png', + 1 => 'icon16_item.png', + 'module' => 'core', + ), + 'Fields' => Array ( + 'ListingTypeId' => Array ( 'title' => 'column:la_fld_Id' , 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60), + 'Name' => Array ('filter_block' => 'grid_like_filter', 'width' => 250), + 'Duration' => Array ('data_block' => 'duration_td', 'filter_block' => 'grid_like_filter', 'width' => 100), + ), - - ), - ), - ); \ No newline at end of file + ), + ), +); \ No newline at end of file Index: modules/in-bulletin/units/emoticons/emoticons_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-bulletin/units/emoticons/emoticons_config.php (revision 15601) +++ modules/in-bulletin/units/emoticons/emoticons_config.php (revision ) @@ -12,97 +12,98 @@ * See http://www.in-portal.org/license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( - 'Prefix' => 'emoticon', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'EmoticonEventHandler', 'file' => 'emoticon_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), +$config = Array ( + 'Prefix' => 'emoticon', + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'EventHandlerClass' => Array ('class' => 'EmoticonEventHandler', 'file' => 'emoticon_eh.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', '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' => 'EmoticonId', + 'IDField' => 'EmoticonId', - 'TableName' => TABLE_PREFIX.'Emoticon', + 'TableName' => TABLE_PREFIX.'Emoticon', - 'TitleField' => 'Name', + 'TitleField' => 'Name', - 'TitlePresets' => Array ( - 'default' => Array ( - 'new_status_labels' => Array ('emoticon' => '!la_title_AddingSmiley!'), - 'edit_status_labels' => Array ('emoticon' => '!la_title_EditingSmiley!'), - ), + 'TitlePresets' => Array ( + 'default' => Array ( + 'new_status_labels' => Array ('emoticon' => '!la_title_AddingSmiley!'), + 'edit_status_labels' => Array ('emoticon' => '!la_title_EditingSmiley!'), + ), - 'emoticon_list' => Array ('prefixes' => Array ('emoticon_List'), 'format' => "!la_tab_ConfigSmileys!"), - 'emoticon_edit' => Array ('prefixes' => Array ('emoticon'), 'format' => "#emoticon_status# '#emoticon_titlefield#'"), - ), + 'emoticon_list' => Array ('prefixes' => Array ('emoticon_List'), 'format' => "!la_tab_ConfigSmileys!"), + 'emoticon_edit' => Array ('prefixes' => Array ('emoticon'), 'format' => "#emoticon_status# '#emoticon_titlefield#'"), + ), - 'PermSection' => Array('main' => 'in-bulletin:configuration_emoticon'), + 'PermSection' => Array ('main' => 'in-bulletin:configuration_emoticon'), - 'Sections' => Array ( - 'in-bulletin:configuration_emoticon' => Array ( + 'Sections' => Array ( + 'in-bulletin:configuration_emoticon' => Array ( - 'parent' => 'in-bulletin:setting_folder', + 'parent' => 'in-bulletin:setting_folder', - 'icon' => 'conf_smileys', + 'icon' => 'conf_smileys', - 'label' => 'la_tab_ConfigSmileys', + 'label' => 'la_tab_ConfigSmileys', - 'url' => Array('t' => 'in-bulletin/emoticons/emoticon_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-bulletin/emoticons/emoticon_list', 'pass' => 'm'), - 'permissions' => Array('view', 'add', 'edit'), + 'permissions' => Array ('view', 'add', 'edit'), - 'priority' => 2, + 'priority' => 2, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - 'ListSQLs' => Array ( + 'ListSQLs' => Array ( - '' => ' SELECT %1$s.* %2$s FROM %1$s', + '' => ' SELECT %1$s.* %2$s + FROM %1$s', - ), + ), - 'ListSortings' => Array ( - '' => Array ( - 'Sorting' => Array ('Name' => 'desc'), - ) - ), + 'ListSortings' => Array ( + '' => Array ( + 'Sorting' => Array ('Name' => 'desc'), + ) + ), - 'Fields' => Array ( - 'EmoticonId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Name' => Array ('type' => 'string', 'max_len' => 20, 'not_null' => 1, 'required' => 1, 'default' => ''), - 'KeyStroke' => Array ('type' => 'string', 'max_len' => 20, 'not_null' => 1, 'required' => 1, 'default' => ''), - 'Enabled' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, - 'default' => 1, 'not_null' => 1, - ), - 'EmotionImage' => Array ( - 'type' => 'string', 'max_len' => 255, - 'formatter' => 'kUploadFormatter', 'allowed_types' => Array ('image/jpeg', 'image/jpg', 'image/gif', 'image/png', 'image/pjpeg'), - 'upload_dir' => SMILEYS_PATH, - 'not_null' => 1, 'required' => 1, 'default' => '', - ), - ), + 'Fields' => Array ( + 'EmoticonId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Name' => Array ('type' => 'string', 'max_len' => 20, 'not_null' => 1, 'required' => 1, 'default' => ''), + 'KeyStroke' => Array ('type' => 'string', 'max_len' => 20, 'not_null' => 1, 'required' => 1, 'default' => ''), + 'Enabled' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, + 'default' => 1, 'not_null' => 1, + ), + 'EmotionImage' => Array ( + 'type' => 'string', 'max_len' => 255, + 'formatter' => 'kUploadFormatter', 'allowed_types' => Array ('image/jpeg', 'image/jpg', 'image/gif', 'image/png', 'image/pjpeg'), + 'upload_dir' => SMILEYS_PATH, + 'not_null' => 1, 'required' => 1, 'default' => '', + ), + ), - 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disabled.png', - 1 => 'icon16_item.png', - 'module' => 'core', - ), - 'Fields' => Array ( - 'EmoticonId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 50, ), - 'Name' => Array ('filter_block' => 'grid_like_filter', 'width' => 150, ), - 'KeyStroke' => Array ('filter_block' => 'grid_like_filter', 'width' => 100, ), - 'EmotionImage' => Array ('title' => 'column:la_fld_Image', 'filter_block' => 'grid_like_filter', 'width' => 150, ), - ), - ), - ), - ); \ No newline at end of file + 'Grids' => Array ( + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 0 => 'icon16_disabled.png', + 1 => 'icon16_item.png', + 'module' => 'core', + ), + 'Fields' => Array ( + 'EmoticonId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 50, ), + 'Name' => Array ('filter_block' => 'grid_like_filter', 'width' => 150, ), + 'KeyStroke' => Array ('filter_block' => 'grid_like_filter', 'width' => 100, ), + 'EmotionImage' => Array ('title' => 'column:la_fld_Image', 'filter_block' => 'grid_like_filter', 'width' => 150, ), + ), + ), + ), +); \ No newline at end of file Index: modules/in-commerce/units/affiliate_plans/affiliate_plans_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/affiliate_plans/affiliate_plans_config.php (revision 15601) +++ modules/in-commerce/units/affiliate_plans/affiliate_plans_config.php (revision ) @@ -13,113 +13,114 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'ap', + 'Prefix' => 'ap', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'AffiliatePlansEventHandler', 'file' => 'affiliate_plans_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'AffiliatePlansEventHandler', 'file' => 'affiliate_plans_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), - 'AutoLoad' => true, + 'AutoLoad' => true, - 'AggregateTags' => Array ( - ), + - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), - 'IDField' => 'AffiliatePlanId', + 'IDField' => 'AffiliatePlanId', - 'StatusField' => Array ('Enabled', 'IsPrimary'), // field, that is affected by Approve/Decline events + 'StatusField' => Array ('Enabled', 'IsPrimary'), // field, that is affected by Approve/Decline events - 'TitleField' => 'Name', + 'TitleField' => 'Name', - 'TitlePresets' => Array ( + 'TitlePresets' => Array ( - 'default' => Array ( 'new_status_labels' => Array ('ap' => '!la_title_Adding_Affiliate_Plan!'), + 'default' => Array ( + 'new_status_labels' => Array ('ap' => '!la_title_Adding_Affiliate_Plan!'), - 'edit_status_labels' => Array ('ap' => '!la_title_Editing_Affiliate_Plan!'), + 'edit_status_labels' => Array ('ap' => '!la_title_Editing_Affiliate_Plan!'), - 'new_titlefield' => Array ('ap' => '!la_title_New_Affiliate_Plan!'), + 'new_titlefield' => Array ('ap' => '!la_title_New_Affiliate_Plan!'), - ), + ), - 'affiliate_plans_list' => Array ('prefixes' => Array ('ap_List'), 'format' => "!la_title_AffiliatePlans!"), + 'affiliate_plans_list' => Array ('prefixes' => Array ('ap_List'), 'format' => "!la_title_AffiliatePlans!"), - 'affiliate_plans_edit' => Array ('prefixes' => Array ('ap'), 'format' => "#ap_status# '#ap_titlefield#' - !la_title_General!"), + 'affiliate_plans_edit' => Array ('prefixes' => Array ('ap'), 'format' => "#ap_status# '#ap_titlefield#' - !la_title_General!"), - 'affiliate_plans_brackets' => Array ('prefixes' => Array ('ap', 'apbrackets_List'), 'format' => "#ap_status# '#ap_titlefield#' - !la_title_AffiliatePlansBrackets!"), + 'affiliate_plans_brackets' => Array ('prefixes' => Array ('ap', 'apbrackets_List'), 'format' => "#ap_status# '#ap_titlefield#' - !la_title_AffiliatePlansBrackets!"), - 'affiliate_plans_items' => Array ('prefixes' => Array ('ap', 'api_List'), 'format' => "#ap_status# '#ap_titlefield#' - !la_title_AffiliatePlansBrackets!"), + 'affiliate_plans_items' => Array ('prefixes' => Array ('ap', 'api_List'), 'format' => "#ap_status# '#ap_titlefield#' - !la_title_AffiliatePlansBrackets!"), - - ), + ), - 'EditTabPresets' => Array ( - 'Default' => Array ( - 'general' => Array ('title' => 'la_tab_General', 't' => 'in-commerce/affiliate_plans/affiliate_plans_edit', 'priority' => 1), - 'brackets' => Array ('title' => 'la_tab_Brackets', 't' => 'in-commerce/affiliate_plans/affiliate_plans_brackets', 'priority' => 2), + 'EditTabPresets' => Array ( + 'Default' => Array ( + 'general' => Array ('title' => 'la_tab_General', 't' => 'in-commerce/affiliate_plans/affiliate_plans_edit', 'priority' => 1), + 'brackets' => Array ('title' => 'la_tab_Brackets', 't' => 'in-commerce/affiliate_plans/affiliate_plans_brackets', 'priority' => 2), -// 'items' => Array ('title' => 'la_tab_Items', 't' => 'in-commerce/affiliate_plans/affiliate_plans_items', 'priority' => 3), +// 'items' => Array ('title' => 'la_tab_Items', 't' => 'in-commerce/affiliate_plans/affiliate_plans_items', 'priority' => 3), - ), - ), + ), + ), - 'PermSection' => Array ('main' => 'in-commerce:affiliate_plans'), + 'PermSection' => Array ('main' => 'in-commerce:affiliate_plans'), - 'Sections' => Array ( + 'Sections' => Array ( - 'in-commerce:affiliate_plans' => Array ( + 'in-commerce:affiliate_plans' => Array ( - 'parent' => 'in-commerce:affiliates_folder', + 'parent' => 'in-commerce:affiliates_folder', - 'icon' => 'affiliates', + 'icon' => 'affiliates', - 'label' => 'la_tab_AffiliatePlans', + 'label' => 'la_tab_AffiliatePlans', - 'url' => Array ('t' => 'in-commerce/affiliate_plans/affiliate_plans_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-commerce/affiliate_plans/affiliate_plans_list', 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit', 'delete', 'advanced:approve', 'advanced:decline', 'advanced:set_primary'), + 'permissions' => Array ('view', 'add', 'edit', 'delete', 'advanced:approve', 'advanced:decline', 'advanced:set_primary'), - 'priority' => 5.2, // ., because this section replaces parent in tree + 'priority' => 5.2, // ., because this section replaces parent in tree - 'type' => stTAB, + 'type' => stTAB, - ), - ), + ), + ), - 'TableName' => TABLE_PREFIX.'AffiliatePlans', + 'TableName' => TABLE_PREFIX.'AffiliatePlans', - 'ListSQLs' => Array ('' => 'SELECT * FROM %s'), - 'ItemSQLs' => Array ('' => 'SELECT * FROM %s'), + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s' + ), - 'SubItems' => Array ('apbrackets', /*'api'*/), + 'SubItems' => Array ('apbrackets', /*'api'*/), + - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( - 'ForcedSorting' => Array ('IsPrimary' => 'desc'), - 'Sorting' => Array ('Name' => 'desc'), - ) - ), + '' => Array ( + 'ForcedSorting' => Array ('IsPrimary' => 'desc'), + 'Sorting' => Array ('Name' => 'desc'), + ) + ), - 'Fields' => Array ( - 'AffiliatePlanId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'Name' => Array ('type' => 'string', 'unique' => Array (), 'not_null' => 1, 'required' => 1, 'default' => ''), - 'PlanType' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (/*0 => 'la_by_amount',*/ 1 => 'la_by_amount', 2 => 'la_by_items_sold'), 'use_phrases' => 1, 'required' => 1, 'not_null' => 1, 'default' => 1), - 'ResetInterval' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (86400 => 'la_day', 604800 => 'la_week', 2628000 => 'la_month', 7884000 => 'la_quartely', 31536000 => 'la_year'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 0), - 'PaymentType' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_regular', 1 => 'la_by_request'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 0), - 'MinPaymentAmount' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'Enabled' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( 0 => 'la_Disabled', 1 => 'la_Active', ), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), - 'IsPrimary' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), - ), + 'Fields' => Array ( + 'AffiliatePlanId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'Name' => Array ('type' => 'string', 'unique' => Array (), 'not_null' => 1, 'required' => 1, 'default' => ''), + 'PlanType' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (/*0 => 'la_by_amount',*/ 1 => 'la_by_amount', 2 => 'la_by_items_sold'), 'use_phrases' => 1, 'required' => 1, 'not_null' => 1, 'default' => 1), + 'ResetInterval' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (86400 => 'la_day', 604800 => 'la_week', 2628000 => 'la_month', 7884000 => 'la_quartely', 31536000 => 'la_year'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 0), + 'PaymentType' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_regular', 1 => 'la_by_request'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 0), + 'MinPaymentAmount' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'Enabled' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( 0 => 'la_Disabled', 1 => 'la_Active', ), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), + 'IsPrimary' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), + ), - 'Grids' => Array ( + 'Grids' => Array ( - 'Default' => Array ( + 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - '0_0' => 'icon16_disabled.png', - '0_1' => 'icon16_disabled.png', - '1_0' => 'icon16_item.png', - '1_1' => 'icon16_primary.png', - 'module' => 'core', - ), - 'Fields' => Array ( - 'AffiliatePlanId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'Icons' => Array ( + 'default' => 'icon16_item.png', + '0_0' => 'icon16_disabled.png', + '0_1' => 'icon16_disabled.png', + '1_0' => 'icon16_item.png', + '1_1' => 'icon16_primary.png', + 'module' => 'core', + ), + 'Fields' => Array ( + 'AffiliatePlanId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'Name' => Array ( 'filter_block' => 'grid_like_filter', 'width' => 200, ), + 'Name' => Array ( 'filter_block' => 'grid_like_filter', 'width' => 200, ), - 'PlanType' => Array ( 'filter_block' => 'grid_options_filter', 'width' => 150, ), + 'PlanType' => Array ( 'filter_block' => 'grid_options_filter', 'width' => 150, ), - 'Enabled' => Array ( 'title' => 'column:la_fld_Status', 'filter_block' => 'grid_options_filter', 'width' => 80, ), + 'Enabled' => Array ( 'title' => 'column:la_fld_Status', 'filter_block' => 'grid_options_filter', 'width' => 80, ), - ), - ), + ), + ), - - ), - ); \ No newline at end of file + ), +); \ No newline at end of file Index: modules/in-commerce/units/product_option_combinations/product_option_combinations_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/product_option_combinations/product_option_combinations_config.php (revision 15601) +++ modules/in-commerce/units/product_option_combinations/product_option_combinations_config.php (revision ) @@ -13,130 +13,136 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'poc', + 'Prefix' => 'poc', - 'ItemClass' => Array ('class' => 'kPOCItem', 'file' => 'products_option_combination_item.php', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kPOCItem', 'file' => 'products_option_combination_item.php', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'ProductOptionCombinationsEventHandler', 'file' => 'product_option_combinations_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'ProductOptionCombinationsEventHandler', 'file' => 'product_option_combinations_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'ProductOptionCombinationsTagProcessor', 'file' => 'product_option_combinations_tag_processor.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'ProductOptionCombinationsTagProcessor', 'file' => 'product_option_combinations_tag_processor.php', 'build_event' => 'OnBuild'), + - 'RegisterClasses' => Array ( + 'RegisterClasses' => Array ( - Array ('pseudo' => 'kCombinationFormatter', 'class' => 'kCombinationFormatter', 'file' => 'product_option_formatters.php', 'build_event' => ''), - Array ('pseudo' => 'kCombPriceFormatter', 'class' => 'kCombPriceFormatter', 'file' => 'product_option_formatters.php', 'build_event' => ''), - ), + Array ('pseudo' => 'kCombinationFormatter', 'class' => 'kCombinationFormatter', 'file' => 'product_option_formatters.php', 'build_event' => ''), + Array ('pseudo' => 'kCombPriceFormatter', 'class' => 'kCombPriceFormatter', 'file' => 'product_option_formatters.php', 'build_event' => ''), + ), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'Hooks' => Array ( - ), - 'AggregateTags' => Array ( - ), - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), + - 'TitleField' => 'CombinationId', + 'TitleField' => 'CombinationId', - 'IDField' => 'CombinationId', + 'IDField' => 'CombinationId', - 'TableName' => TABLE_PREFIX.'ProductOptionCombinations', + 'TableName' => TABLE_PREFIX.'ProductOptionCombinations', - 'ForeignKey' => Array ('p' => 'ProductId'), + 'ForeignKey' => Array ('p' => 'ProductId'), - 'ParentTableKey' => Array ('p' => 'ProductId'), - 'ParentPrefix' => 'p', + 'ParentTableKey' => Array ('p' => 'ProductId'), + 'ParentPrefix' => 'p', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - 'ListSQLs' => Array ( '' => 'SELECT %1$s.* %2$s + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'Products ON '.TABLE_PREFIX.'Products.ProductId = %1$s.ProductId + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'Products ON '.TABLE_PREFIX.'Products.ProductId = %1$s.ProductId - LEFT JOIN '.TABLE_PREFIX.'ProductsPricing ON '.TABLE_PREFIX.'ProductsPricing.ProductId = %1$s.ProductId AND '.TABLE_PREFIX.'ProductsPricing.IsPrimary = 1 - ', - ), // key - special, value - list select sql - 'ItemSQLs' => Array ( '' => 'SELECT * FROM %s', + LEFT JOIN '.TABLE_PREFIX.'ProductsPricing ON '.TABLE_PREFIX.'ProductsPricing.ProductId = %1$s.ProductId AND '.TABLE_PREFIX.'ProductsPricing.IsPrimary = 1', - ), + ), + + 'ItemSQLs' => Array ( + '' => ' SELECT * + FROM %s', + ), + - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( - 'Sorting' => Array ('Combination' => 'asc'), - 'ForcedSorting' => Array ('Priority' => 'desc'), - ) - ), + '' => Array ( + 'Sorting' => Array ('Combination' => 'asc'), + 'ForcedSorting' => Array ('Priority' => 'desc'), + ) + ), + - 'Fields' => Array ( - 'CombinationId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), - 'ProductId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), - 'Combination' => Array ('type' => 'string', 'required' => 1, 'formatter' => 'kCombinationFormatter', 'format' =>"%s: %s
", 'default' => NULL), - 'CombinationCRC' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), - 'PriceType' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Txt_=', 2 => 'la_Flat', 3 => 'la_Percent'), 'use_phrases' => 1, 'default' => 3, ), - 'Price' => Array ('type' => 'float', 'required' => 1, 'formatter' => 'kFormatter', 'default' => '', ), - 'WeightType' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Txt_=', 2 => 'la_Flat', 3 => 'la_Percent'), 'use_phrases' => 1, 'default' => 3, ), - 'Weight' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'default' => 0, ), + 'Fields' => Array ( + 'CombinationId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), + 'ProductId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), + 'Combination' => Array ('type' => 'string', 'required' => 1, 'formatter' => 'kCombinationFormatter', 'format' =>"%s: %s
", 'default' => NULL), + 'CombinationCRC' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), + 'PriceType' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Txt_=', 2 => 'la_Flat', 3 => 'la_Percent'), 'use_phrases' => 1, 'default' => 3, ), + 'Price' => Array ('type' => 'float', 'required' => 1, 'formatter' => 'kFormatter', 'default' => '', ), + 'WeightType' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Txt_=', 2 => 'la_Flat', 3 => 'la_Percent'), 'use_phrases' => 1, 'default' => 3, ), + 'Weight' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'default' => 0, ), - 'Availability' => Array ( + 'Availability' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 1, - ), - 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 1, + ), + 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), - 'QtyInStock' => Array ('type' => 'int', 'not_null' => '1', 'default' => 0), + 'QtyInStock' => Array ('type' => 'int', 'not_null' => '1', 'default' => 0), - 'QtyReserved' => Array ('type' => 'int', 'not_null' => '1', 'default' => 0), + 'QtyReserved' => Array ('type' => 'int', 'not_null' => '1', 'default' => 0), - 'QtyBackOrdered' => Array ('type' => 'int', 'not_null' => '1', 'default' => 0), + 'QtyBackOrdered' => Array ('type' => 'int', 'not_null' => '1', 'default' => 0), - 'QtyOnOrder' => Array ('type' => 'int', 'not_null' => '1', 'default' => 0), + 'QtyOnOrder' => Array ('type' => 'int', 'not_null' => '1', 'default' => 0), - 'SKU' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), + 'SKU' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), - ), + ), + - 'CalculatedFields' => Array ( - '' => Array ( - 'FinalPrice' => 'IF(%1$s.PriceType = 1, %1$s.Price, - IF(%1$s.PriceType = 2, '.TABLE_PREFIX.'ProductsPricing.Price + %1$s.Price, - '.TABLE_PREFIX.'ProductsPricing.Price * (1 + %1$s.Price/100) - ) - )', - 'BasePrice' => TABLE_PREFIX.'ProductsPricing.Price', - ), - ), + 'CalculatedFields' => Array ( + '' => Array ( + 'FinalPrice' => 'IF(%1$s.PriceType = 1, %1$s.Price, + IF(%1$s.PriceType = 2, '.TABLE_PREFIX.'ProductsPricing.Price + %1$s.Price, + '.TABLE_PREFIX.'ProductsPricing.Price * (1 + %1$s.Price/100) + ) + )', + 'BasePrice' => TABLE_PREFIX.'ProductsPricing.Price', + ), + ), + - 'VirtualFields' => Array ( + 'VirtualFields' => Array ( - 'FinalPrice' => Array ('type' => 'float', 'formatter' => 'kCombPriceFormatter', 'format' => '%.2f', 'default' => NULL), - 'BasePrice' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%.2f', 'default' => NULL), - ), + 'FinalPrice' => Array ('type' => 'float', 'formatter' => 'kCombPriceFormatter', 'format' => '%.2f', 'default' => NULL), + 'BasePrice' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%.2f', 'default' => NULL), + ), + - 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 'module' => 'core', - ), - 'Fields' => Array ( - 'Combination' => Array ( 'title' => 'la_col_Combination', 'data_block' => 'grid_combination_td', 'filter_block' => 'grid_empty_filter'), + 'Grids' => Array ( + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 'module' => 'core', + ), + 'Fields' => Array ( + 'Combination' => Array ( 'title' => 'la_col_Combination', 'data_block' => 'grid_combination_td', 'filter_block' => 'grid_empty_filter'), - 'SKU' => Array ( 'filter_block' => 'grid_like_filter'), + 'SKU' => Array ( 'filter_block' => 'grid_like_filter'), - 'Availability' => Array ( 'filter_block' => 'grid_options_filter'), - 'Price' => Array ( 'data_block' => 'price_td', 'filter_block' => 'grid_range_filter'), + 'Availability' => Array ( 'filter_block' => 'grid_options_filter'), + 'Price' => Array ( 'data_block' => 'price_td', 'filter_block' => 'grid_range_filter'), -// 'Weight' => Array ( 'data_block' => 'weight_td', 'filter_block' => 'grid_range_filter'), +// 'Weight' => Array ( 'data_block' => 'weight_td', 'filter_block' => 'grid_range_filter'), - ), - ), + ), + ), - 'Inventory' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 'module' => 'core', - ), - 'Selector' => 'radio', - 'Fields' => Array ( + 'Inventory' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 'module' => 'core', + ), + 'Selector' => 'radio', + 'Fields' => Array ( - 'Combination' => Array ('title' => 'la_col_Combination', 'data_block' => 'grid_combination_td', 'filter_block' => 'grid_empty_filter'), + 'Combination' => Array ('title' => 'la_col_Combination', 'data_block' => 'grid_combination_td', 'filter_block' => 'grid_empty_filter'), - 'SKU' => Array ('filter_block' => 'grid_like_filter'), + 'SKU' => Array ('filter_block' => 'grid_like_filter'), - 'QtyInStock' => Array ('filter_block' => 'grid_range_filter'), + 'QtyInStock' => Array ('filter_block' => 'grid_range_filter'), - 'QtyReserved' => Array ('filter_block' => 'grid_range_filter'), + 'QtyReserved' => Array ('filter_block' => 'grid_range_filter'), - 'QtyBackOrdered' => Array ('filter_block' => 'grid_range_filter'), + 'QtyBackOrdered' => Array ('filter_block' => 'grid_range_filter'), - 'QtyOnOrder' => Array ('filter_block' => 'grid_range_filter'), + 'QtyOnOrder' => Array ('filter_block' => 'grid_range_filter'), - ), - ), + ), + ), - 'Radio' => Array ( - 'Selector' => 'radio', - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 'module' => 'core', - ), - 'Fields' => Array ( - 'Combination' => Array ( 'title' => 'la_col_Combination', 'data_block' => 'grid_combination_td', 'filter_block' => 'grid_empty_filter'), - 'FinalPrice' => Array ( 'title' => 'column:la_fld_Price', 'data_block' => 'grid_data_td', 'currency' => 'primary', 'filter_block' => 'grid_range_filter'), + 'Radio' => Array ( + 'Selector' => 'radio', + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 'module' => 'core', + ), + 'Fields' => Array ( + 'Combination' => Array ( 'title' => 'la_col_Combination', 'data_block' => 'grid_combination_td', 'filter_block' => 'grid_empty_filter'), + 'FinalPrice' => Array ( 'title' => 'column:la_fld_Price', 'data_block' => 'grid_data_td', 'currency' => 'primary', 'filter_block' => 'grid_range_filter'), -// 'Weight' => Array ('data_block' => 'weight_td', 'filter_block' => 'grid_range_filter'), +// 'Weight' => Array ('data_block' => 'weight_td', 'filter_block' => 'grid_range_filter'), - ), - ), - ), + ), + ), + ), - - ); \ No newline at end of file +); \ No newline at end of file Index: modules/in-commerce/units/payment_type_currencies/payment_type_currencies_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/payment_type_currencies/payment_type_currencies_config.php (revision 15601) +++ modules/in-commerce/units/payment_type_currencies/payment_type_currencies_config.php (revision ) @@ -13,52 +13,55 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'ptc', + 'Prefix' => 'ptc', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'PaymentTypeCurrenciesEventHandler','file'=>'payment_type_currencies_event_handler.php','build_event'=>'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'PaymentTypeCurrenciesEventHandler', 'file' => 'payment_type_currencies_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class'=>'PaymentTypeCurrenciesTagProcessor','file'=>'payment_type_currencies_tag_processor.php','build_event'=>'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'PaymentTypeCurrenciesTagProcessor', 'file' => 'payment_type_currencies_tag_processor.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'hooks' => Array(), + - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), - 'Hooks' => Array( + 'Hooks' => Array ( - Array( + Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '', + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '', - 'HookToEvent' => Array( 'OnPreSaveAndGoToTab', 'OnPreSaveAndGo', 'OnPreSave' ), + 'HookToEvent' => Array ( 'OnPreSaveAndGoToTab', 'OnPreSaveAndGo', 'OnPreSave' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnCreate', - ), - ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnCreate', + ), + ), + - 'IDField' => 'PaymentTypeCurrencyId', + 'IDField' => 'PaymentTypeCurrencyId', - 'TableName' => TABLE_PREFIX.'PaymentTypeCurrencies', + 'TableName' => TABLE_PREFIX.'PaymentTypeCurrencies', - 'ParentTableKey' => 'PaymentTypeId', // linked field in master table + 'ParentTableKey' => 'PaymentTypeId', // linked field in master table - 'ForeignKey' => 'PaymentTypeId', // linked field in subtable + 'ForeignKey' => 'PaymentTypeId', // linked field in subtable - 'ParentPrefix' => 'pt', + 'ParentPrefix' => 'pt', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'SubItems' => Array(), + 'SubItems' => Array (), - 'ListSQLs' => Array( ''=> 'SELECT * FROM %s'), - // key - special, value - list select sql - 'ItemSQLs' => Array( ''=> 'SELECT * FROM %s'), + 'ListSQLs' => Array ( + ''=> ' SELECT * + FROM %s' + ), - 'ListSortings' => Array(), + 'ListSortings' => Array (), - 'Fields' => Array - ( + + 'Fields' => Array ( - 'PaymentTypeCurrencyId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'PaymentTypeCurrencyId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'PaymentTypeId' => Array('type' => 'int','not_null' => 1, 'default' => 0), + 'PaymentTypeId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'CurrencyId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'CurrencyId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - ), - ); \ No newline at end of file + ), +); \ No newline at end of file Index: modules/in-bulletin/units/poll_comments/poll_comments_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-bulletin/units/poll_comments/poll_comments_config.php (revision 15601) +++ modules/in-bulletin/units/poll_comments/poll_comments_config.php (revision ) @@ -12,98 +12,98 @@ * See http://www.in-portal.org/license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( 'Prefix' => 'poll-comment', +$config = Array ( + 'Prefix' => 'poll-comment', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'PollCommentEventHandler', 'file' => 'poll_comment_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'EventHandlerClass' => Array ('class' => 'PollCommentEventHandler', 'file' => 'poll_comment_eh.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 'QueryString' => Array ( + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), + - 'IDField' => 'CommentId', - 'TableName' => TABLE_PREFIX . 'PollsComments', + 'IDField' => 'CommentId', + 'TableName' => TABLE_PREFIX . 'PollsComments', - 'ParentPrefix' => 'poll', + 'ParentPrefix' => 'poll', - 'ForeignKey' => 'PollId', + 'ForeignKey' => 'PollId', - 'ParentTableKey' => 'PollId', - 'AutoDelete' => true, - 'AutoClone' => true, + 'ParentTableKey' => 'PollId', + 'AutoDelete' => true, + 'AutoClone' => true, - 'StatusField' => Array('Status'), + 'StatusField' => Array ('Status'), - // key - special, value - list select sql - 'ListSQLs' => Array ( - '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'Users pu ON pu.PortalUserId = %1$s.CreatedById', - ), + // key - special, value - list select sql + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'Users pu ON pu.PortalUserId = %1$s.CreatedById', + ), - 'ItemSQLs' => Array ('' => 'SELECT * FROM %s'), - - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array( + '' => Array ( - 'ForcedSorting' => Array('Priority' => 'desc'), + 'ForcedSorting' => Array ('Priority' => 'desc'), - 'Sorting' => Array('CreatedOn' => 'desc'), + 'Sorting' => Array ('CreatedOn' => 'desc'), - ) - ), + ) + ), - 'Fields' => Array ( - 'CommentId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'PollId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'AnswerId' => Array ('type' => 'int', 'default' => NULL), + 'Fields' => Array ( + 'CommentId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'PollId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'AnswerId' => Array ('type' => 'int', 'default' => NULL), - 'CreatedById' => Array ('type' => 'int', 'formatter'=>'kLEFTFormatter', + 'CreatedById' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', - 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), + 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), - 'options' => Array(USER_ROOT => 'root', USER_GUEST => 'Guest'), + 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), - 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE `%s` = \'%s\'', - 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Username', - 'required' => 1, 'default' => NULL), - 'GuestName' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), + 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE `%s` = \'%s\'', + 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Username', + 'required' => 1, 'default' => NULL), + 'GuestName' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), - 'GuestEmail' => Array('type' => 'string', 'max_len' => 255, 'formatter'=>'kFormatter', 'regexp'=>'/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', 'sample_value' => 'email@domain.com', 'not_null' => '1', 'default' => '', 'error_msgs' => Array('invalid_format'=>'!la_invalid_email!', 'unique'=>'!lu_email_already_exist!'),'required' => 0 ), + 'GuestEmail' => Array ('type' => 'string', 'max_len' => 255, 'formatter' => 'kFormatter', 'regexp' => '/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', 'sample_value' => 'email@domain.com', 'not_null' => '1', 'default' => '', 'error_msgs' => Array ('invalid_format' => '!la_invalid_email!', 'unique' => '!lu_email_already_exist!'),'required' => 0 ), - 'CommentBody' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => NULL, 'required' => 1), - 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'required' => 1, 'default' => '#NOW#'), - 'UserIP' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), - 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Status' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_opt_Active', 0 => 'la_opt_Disabled', 2 => 'la_opt_Pending'), 'use_phrases' => 1, 'required' => 1, 'not_null' => 1, 'default' => 1), - ), + 'CommentBody' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => NULL, 'required' => 1), + 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'required' => 1, 'default' => '#NOW#'), + 'UserIP' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), + 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Status' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_opt_Active', 0 => 'la_opt_Disabled', 2 => 'la_opt_Pending'), 'use_phrases' => 1, 'required' => 1, 'not_null' => 1, 'default' => 1), + ), - 'VirtualFields' => Array ( + 'VirtualFields' => Array ( - 'CommentedByUser' => Array('type' => 'string', 'default' => ''), + 'CommentedByUser' => Array ('type' => 'string', 'default' => ''), - 'CommentedByEmail' => Array ('type' => 'string', 'default' => ''), - ), + 'CommentedByEmail' => Array ('type' => 'string', 'default' => ''), + ), - 'CalculatedFields' => Array ( - '' => Array ( - 'CommentedByUser' => 'IF( ISNULL(pu.Username), IF (%1$s.CreatedById = ' . USER_ROOT . ', \'root\', IF (%1$s.CreatedById = ' . USER_GUEST . ', \'Guest\', \'n/a\')), pu.Username )', - ), - ), + 'CalculatedFields' => Array ( + '' => Array ( + 'CommentedByUser' => 'IF( ISNULL(pu.Username), IF (%1$s.CreatedById = ' . USER_ROOT . ', \'root\', IF (%1$s.CreatedById = ' . USER_GUEST . ', \'Guest\', \'n/a\')), pu.Username )', + ), + ), - 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disabled.png', - 1 => 'icon16_item.png', - 2 => 'icon16_pending.png', - 'module' => 'core', - ), - 'Fields' => Array ( - 'CommentId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'CommentBody' => Array ('title' => 'column:la_fld_PollComment', 'data_block' => 'grid_priority_td', 'filter_block' => 'grid_like_filter', 'width' => 250, ), + 'Grids' => Array ( + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 0 => 'icon16_disabled.png', + 1 => 'icon16_item.png', + 2 => 'icon16_pending.png', + 'module' => 'core', + ), + 'Fields' => Array ( + 'CommentId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'CommentBody' => Array ('title' => 'column:la_fld_PollComment', 'data_block' => 'grid_priority_td', 'filter_block' => 'grid_like_filter', 'width' => 250, ), - 'CommentedByUser' => Array( 'title'=>'la_col_CommentedByUser', 'filter_block' => 'grid_like_filter', 'width' => 150, ), + 'CommentedByUser' => Array ( 'title' => 'la_col_CommentedByUser', 'filter_block' => 'grid_like_filter', 'width' => 150, ), - 'CreatedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), - 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 100, ), - ), - ), - ), + 'CreatedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), + 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 100, ), + ), + ), + ), - - ); \ No newline at end of file +); \ No newline at end of file Index: modules/in-commerce/units/affiliates/affiliates_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/affiliates/affiliates_config.php (revision 15601) +++ modules/in-commerce/units/affiliates/affiliates_config.php (revision ) @@ -13,229 +13,229 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'affil', + 'Prefix' => 'affil', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'AffiliatesEventHandler','file'=>'affiliates_event_handler.php','build_event'=>'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'AffiliatesEventHandler', 'file' => 'affiliates_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class'=>'AffiliatesTagProcessor','file'=>'affiliates_tag_processor.php','build_event'=>'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'AffiliatesTagProcessor', 'file' => 'affiliates_tag_processor.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, + - 'Hooks' => Array( + 'Hooks' => Array ( - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'u', - 'HookToSpecial' => 'register', + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'u', + 'HookToSpecial' => 'register', - 'HookToEvent' => Array('OnBeforeItemCreate', 'OnBeforeItemUpdate'), + 'HookToEvent' => Array ('OnBeforeItemCreate', 'OnBeforeItemUpdate'), - 'DoPrefix' => '', - 'DoSpecial' => 'register', - 'DoEvent' => 'OnValidateAffiliate', - ), + 'DoPrefix' => '', + 'DoSpecial' => 'register', + 'DoEvent' => 'OnValidateAffiliate', + ), - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'u', - 'HookToSpecial' => 'register', + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'u', + 'HookToSpecial' => 'register', - 'HookToEvent' => Array('OnCreate'), + 'HookToEvent' => Array ('OnCreate'), - 'DoPrefix' => '', - 'DoSpecial' => 'register', - 'DoEvent' => 'OnRegisterAffiliate', - ), + 'DoPrefix' => '', + 'DoSpecial' => 'register', + 'DoEvent' => 'OnRegisterAffiliate', + ), - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'adm', - 'HookToSpecial' => '', + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'adm', + 'HookToSpecial' => '', - 'HookToEvent' => Array('OnStartup'), + 'HookToEvent' => Array ('OnStartup'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnResetStatistics', - ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnResetStatistics', + ), - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'adm', - 'HookToSpecial' => '', + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'adm', + 'HookToSpecial' => '', - 'HookToEvent' => Array('OnStartup'), + 'HookToEvent' => Array ('OnStartup'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnStoreAffiliate', - ), - ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnStoreAffiliate', + ), + ), + - 'AggregateTags' => Array( + 'AggregateTags' => Array ( - Array( + Array ( - 'AggregateTo' => 'u', - 'AggregatedTagName' => 'IsAffiliate', - 'LocalTagName' => 'User_IsAffiliate', - ), + 'AggregateTo' => 'u', + 'AggregatedTagName' => 'IsAffiliate', + 'LocalTagName' => 'User_IsAffiliate', + ), - Array( + Array ( - 'AggregateTo' => 'u', - 'AggregatedTagName' => 'AffiliateIsActive', - 'LocalTagName' => 'User_AffiliateIsActive', - ), + 'AggregateTo' => 'u', + 'AggregatedTagName' => 'AffiliateIsActive', + 'LocalTagName' => 'User_AffiliateIsActive', + ), - Array( + Array ( - 'AggregateTo' => 'u', - 'AggregatedTagName' => 'AffiliateField', - 'LocalTagName' => 'CurrentUserAffiliateField', - ), + 'AggregateTo' => 'u', + 'AggregatedTagName' => 'AffiliateField', + 'LocalTagName' => 'CurrentUserAffiliateField', + ), - Array( + Array ( - 'AggregateTo' => 'u', - 'AggregatedTagName' => 'IsAffiliateOrRegisterAsAffiliateAllowed', - 'LocalTagName' => 'IsAffiliateOrRegisterAsAffiliateAllowed', - ), + 'AggregateTo' => 'u', + 'AggregatedTagName' => 'IsAffiliateOrRegisterAsAffiliateAllowed', + 'LocalTagName' => 'IsAffiliateOrRegisterAsAffiliateAllowed', + ), - Array( + Array ( - 'AggregateTo' => 'm', - 'AggregatedTagName' => 'RequireAffiliate', - 'LocalTagName' => 'Main_RequireAffiliate', - ), + 'AggregateTo' => 'm', + 'AggregatedTagName' => 'RequireAffiliate', + 'LocalTagName' => 'Main_RequireAffiliate', + ), - - Array( + Array ( - 'AggregateTo' => 'm', - 'AggregatedTagName' => 'AllowAffiliateRegistration', - 'LocalTagName' => 'AllowAffiliateRegistration', - ), - ), + 'AggregateTo' => 'm', + 'AggregatedTagName' => 'AllowAffiliateRegistration', + 'LocalTagName' => 'AllowAffiliateRegistration', + ), + ), - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), - 'IDField' => 'AffiliateId', + 'IDField' => 'AffiliateId', - 'StatusField' => Array('Status'), // field, that is affected by Approve/Decline events + 'StatusField' => Array ('Status'), // field, that is affected by Approve/Decline events - 'TitleField' => 'UserName', + 'TitleField' => 'UserName', - 'TitlePresets' => Array( + 'TitlePresets' => Array ( - 'default' => Array( 'new_status_labels' => Array('affil'=>'!la_title_Adding_Affiliate!'), + 'default' => Array ( + 'new_status_labels' => Array ('affil' => '!la_title_Adding_Affiliate!'), - 'edit_status_labels' => Array('affil'=>'!la_title_Editing_Affiliate!'), + 'edit_status_labels' => Array ('affil' => '!la_title_Editing_Affiliate!'), - 'new_titlefield' => Array('affil'=>'!la_title_New_Affiliate!'), + 'new_titlefield' => Array ('affil' => '!la_title_New_Affiliate!'), - ), + ), - 'affiliates_list' => Array('prefixes' => Array('affil_List'), 'format' => "!la_title_Affiliates!"), + 'affiliates_list' => Array ('prefixes' => Array ('affil_List'), 'format' => "!la_title_Affiliates!"), - 'affiliates_edit' => Array('prefixes' => Array('affil'), 'format' => "#affil_status# '#affil_titlefield#' - !la_title_General!"), + 'affiliates_edit' => Array ('prefixes' => Array ('affil'), 'format' => "#affil_status# '#affil_titlefield#' - !la_title_General!"), - 'affiliate_payments' => Array('prefixes' => Array('affil', 'apayments_List'), 'format' => "#affil_status# '#affil_titlefield#' - !la_title_Payments!"), + 'affiliate_payments' => Array ('prefixes' => Array ('affil', 'apayments_List'), 'format' => "#affil_status# '#affil_titlefield#' - !la_title_Payments!"), - 'affiliates_payout' => Array('prefixes' => Array('affil','apayments'), 'format' => "!la_title_PayOut_To! '#affil_titlefield#'"), + 'affiliates_payout' => Array ('prefixes' => Array ('affil', 'apayments'), 'format' => "!la_title_PayOut_To! '#affil_titlefield#'"), - ), + ), - 'Forms' => Array ( - 'registration' => Array ( - 'VirtualFields' => Array ( - 'TermsAccepted' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'error_msgs' => Array ('required' => '!lu_comm_MustAgreeAffiliateTermsError!'), - 'required' => 1, 'default' => NULL, - ), - ) - ), - ), + 'Forms' => Array ( + 'registration' => Array ( + 'VirtualFields' => Array ( + 'TermsAccepted' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'error_msgs' => Array ('required' => '!lu_comm_MustAgreeAffiliateTermsError!'), + 'required' => 1, 'default' => NULL, + ), + ) + ), + ), - 'EditTabPresets' => Array ( - 'Default' => Array ( - 'general' => Array ('title' => 'la_tab_General', 't' => 'in-commerce/affiliate_plans/affiliates_edit', 'priority' => 1), - 'payments' => Array ('title' => 'la_tab_Payments', 't' => 'in-commerce/affiliate_plans/affiliate_edit_payments', 'priority' => 2), - ), - ), + 'EditTabPresets' => Array ( + 'Default' => Array ( + 'general' => Array ('title' => 'la_tab_General', 't' => 'in-commerce/affiliate_plans/affiliates_edit', 'priority' => 1), + 'payments' => Array ('title' => 'la_tab_Payments', 't' => 'in-commerce/affiliate_plans/affiliate_edit_payments', 'priority' => 2), + ), + ), - 'PermSection' => Array('main' => 'in-commerce:affiliates'), + 'PermSection' => Array ('main' => 'in-commerce:affiliates'), - 'Sections' => Array( + 'Sections' => Array ( - 'in-commerce:affiliates_folder' => Array( + 'in-commerce:affiliates_folder' => Array ( - 'parent' => 'in-commerce', + 'parent' => 'in-commerce', - 'icon' => 'affiliates', + 'icon' => 'affiliates', - 'label' => 'la_tab_Affiliates', + 'label' => 'la_tab_Affiliates', - 'use_parent_header' => 1, + 'use_parent_header' => 1, - 'permissions' => Array(), + 'permissions' => Array (), - 'priority' => 5, + 'priority' => 5, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'in-commerce:affiliates' => Array( + 'in-commerce:affiliates' => Array ( - 'parent' => 'in-commerce:affiliates_folder', + 'parent' => 'in-commerce:affiliates_folder', - 'icon' => 'affiliates', + 'icon' => 'affiliates', - 'label' => 'la_tab_Affiliates', + 'label' => 'la_tab_Affiliates', - 'url' => Array('t' => 'in-commerce/affiliate_plans/affiliates_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-commerce/affiliate_plans/affiliates_list', 'pass' => 'm'), - 'permissions' => Array('view', 'add', 'edit', 'delete', 'advanced:approve', 'advanced:decline'), + 'permissions' => Array ('view', 'add', 'edit', 'delete', 'advanced:approve', 'advanced:decline'), - 'priority' => 5.1, // ., because this section replaces parent in tree + 'priority' => 5.1, // ., because this section replaces parent in tree - 'type' => stTAB, + 'type' => stTAB, - ), - ), + ), + ), - 'TableName' => TABLE_PREFIX.'Affiliates', + 'TableName' => TABLE_PREFIX.'Affiliates', - 'CalculatedFields' => Array( + 'CalculatedFields' => Array ( - '' => Array ( - 'UserId' => 'u.PortalUserId', - 'UserName' => 'IF( LENGTH(u.Username), u.Username, \'\')', - 'PlanName' => 'ap.Name', - ), - ), + '' => Array ( + 'UserId' => 'u.PortalUserId', + 'UserName' => 'IF( LENGTH(u.Username), u.Username, \'\')', + 'PlanName' => 'ap.Name', + ), + ), - 'ListSQLs' => Array( ''=>' SELECT %1$s.* %2$s + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.PortalUserId = u.PortalUserId + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.PortalUserId = u.PortalUserId - LEFT JOIN '.TABLE_PREFIX.'AffiliatePlans ap ON %1$s.AffiliatePlanId = ap.AffiliatePlanId'), + LEFT JOIN '.TABLE_PREFIX.'AffiliatePlans ap ON %1$s.AffiliatePlanId = ap.AffiliatePlanId' + ), - 'ItemSQLs' => Array( ''=>' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.PortalUserId = u.PortalUserId - LEFT JOIN '.TABLE_PREFIX.'AffiliatePlans ap ON %1$s.AffiliatePlanId = ap.AffiliatePlanId'), - 'SubItems' => Array('apayments'), + 'SubItems' => Array ('apayments'), - 'ListSortings' => Array( + 'ListSortings' => Array ( - '' => Array( + '' => Array ( - 'Sorting' => Array('CreatedOn' => 'desc', 'UserName' => 'asc'), + 'Sorting' => Array ('CreatedOn' => 'desc', 'UserName' => 'asc'), - ) - ), + ) + ), - 'Fields' => Array( + 'Fields' => Array ( - 'AffiliateId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'AffiliateId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'PortalUserId' => Array('type' => 'int', 'unique'=>Array('PortalUserId'), 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!', 'unique' => '!la_affiliate_already_exists!'), 'options' => Array(USER_ROOT => 'root', USER_GUEST => 'Guest'),'left_sql'=>'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Username', 'required' => 1, 'not_null' => 1, 'default' => 0, ), + 'PortalUserId' => Array ('type' => 'int', 'unique'=>Array ('PortalUserId'), 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!', 'unique' => '!la_affiliate_already_exists!'), 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'),'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Username', 'required' => 1, 'not_null' => 1, 'default' => 0, ), - 'AffiliatePlanId' => Array('type' => 'int', 'formatter'=>'kOptionsFormatter', 'options_sql'=>'SELECT Name, AffiliatePlanId FROM '.TABLE_PREFIX.'AffiliatePlans WHERE Enabled = 1 ORDER BY Name', 'option_key_field'=>'AffiliatePlanId', 'option_title_field'=>'Name', 'not_null' => 1, 'default' => 0), + 'AffiliatePlanId' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options_sql' => 'SELECT Name, AffiliatePlanId FROM '.TABLE_PREFIX.'AffiliatePlans WHERE Enabled = 1 ORDER BY Name', 'option_key_field' => 'AffiliatePlanId', 'option_title_field' => 'Name', 'not_null' => 1, 'default' => 0), - 'AccumulatedAmount' => Array('type' => 'double', 'formatter'=>'kFormatter', 'format'=>'%.02f', 'not_null' => '1','default' => '0.00'), + 'AccumulatedAmount' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%.02f', 'not_null' => '1', 'default' => '0.00'), - 'AmountToPay' => Array('type' => 'double', 'formatter'=>'kFormatter', 'format'=>'%.02f', 'not_null' => '1','default' => '0.00'), + 'AmountToPay' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%.02f', 'not_null' => '1', 'default' => '0.00'), - 'LastPaymentDate' => Array('type' => 'int', 'formatter'=>'kDateFormatter', 'default' => NULL), + 'LastPaymentDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), - 'LastOrderDate' => Array('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), + 'LastOrderDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), - 'Status' => Array('type' => 'int', 'formatter'=>'kOptionsFormatter', 'options'=>Array(1=>'la_Active', 2=>'la_Pending', 0=>'la_Disabled'), 'use_phrases'=>1, 'not_null' => '1','default' => STATUS_PENDING), + 'Status' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options'=>Array (1=>'la_Active', 2=>'la_Pending', 0=>'la_Disabled'), 'use_phrases'=>1, 'not_null' => '1', 'default' => STATUS_PENDING), - 'AffiliateCode' => Array('type' => 'string', 'not_null' => '1', 'default' => ''), + 'AffiliateCode' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), - 'ItemsSold' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ItemsSold' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'PaymentTypeId' => Array('type' => 'int', 'formatter'=>'kOptionsFormatter', 'options' => Array(0 => ''), 'options_sql'=>'SELECT Name, PaymentTypeId FROM '.TABLE_PREFIX.'AffiliatePaymentTypes WHERE Status = 1 ORDER BY IsPrimary DESC, Priority DESC, Name ASC', 'option_key_field'=>'PaymentTypeId', 'option_title_field'=>'Name', 'not_null' => 1, 'default' => 0), + 'PaymentTypeId' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => ''), 'options_sql' => 'SELECT Name, PaymentTypeId FROM '.TABLE_PREFIX.'AffiliatePaymentTypes WHERE Status = 1 ORDER BY IsPrimary DESC, Priority DESC, Name ASC', 'option_key_field' => 'PaymentTypeId', 'option_title_field' => 'Name', 'not_null' => 1, 'default' => 0), - 'SSN' => Array('type' => 'string','not_null' => '1','default' => '', 'required' => 1), + 'SSN' => Array ('type' => 'string', 'not_null' => '1', 'default' => '', 'required' => 1), - 'Comments' => Array('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => NULL), + 'Comments' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => NULL), - 'CreatedOn' => Array('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - ), + ), - 'VirtualFields' => Array( + 'VirtualFields' => Array ( - 'UserName' => Array('type'=>'string', 'default' => ''), + 'UserName' => Array ('type' => 'string', 'default' => ''), - 'PlanName' => Array('type'=>'string', 'default' => ''), + 'PlanName' => Array ('type' => 'string', 'default' => ''), - 'UserId' => Array('type'=>'int', 'default' => 0), + 'UserId' => Array ('type' => 'int', 'default' => 0), - ), + ), - 'Grids' => Array( + 'Grids' => Array ( - 'Default' => Array( + 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disabled.png', - 1 => 'icon16_item.png', - 2 => 'icon16_pending.png', - 'module' => 'core', - ), + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 0 => 'icon16_disabled.png', + 1 => 'icon16_item.png', + 2 => 'icon16_pending.png', + 'module' => 'core', + ), - 'Fields' => Array( + 'Fields' => Array ( - 'AffiliateId' => Array( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'AffiliateId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'UserName' => Array( 'data_block' => 'grid_userlink_td', 'filter_block' => 'grid_like_filter'), + 'UserName' => Array ( 'data_block' => 'grid_userlink_td', 'filter_block' => 'grid_like_filter'), - 'PlanName' => Array( 'title'=>'la_col_PlanName', 'filter_block' => 'grid_like_filter'), + 'PlanName' => Array ( 'title' => 'la_col_PlanName', 'filter_block' => 'grid_like_filter'), - 'PaymentTypeId' => Array( 'title' => 'column:la_fld_PaymentType', 'filter_block' => 'grid_options_filter', 'width' => 120, ), + 'PaymentTypeId' => Array ( 'title' => 'column:la_fld_PaymentType', 'filter_block' => 'grid_options_filter', 'width' => 120, ), - 'CreatedOn' => Array( 'title' => 'column:la_fld_RegisteredOn', 'format' => '_regional_DateFormat', 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), + 'CreatedOn' => Array ( 'title' => 'column:la_fld_RegisteredOn', 'format' => '_regional_DateFormat', 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), - 'Status' => Array( 'filter_block' => 'grid_options_filter', 'width' => 100, ), + 'Status' => Array ( 'filter_block' => 'grid_options_filter', 'width' => 100, ), - ), - ), + ), + ), - - ), - ); \ No newline at end of file + ), +); \ No newline at end of file Index: modules/in-commerce/units/helpers/helpers_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/helpers/helpers_config.php (revision 15601) +++ modules/in-commerce/units/helpers/helpers_config.php (revision ) @@ -2,17 +2,16 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - - 'Prefix' => 'in-commerce-helpers', + 'Prefix' => 'in-commerce-helpers', - 'EventHandlerClass' => Array ('class' => 'kEventHandler', 'file' => '', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'kEventHandler', 'file' => '', 'build_event' => 'OnBuild'), - 'RegisterClasses' => Array ( - Array ('pseudo' => 'OrderHelper', 'class' => 'OrderHelper', 'file' => 'order_helper.php', 'build_event' => ''), - Array ('pseudo' => 'CurrencyRates', 'class' => 'CurrencyRates', 'file' => 'currency_rates.php', 'build_event' => ''), - Array ('pseudo' => 'BankLVCurrencyRates', 'class' => 'BankLVCurrencyRates', 'file' => 'bank_lv_currency_rates.php', 'build_event' => ''), - Array ('pseudo' => 'ECBCurrencyRates', 'class' => 'ECBCurrencyRates', 'file' => 'ecb_currency_rates.php', 'build_event' => ''), - Array ('pseudo' => 'FRNYCurrencyRates', 'class' => 'FRNYCurrencyRates', 'file' => 'frny_currency_rates.php', 'build_event' => ''), - ), - ); + 'RegisterClasses' => Array ( + Array ('pseudo' => 'OrderHelper', 'class' => 'OrderHelper', 'file' => 'order_helper.php', 'build_event' => ''), + Array ('pseudo' => 'CurrencyRates', 'class' => 'CurrencyRates', 'file' => 'currency_rates.php', 'build_event' => ''), + Array ('pseudo' => 'BankLVCurrencyRates', 'class' => 'BankLVCurrencyRates', 'file' => 'bank_lv_currency_rates.php', 'build_event' => ''), + Array ('pseudo' => 'ECBCurrencyRates', 'class' => 'ECBCurrencyRates', 'file' => 'ecb_currency_rates.php', 'build_event' => ''), + Array ('pseudo' => 'FRNYCurrencyRates', 'class' => 'FRNYCurrencyRates', 'file' => 'frny_currency_rates.php', 'build_event' => ''), + ), +); \ No newline at end of file Index: modules/in-bulletin/units/polls/polls_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-bulletin/units/polls/polls_config.php (revision 15601) +++ modules/in-bulletin/units/polls/polls_config.php (revision ) @@ -12,181 +12,161 @@ * See http://www.in-portal.org/license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'poll', + 'Prefix' => 'poll', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'PollEventHandler', 'file' => 'poll_eh.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'PollEventHandler', 'file' => 'poll_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'PollTagProcessor', 'file' => 'poll_tp.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'PollTagProcessor', 'file' => 'poll_tp.php', 'build_event' => 'OnBuild'), - 'AutoLoad' => true, + 'AutoLoad' => true, - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), - 'IDField' => 'PollId', + 'IDField' => 'PollId', - 'TitleField' => 'Name', + 'TitleField' => 'Name', - 'StatusField' => Array ('Status'), + 'StatusField' => Array ('Status'), - - 'TitlePresets' => Array ( + 'TitlePresets' => Array ( - 'default' => Array ( + 'default' => Array ( - 'new_status_labels' => Array ('poll' => '!la_title_Adding_Poll!'), + 'new_status_labels' => Array ('poll' => '!la_title_Adding_Poll!'), - 'edit_status_labels' => Array ('poll' => '!la_title_Editing_Poll!'), + 'edit_status_labels' => Array ('poll' => '!la_title_Editing_Poll!'), - 'new_titlefield' => Array ('poll' => '!la_title_NewPoll!'), + 'new_titlefield' => Array ('poll' => '!la_title_NewPoll!'), - ), + ), - 'poll_list' => Array ('prefixes' => Array ('poll_List'), 'format' => "!la_title_Polls!", ), - 'poll_edit' => Array ('prefixes' => Array ('poll'), 'format' => "#poll_status# '#poll_titlefield#' - !la_title_General!", ), - 'poll_edit_answers' => Array ('prefixes' => Array ('poll', 'poll-answer_List'), 'format' => "#poll_status# '#poll_titlefield#' - !la_title_PollAnswers!"), + 'poll_list' => Array ('prefixes' => Array ('poll_List'), 'format' => "!la_title_Polls!", ), + 'poll_edit' => Array ('prefixes' => Array ('poll'), 'format' => "#poll_status# '#poll_titlefield#' - !la_title_General!", ), + 'poll_edit_answers' => Array ('prefixes' => Array ('poll', 'poll-answer_List'), 'format' => "#poll_status# '#poll_titlefield#' - !la_title_PollAnswers!"), - 'poll_edit_comments' => Array ('prefixes' => Array ('poll', 'poll-comment_List'), 'format' => "#poll_status# '#poll_titlefield#' - !la_title_PollComments!"), + 'poll_edit_comments' => Array ('prefixes' => Array ('poll', 'poll-comment_List'), 'format' => "#poll_status# '#poll_titlefield#' - !la_title_PollComments!"), - - 'answer_edit' => Array ( - 'prefixes' => Array ('poll', 'poll-answer'), - 'new_status_labels' => Array ('poll-answer' => '!la_title_Adding_Answer!'), - 'edit_status_labels' => Array ('poll-answer' => '!la_title_Editing_Answer!'), - 'new_titlefield' => Array ('poll-answer' => '!la_title_New_Answer!'), - 'format' => "#poll_status# '#poll_titlefield#' - #poll-answer_status# '#poll-answer_titlefield#'" - ), + 'answer_edit' => Array ( + 'prefixes' => Array ('poll', 'poll-answer'), + 'new_status_labels' => Array ('poll-answer' => '!la_title_Adding_Answer!'), + 'edit_status_labels' => Array ('poll-answer' => '!la_title_Editing_Answer!'), + 'new_titlefield' => Array ('poll-answer' => '!la_title_New_Answer!'), + 'format' => "#poll_status# '#poll_titlefield#' - #poll-answer_status# '#poll-answer_titlefield#'" + ), - 'comment_edit' => Array ( - 'prefixes' => Array ('poll', 'poll-comment'), - 'new_status_labels' => Array ('poll-comment' => '!la_title_Adding_Comment!'), - 'edit_status_labels' => Array ('poll-comment' => '!la_title_Editing_Comment!'), - 'new_titlefield' => Array ('poll-comment' => '!la_title_NewComment!'), - 'format' => "#poll_status# '#poll_titlefield#' - #poll-comment_status#", - ), + 'comment_edit' => Array ( + 'prefixes' => Array ('poll', 'poll-comment'), + 'new_status_labels' => Array ('poll-comment' => '!la_title_Adding_Comment!'), + 'edit_status_labels' => Array ('poll-comment' => '!la_title_Editing_Comment!'), + 'new_titlefield' => Array ('poll-comment' => '!la_title_NewComment!'), + 'format' => "#poll_status# '#poll_titlefield#' - #poll-comment_status#", + ), - - ), + ), - 'PermSection' => Array ('main' => 'in-bulletin:polls'), + 'PermSection' => Array ('main' => 'in-bulletin:polls'), - 'Sections' => Array ( - 'in-bulletin:polls' => Array ( + 'Sections' => Array ( + 'in-bulletin:polls' => Array ( - 'parent' => 'in-portal:site', + 'parent' => 'in-portal:site', - 'icon' => 'polls', + 'icon' => 'polls', - 'label' => 'la_title_Polls', + 'label' => 'la_title_Polls', - 'url' => Array ('t' => 'in-bulletin/polls/poll_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-bulletin/polls/poll_list', 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit', 'delete'), + 'permissions' => Array ('view', 'add', 'edit', 'delete'), - 'priority' => 3.6, + 'priority' => 3.6, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - 'TableName' => TABLE_PREFIX.'Polls', + 'TableName' => TABLE_PREFIX.'Polls', - 'ListSQLs' => Array ('' => 'SELECT %1$s.* %2$s + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s - FROM %1$s', + FROM %1$s', - - ), + ), - 'ItemSQLs' => Array ('' => 'SELECT %1$s.* %2$s - FROM %1$s', - - ), - - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( + '' => Array ( - 'Sorting' => Array ('PollId' => 'asc'), - ) - ), + 'Sorting' => Array ('PollId' => 'asc'), + ) + ), - 'Fields' => Array ( + 'Fields' => Array ( - 'PollId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'PollId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'Name' => Array ('type' => 'string', 'not_null' => '1', 'default' => '', 'required' => 1, 'max_len' => 255), + 'Name' => Array ('type' => 'string', 'not_null' => '1', 'default' => '', 'required' => 1, 'max_len' => 255), - 'Question' => Array ( + 'Question' => Array ( - 'type' => 'string', - 'formatter' => 'kMultiLanguage', 'using_fck' => 1, - 'default' => null, 'required' => 1, - ), + 'type' => 'string', + 'formatter' => 'kMultiLanguage', 'using_fck' => 1, + 'default' => null, 'required' => 1, + ), - 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'required' => 1, 'default' => '#NOW#'), + 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'required' => 1, 'default' => '#NOW#'), - 'StartDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'required' => 1, 'default' => '#NOW#'), + 'StartDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'required' => 1, 'default' => '#NOW#'), - 'EndDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null), + 'EndDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null), - 'Image' => Array ( - 'type' => 'string', - 'formatter' => 'kPictureFormatter', - 'max_size' => MAX_UPLOAD_SIZE, 'upload_dir' => IMAGES_PATH . 'polls/', - 'file_types' => '*.jpg;*.gif;*.png', 'files_description' => '!la_hint_ImageFiles!', - 'multiple' => false, 'thumb_format' => 'resize:200x200', - 'max_len' => 255, 'not_null' => 1, 'default' => '' - ), + 'Image' => Array ( + 'type' => 'string', + 'formatter' => 'kPictureFormatter', + 'max_size' => MAX_UPLOAD_SIZE, 'upload_dir' => IMAGES_PATH . 'polls/', + 'file_types' => '*.jpg;*.gif;*.png', 'files_description' => '!la_hint_ImageFiles!', + 'multiple' => false, 'thumb_format' => 'resize:200x200', + 'max_len' => 255, 'not_null' => 1, 'default' => '' + ), - 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'RequireLogin' => Array ( + 'RequireLogin' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, - 'default' => 0, 'not_null' => 1, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, + 'default' => 0, 'not_null' => 1, + ), - 'AllowComments' => Array ( + 'AllowComments' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, - 'default' => 1, 'not_null' => 1, - ), - 'AllowMultipleVotings' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, - 'default' => 1, 'not_null' => 1, - ), - 'CachedVotesQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, + 'default' => 1, 'not_null' => 1, + ), + 'AllowMultipleVotings' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, + 'default' => 1, 'not_null' => 1, + ), + 'CachedVotesQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Status' => Array ( + 'Status' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_opt_Disabled', 1 => 'la_opt_Active',), 'use_phrases' => 1, - 'required' => 1, 'default' => 1, 'not_null' => 1, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_opt_Disabled', 1 => 'la_opt_Active',), 'use_phrases' => 1, + 'required' => 1, 'default' => 1, 'not_null' => 1, + ), - - ), + ), - 'SubItems' => Array ('poll-answer', 'poll-comment'), + 'SubItems' => Array ('poll-answer', 'poll-comment'), - 'VirtualFields' => Array ( -// 'PollId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - ), - - 'CalculatedFields' => Array ( - '' => Array ( -// 'DaysLeft' => 'IF( ISNULL(%1$s.EndDate), IF (%1$s.CreatedById = ' . USER_ROOT . ', \'root\', IF (%1$s.CreatedById = ' . USER_GUEST . ', %1$s.PosterAlias, \'n/a\')), \'Never\' )', - ), - ), - - 'EditTabPresets' => Array ( - 'Default' => Array ( - Array ('title' => 'la_tab_General', 't' => 'in-bulletin/polls/poll_edit', 'priority' => 1), - Array ('title' => 'la_tab_PollAnswers', 't' => 'in-bulletin/polls/poll_edit_answers', 'priority' => 2), - Array ('title' => 'la_tab_PollUserComments', 't' => 'in-bulletin/polls/poll_edit_comments', 'priority' => 3), - ), - ), + 'EditTabPresets' => Array ( + 'Default' => Array ( + Array ('title' => 'la_tab_General', 't' => 'in-bulletin/polls/poll_edit', 'priority' => 1), + Array ('title' => 'la_tab_PollAnswers', 't' => 'in-bulletin/polls/poll_edit_answers', 'priority' => 2), + Array ('title' => 'la_tab_PollUserComments', 't' => 'in-bulletin/polls/poll_edit_comments', 'priority' => 3), + ), + ), - 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disabled.png', - 1 => 'icon16_item.png', - 2 => 'icon16_pending.png', - 'module' => 'core', - ), - 'Fields' => Array ( - 'PollId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'Name' => Array ('data_block' => 'grid_priority_td', 'filter_block' => 'grid_like_filter', 'width' => 200, ), - 'StartDate' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), - 'EndDate' => Array ('data_block' => 'poll_expire_td', 'filter_block' => 'grid_date_range_filter', 'width' => 145, ), - 'CachedVotesQty' => Array ('title' => 'la_col_VoteCount', 'filter_block' => 'grid_like_filter', 'width' => 100, ), - 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 100, ), + 'Grids' => Array ( + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 0 => 'icon16_disabled.png', + 1 => 'icon16_item.png', + 2 => 'icon16_pending.png', + 'module' => 'core', + ), + 'Fields' => Array ( + 'PollId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'Name' => Array ('data_block' => 'grid_priority_td', 'filter_block' => 'grid_like_filter', 'width' => 200, ), + 'StartDate' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), + 'EndDate' => Array ('data_block' => 'poll_expire_td', 'filter_block' => 'grid_date_range_filter', 'width' => 145, ), + 'CachedVotesQty' => Array ('title' => 'la_col_VoteCount', 'filter_block' => 'grid_like_filter', 'width' => 100, ), + 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 100, ), -// 'DaysActive' => Array ('title' => 'la_col_NumberOfDaysActive', 'filter_block' => 'grid_range_filter',), +// 'DaysActive' => Array ('title' => 'la_col_NumberOfDaysActive', 'filter_block' => 'grid_range_filter',), - ), - ), - ), + ), + ), + ), - - ); \ No newline at end of file +); \ No newline at end of file Index: modules/in-commerce/units/zones/zones_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/zones/zones_config.php (revision 15601) +++ modules/in-commerce/units/zones/zones_config.php (revision ) @@ -13,87 +13,93 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'z', + 'Prefix' => 'z', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'ZonesEventHandler', 'file' => 'zones_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'ZonesEventHandler', 'file' => 'zones_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'ZonesTagProcessor', 'file' => 'zones_tag_processor.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'ZonesTagProcessor', 'file' => 'zones_tag_processor.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'hooks' => Array (), + - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), + - 'IDField' => 'ZoneID', + 'IDField' => 'ZoneID', - 'TitleField' => 'Name', + 'TitleField' => 'Name', + - 'TitlePresets' => Array ( + 'TitlePresets' => Array ( - 'default' => Array ( - 'new_status_labels' => Array ('z' => '!la_title_AddingShippingZone!'), - 'edit_status_labels' => Array ('z' => '!la_title_EditingShippingZone!'), - ), + 'default' => Array ( + 'new_status_labels' => Array ('z' => '!la_title_AddingShippingZone!'), + 'edit_status_labels' => Array ('z' => '!la_title_EditingShippingZone!'), + ), - 'zones_edit' => Array ( 'prefixes' => Array ('z'), 'format' => "#z_status# - '#z_titlefield#'"), + 'zones_edit' => Array ( 'prefixes' => Array ('z'), 'format' => "#z_status# - '#z_titlefield#'"), - ), + ), + - 'TableName' => TABLE_PREFIX . 'ShippingZones', + 'TableName' => TABLE_PREFIX . 'ShippingZones', - 'ForeignKey' => 'ShippingTypeID', //Name of the field in this table used as ForeignKey + 'ForeignKey' => 'ShippingTypeID', //Name of the field in this table used as ForeignKey - 'ParentTableKey' => 'ShippingID', //Name of the field in parent table linked with ForeignKey + 'ParentTableKey' => 'ShippingID', //Name of the field in parent table linked with ForeignKey - 'ParentPrefix' => 's', //Prefix of parent item + 'ParentPrefix' => 's', //Prefix of parent item - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - 'SubItems' => Array ('dst', 'sc'), + 'SubItems' => Array ('dst', 'sc'), - 'ListSQLs' => Array ( '' => 'SELECT * FROM %s'), - // key - special, value - list select sql - 'ItemSQLs' => Array ( '' => 'SELECT * FROM %s'), + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s' + ), - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( - 'Sorting' => Array ('Name' => 'asc'), - ) - ), + '' => Array ( + 'Sorting' => Array ('Name' => 'asc'), + ) + ), + - 'Fields' => Array ( - 'ZoneID' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), - 'ShippingTypeID' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), - 'Name' => Array ( - 'type' => 'string', 'max_len' => 100, - 'required' => 1, 'default' => '', 'not_null' => 1, - 'error_msgs' => Array ('required' => 'Please fill in'), - ), - 'Type' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, - 'options' => Array ( - 1 => 'la_ByCountry', - 2 => 'la_ByState', - 3 => 'la_ByZIP' - ), - 'not_null' => 1, 'default' => 1, - ), - 'CODallowed' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_NotAllowed', 1 => 'la_Allowed',), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 1, - ), - ), + 'Fields' => Array ( + 'ZoneID' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), + 'ShippingTypeID' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), + 'Name' => Array ( + 'type' => 'string', 'max_len' => 100, + 'required' => 1, 'default' => '', 'not_null' => 1, + 'error_msgs' => Array ('required' => 'Please fill in'), + ), + 'Type' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, + 'options' => Array ( + 1 => 'la_ByCountry', + 2 => 'la_ByState', + 3 => 'la_ByZIP' + ), + 'not_null' => 1, 'default' => 1, + ), + 'CODallowed' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_NotAllowed', 1 => 'la_Allowed',), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 1, + ), + ), - 'Grids' => Array ( + 'Grids' => Array ( - 'Default' => Array ( + 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disabled.png', - 1 => 'icon16_item.png', - 'module' => 'core', - ), - 'Fields' => Array ( - 'ZoneID' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 50, ), - 'Name' => Array ( 'title' => 'column:la_fld_ShipZoneName', 'filter_block' => 'grid_like_filter', 'width' => 250, ), - 'Type' => Array ( 'filter_block' => 'grid_options_filter', 'width' => 100, ), - 'CODallowed' => Array ( 'filter_block' => 'grid_options_filter', 'width' => 120, ) - ), - ), - ), - ); \ No newline at end of file + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 0 => 'icon16_disabled.png', + 1 => 'icon16_item.png', + 'module' => 'core', + ), + 'Fields' => Array ( + 'ZoneID' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 50, ), + 'Name' => Array ( 'title' => 'column:la_fld_ShipZoneName', 'filter_block' => 'grid_like_filter', 'width' => 250, ), + 'Type' => Array ( 'filter_block' => 'grid_options_filter', 'width' => 100, ), + 'CODallowed' => Array ( 'filter_block' => 'grid_options_filter', 'width' => 120, ) + ), + ), + ), +); \ No newline at end of file Index: modules/in-commerce/units/shipping_quote_engines/shipping_quote_engines_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/shipping_quote_engines/shipping_quote_engines_config.php (revision 15601) +++ modules/in-commerce/units/shipping_quote_engines/shipping_quote_engines_config.php (revision ) @@ -11,208 +11,213 @@ * See http://www.in-portal.org/commercial-license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'sqe', + 'Prefix' => 'sqe', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'ShippingQuoteEngineEventHandler', 'file' => 'shipping_quote_engine_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'ShippingQuoteEngineEventHandler', 'file' => 'shipping_quote_engine_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + - 'RegisterClasses' => Array ( + 'RegisterClasses' => Array ( - Array ('pseudo' => 'ShippingQuoteEngine', 'class' => 'ShippingQuoteEngine', 'file' => 'shipping_quote_engine.php', 'build_event' => ''), - Array ('pseudo' => 'CustomShippingQuoteEngine', 'class' => 'CustomShippingQuoteEngine', 'file' => 'custom_shipping_quote_engine.php', 'build_event' => ''), - Array ('pseudo' => 'Intershipper', 'class' => 'Intershipper', 'file' => 'intershipper.php', 'build_event' => ''), - Array ('pseudo' => 'USPS', 'class' => 'USPS', 'file' => 'usps.php', 'build_event' => ''), - Array ('pseudo' => 'ShippingQuoteCollector', 'class' => 'ShippingQuoteCollector', 'file' => 'shipping_quote_collector.php', 'build_event' => ''), - ), + Array ('pseudo' => 'ShippingQuoteEngine', 'class' => 'ShippingQuoteEngine', 'file' => 'shipping_quote_engine.php', 'build_event' => ''), + Array ('pseudo' => 'CustomShippingQuoteEngine', 'class' => 'CustomShippingQuoteEngine', 'file' => 'custom_shipping_quote_engine.php', 'build_event' => ''), + Array ('pseudo' => 'Intershipper', 'class' => 'Intershipper', 'file' => 'intershipper.php', 'build_event' => ''), + Array ('pseudo' => 'USPS', 'class' => 'USPS', 'file' => 'usps.php', 'build_event' => ''), + Array ('pseudo' => 'ShippingQuoteCollector', 'class' => 'ShippingQuoteCollector', 'file' => 'shipping_quote_collector.php', 'build_event' => ''), + ), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'Hooks' => Array ( - ), + - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), + - 'IDField' => 'EngineId', + 'IDField' => 'EngineId', - 'StatusField' => Array ('Status'), + 'StatusField' => Array ('Status'), - 'TitleField' => 'Name', + 'TitleField' => 'Name', - 'TitlePresets' => Array ( + 'TitlePresets' => Array ( - 'default' => Array ( 'edit_status_labels' => Array ('sqe' => '!la_title_EditingShippingQuoteEngine!'), + 'default' => Array ( + 'edit_status_labels' => Array ('sqe' => '!la_title_EditingShippingQuoteEngine!'), - ), + ), - 'engine_list' =>Array ( 'prefixes' => Array ('sqe_List'), - 'format' => "!la_title_ShippingQuoteEngines!", + 'engine_list' =>Array ( + 'prefixes' => Array ('sqe_List'), 'format' => "!la_title_ShippingQuoteEngines!", - ), + ), - 'engine_edit' =>Array ( 'prefixes' => Array ('sqe'), - 'format' => "#sqe_status# '#sqe_titlefield#' - !la_title_General!", + 'engine_edit' =>Array ( + 'prefixes' => Array ('sqe'), 'format' => "#sqe_status# '#sqe_titlefield#' - !la_title_General!", - ), - ), + ), + ), - 'PermSection' => Array ('main' => 'in-commerce:shipping_quote_engines'), + 'PermSection' => Array ('main' => 'in-commerce:shipping_quote_engines'), - 'Sections' => Array ( + 'Sections' => Array ( - 'in-commerce:shipping_quote_engines' => Array ( + 'in-commerce:shipping_quote_engines' => Array ( - 'parent' => 'in-commerce:shipping_folder', + 'parent' => 'in-commerce:shipping_folder', - 'icon' => 'conf_shipping', + 'icon' => 'conf_shipping', - 'label' => 'la_tab_ShippingQuoteEngines', + 'label' => 'la_tab_ShippingQuoteEngines', - 'url' => Array ('t' => 'in-commerce/shipping/shipping_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-commerce/shipping/shipping_list', 'pass' => 'm'), - 'permissions' => Array ('view', 'edit', 'advanced:approve', 'advanced:decline'), + 'permissions' => Array ('view', 'edit', 'advanced:approve', 'advanced:decline'), - 'priority' => 4.2, + 'priority' => 4.2, - 'type' => stTAB, + 'type' => stTAB, - ), - ), + ), + ), - 'TableName' => TABLE_PREFIX.'ShippingQuoteEngines', + 'TableName' => TABLE_PREFIX.'ShippingQuoteEngines', - 'ListSQLs' => Array ( '' => 'SELECT * FROM %s'), - // key - special, value - list select sql - 'ItemSQLs' => Array ( '' => 'SELECT * FROM %s'), + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s' + ), - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( - 'Sorting' => Array ('Name' => 'asc'), - ) - ), + '' => Array ( + 'Sorting' => Array ('Name' => 'asc'), + ) + ), - 'Fields' => Array ( - 'EngineId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Name' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'FlatSurcharge' => Array ('type' => 'double', 'not_null' => 1, 'default' => '0'), - 'PercentSurcharge' => Array ('type' => 'double', 'not_null' => 1, 'default' => '0'), - 'Status' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Enabled', 0 => 'la_Disabled'), 'use_phrases' => 1, - 'error_msgs' => Array ( - 'curl_not_present' => '!la_error_EnableCurlFirst!', - 'from_info_not_filled_in' => '!la_error_FillInShippingFromAddress!', - ), - 'default' => 0, 'not_null' => 1, - ), - 'Properties' => Array ('type' => 'string', 'default' => NULL), - 'ClassName' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - ), + 'Fields' => Array ( + 'EngineId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Name' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'FlatSurcharge' => Array ('type' => 'double', 'not_null' => 1, 'default' => '0'), + 'PercentSurcharge' => Array ('type' => 'double', 'not_null' => 1, 'default' => '0'), + 'Status' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Enabled', 0 => 'la_Disabled'), 'use_phrases' => 1, + 'error_msgs' => Array ( + 'curl_not_present' => '!la_error_EnableCurlFirst!', + 'from_info_not_filled_in' => '!la_error_FillInShippingFromAddress!', + ), + 'default' => 0, 'not_null' => 1, + ), + 'Properties' => Array ('type' => 'string', 'default' => NULL), + 'ClassName' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + ), - 'VirtualFields' => Array ( + 'VirtualFields' => Array ( - 'AccountLogin' => Array ('type' => 'string', 'default' => ''), + 'AccountLogin' => Array ('type' => 'string', 'default' => ''), - 'AccountPassword' => Array ('type' => 'string', 'default' => ''), + 'AccountPassword' => Array ('type' => 'string', 'default' => ''), - 'UPSEnabled' => Array ( + 'UPSEnabled' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'Enabled', 0 => 'Disabled'), - 'default' => 0 - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'Enabled', 0 => 'Disabled'), + 'default' => 0 + ), - 'UPSAccount' => Array ('type' => 'string', 'default' => ''), + 'UPSAccount' => Array ('type' => 'string', 'default' => ''), - 'UPSInvoiced' => Array ( + 'UPSInvoiced' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'Invoiced', 0 => 'NotInvoiced'), - 'default' => 0 - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'Invoiced', 0 => 'NotInvoiced'), + 'default' => 0 + ), - 'FDXEnabled' => Array ( + 'FDXEnabled' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'Enabled', 0 => 'Disabled'), - 'default' => 0 - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'Enabled', 0 => 'Disabled'), + 'default' => 0 + ), - 'FDXAccount' => Array ('type' => 'string', 'default' => ''), + 'FDXAccount' => Array ('type' => 'string', 'default' => ''), - 'FDXInvoiced' => Array ( + 'FDXInvoiced' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'Invoiced', 0 => 'NotInvoiced'), - 'default' => 0 - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'Invoiced', 0 => 'NotInvoiced'), + 'default' => 0 + ), - 'DHLEnabled' => Array ( + 'DHLEnabled' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'Enabled', 0 => 'Disabled'), - 'default' => 0 - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'Enabled', 0 => 'Disabled'), + 'default' => 0 + ), - 'DHLAccount' => Array ('type' => 'string', 'default' => ''), + 'DHLAccount' => Array ('type' => 'string', 'default' => ''), - 'DHLInvoiced' => Array ( + 'DHLInvoiced' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'Invoiced', 0 => 'NotInvoiced'), - 'default' => 0 - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'Invoiced', 0 => 'NotInvoiced'), + 'default' => 0 + ), - 'USPEnabled' => Array ( + 'USPEnabled' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'Enabled', 0 => 'Disabled'), - 'default' => 0 - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'Enabled', 0 => 'Disabled'), + 'default' => 0 + ), - 'USPAccount' => Array ('type' => 'string', 'default' => ''), + 'USPAccount' => Array ('type' => 'string', 'default' => ''), - 'USPInvoiced' => Array ( + 'USPInvoiced' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'Invoiced', 0 => 'NotInvoiced'), - 'default' => 0 - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'Invoiced', 0 => 'NotInvoiced'), + 'default' => 0 + ), - 'ARBEnabled' => Array ( + 'ARBEnabled' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'Enabled', 0 => 'Disabled'), - 'default' => 0 - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'Enabled', 0 => 'Disabled'), + 'default' => 0 + ), - 'ARBAccount' => Array ('type' => 'string', 'default' => ''), + 'ARBAccount' => Array ('type' => 'string', 'default' => ''), - 'ARBInvoiced' => Array ( + 'ARBInvoiced' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'Invoiced', 0 => 'NotInvoiced'), - 'default' => 0 - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'Invoiced', 0 => 'NotInvoiced'), + 'default' => 0 + ), - '1DYEnabled' => Array ( + '1DYEnabled' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'Enabled', 0 => 'Disabled'), - 'default' => 0 - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'Enabled', 0 => 'Disabled'), + 'default' => 0 + ), - '2DYEnabled' => Array ( + '2DYEnabled' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'Enabled', 0 => 'Disabled'), - 'default' => 0 - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'Enabled', 0 => 'Disabled'), + 'default' => 0 + ), - '3DYEnabled' => Array ( + '3DYEnabled' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'Enabled', 0 => 'Disabled'), - 'default' => 0 - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'Enabled', 0 => 'Disabled'), + 'default' => 0 + ), - 'GNDEnabled' => Array ( + 'GNDEnabled' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'Enabled', 0 => 'Disabled'), - 'default' => 0 - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'Enabled', 0 => 'Disabled'), + 'default' => 0 + ), - 'ShipMethod' => Array ( + 'ShipMethod' => Array ( - 'type' => 'string', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( - 'DRP' => 'Drop-Off At Carrier Location', - 'PCK' => 'Schedule A Special Pickup', - 'SCD' => 'Regularly Scheduled Pickup'), - 'default' => null - ), - ), + 'type' => 'string', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( + 'DRP' => 'Drop-Off At Carrier Location', + 'PCK' => 'Schedule A Special Pickup', + 'SCD' => 'Regularly Scheduled Pickup'), + 'default' => null + ), + ), + - 'Grids' => Array ( + 'Grids' => Array ( - 'Default' => Array ( + 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disabled.png', - 1 => 'icon16_item.png', - 'module' => 'core', - ), - 'Fields' => Array ( - 'EngineId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 50, ), - 'Name' => Array ( 'title' => 'column:la_fld_ShippingQuoteEngineName', 'filter_block' => 'grid_like_filter', 'width' => 250, ), - 'FlatSurcharge' => Array ( 'filter_block' => 'grid_range_filter', 'width' => 150, ), - 'PercentSurcharge' => Array ( 'filter_block' => 'grid_range_filter', 'width' => 150, ), - 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 150, ), - ), - ), - ), - ); \ No newline at end of file + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 0 => 'icon16_disabled.png', + 1 => 'icon16_item.png', + 'module' => 'core', + ), + 'Fields' => Array ( + 'EngineId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 50, ), + 'Name' => Array ( 'title' => 'column:la_fld_ShippingQuoteEngineName', 'filter_block' => 'grid_like_filter', 'width' => 250, ), + 'FlatSurcharge' => Array ( 'filter_block' => 'grid_range_filter', 'width' => 150, ), + 'PercentSurcharge' => Array ( 'filter_block' => 'grid_range_filter', 'width' => 150, ), + 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 150, ), + ), + ), + ), +); \ No newline at end of file Index: modules/in-commerce/units/downloads/downloads_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/downloads/downloads_config.php (revision 15601) +++ modules/in-commerce/units/downloads/downloads_config.php (revision ) @@ -13,102 +13,104 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'down', + 'Prefix' => 'down', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'kDBEventHandler','file'=>'','build_event'=>'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'kDBEventHandler', 'file' => '', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class'=>'kDBTagProcessor','file'=>'','build_event'=>'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), - 'RegisterClasses' => Array( + 'RegisterClasses' => Array ( - Array('pseudo' => 'DownloadHelper', 'class' => 'DownloadHelper', 'file' => 'download_helper.php', 'build_event' => ''), + Array ('pseudo' => 'DownloadHelper', 'class' => 'DownloadHelper', 'file' => 'download_helper.php', 'build_event' => ''), - ), + ), - 'AutoLoad' => true, + 'AutoLoad' => true, - 'Hooks' => Array( - /*Array( + + /*'Hooks' => Array ( + Array ( - 'Mode' => hBEFORE, - 'Conditional' => true, - 'HookToPrefix' => 'p', - 'HookToSpecial' => '', + 'Mode' => hBEFORE, + 'Conditional' => true, + 'HookToPrefix' => 'p', + 'HookToSpecial' => '', - 'HookToEvent' => Array( 'onPreSave' ), + 'HookToEvent' => Array ( 'onPreSave' ), - 'DoPrefix' => 'pr', - 'DoSpecial' => 'tang', - 'DoEvent' => 'OnArrange', + 'DoPrefix' => 'pr', + 'DoSpecial' => 'tang', + 'DoEvent' => 'OnArrange', - ),*/ - ), + ), + ),*/ + - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), + - 'TitlePresets' => Array( + 'TitlePresets' => Array ( - 'downloads_list'=>Array( 'prefixes' => Array('down_List'), - 'format' => "!la_title_FileDownloads!", + 'downloads_list' => Array ( + 'prefixes' => Array ('down_List'), 'format' => "!la_title_FileDownloads!", - ), - ), + ), + ), - 'PermSection' => Array('main' => 'in-commerce:downloadlog'), + 'PermSection' => Array ('main' => 'in-commerce:downloadlog'), - 'Sections' => Array( + 'Sections' => Array ( - 'in-commerce:downloadlog' => Array( + 'in-commerce:downloadlog' => Array ( - 'parent' => 'in-portal:reports', + 'parent' => 'in-portal:reports', - 'icon' => 'download_log', + 'icon' => 'download_log', - 'label' => 'la_tab_DownloadLog', + 'label' => 'la_tab_DownloadLog', - 'url' => Array('t' => 'in-commerce/downloads/downloads_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-commerce/downloads/downloads_list', 'pass' => 'm'), - 'permissions' => Array('view', 'delete'), + 'permissions' => Array ('view', 'delete'), - 'priority' => 7, + 'priority' => 7, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - 'IDField' => 'DownloadId', + 'IDField' => 'DownloadId', - 'TitleField' => 'Name', + 'TitleField' => 'Name', - 'TableName' => TABLE_PREFIX.'UserDownloads', + 'TableName' => TABLE_PREFIX.'UserDownloads', - 'ListSQLs' => Array( ''=>'SELECT * FROM %s', - ), // key - special, value - list select sql - 'ItemSQLs' => Array( ''=>'SELECT * FROM %s', + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s', - ), + ), + - 'ListSortings' => Array( + 'ListSortings' => Array ( - '' => Array( + '' => Array ( - 'Sorting' => Array('StartedOn' => 'desc'), + 'Sorting' => Array ('StartedOn' => 'desc'), - ) - ), + ) + ), + - 'Fields' => Array( + 'Fields' => Array ( - 'DownloadId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'DownloadId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'PortalUserId' => Array('type' => 'int','not_null' => 1, 'default' => 0), + 'PortalUserId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Username' => Array('type' => 'string','not_null' => 1, 'default' => ''), + 'Username' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'ProductId' => Array('type' => 'int','not_null' => 1, 'default' => 0), + 'ProductId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ProductName' => Array('type' => 'string','not_null' => 1, 'default' => ''), + 'ProductName' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'FileId' => Array('type' => 'int','not_null' => 1, 'default' => 0), + 'FileId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Filename' => Array('type' => 'string','not_null' => 1, 'default' => ''), + 'Filename' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'IPAddress' => Array('type' => 'string','not_null' => 1, 'default' => ''), + 'IPAddress' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'StartedOn' => Array('type' => 'int','formatter' => 'kDateFormatter', 'default' => NULL), + 'StartedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), - 'EndedOn' => Array('type' => 'int','formatter' => 'kDateFormatter', 'default' => NULL), + 'EndedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), - ), + ), - 'VirtualFields' => Array( - ), - 'Grids' => Array( + 'Grids' => Array ( - 'Default' => Array( + 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disabled.png', - 1 => 'icon16_item.png', - 'module' => 'core', - ), + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 0 => 'icon16_disabled.png', + 1 => 'icon16_item.png', + 'module' => 'core', + ), - 'Fields' => Array( + 'Fields' => Array ( - 'DownloadId' => Array( 'title'=>'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'DownloadId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'Username' => Array( 'filter_block' => 'grid_like_filter', 'width' => 100, ), + 'Username' => Array ( 'filter_block' => 'grid_like_filter', 'width' => 100, ), - 'ProductName' => Array( 'title'=>'la_col_DownloadedProductName', 'filter_block' => 'grid_like_filter', 'width' => 150, ), + 'ProductName' => Array ( 'title' => 'la_col_DownloadedProductName', 'filter_block' => 'grid_like_filter', 'width' => 150, ), - 'Filename' => Array( 'title'=>'la_col_DownloadedFileName', 'filter_block' => 'grid_like_filter', 'width' => 150, ), + 'Filename' => Array ( 'title' => 'la_col_DownloadedFileName', 'filter_block' => 'grid_like_filter', 'width' => 150, ), - 'IPAddress' => Array( 'filter_block' => 'grid_like_filter', 'width' => 150, ), + 'IPAddress' => Array ( 'filter_block' => 'grid_like_filter', 'width' => 150, ), - 'StartedOn' => Array( 'title'=>'la_col_StartedOn', 'filter_block' => 'grid_date_range_filter', 'width' => 150, ), + 'StartedOn' => Array ( 'title' => 'la_col_StartedOn', 'filter_block' => 'grid_date_range_filter', 'width' => 150, ), - ), - ), - ), + ), + ), + ), - - ); \ No newline at end of file +); \ No newline at end of file Index: modules/in-commerce/units/affiliate_plans_items/affiliate_plans_items_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/affiliate_plans_items/affiliate_plans_items_config.php (revision 15601) +++ modules/in-commerce/units/affiliate_plans_items/affiliate_plans_items_config.php (revision ) @@ -13,114 +13,115 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'api', + 'Prefix' => 'api', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'AffiliatePlansItemsEventHandler','file'=>'affiliate_plans_items_event_handler.php','build_event'=>'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'AffiliatePlansItemsEventHandler', 'file' => 'affiliate_plans_items_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class'=>'AffiliatePlansItemsTagProcessor','file'=>'affiliate_plans_items_tag_processor.php','build_event'=>'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'AffiliatePlansItemsTagProcessor', 'file' => 'affiliate_plans_items_tag_processor.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, + - 'Hooks' => Array( + 'Hooks' => Array ( - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '', + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '', - 'HookToEvent' => Array('OnAfterItemDelete'), + 'HookToEvent' => Array ('OnAfterItemDelete'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnDeleteDiscountedItem', - ), - ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnDeleteDiscountedItem', + ), + ), + - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), + - 'IDField' => 'AffiliateItemId', + 'IDField' => 'AffiliateItemId', - 'StatusField' => Array('Status'), + 'StatusField' => Array ('Status'), - 'TitleField' => 'Name', + 'TitleField' => 'Name', - 'TableName' => TABLE_PREFIX.'AffiliatePlansItems', + 'TableName' => TABLE_PREFIX.'AffiliatePlansItems', - 'CalculatedFields' => Array( + 'CalculatedFields' => Array ( - '' => Array( + '' => Array ( - 'ProductId' => 'p.ProductId', + 'ProductId' => 'p.ProductId', - 'ItemName' => 'IF(p.Name IS NULL,c.Name,p.l1_Name)', + 'ItemName' => 'IF(p.Name IS NULL,c.Name,p.l1_Name)', - 'SKU' => 'p.SKU', + 'SKU' => 'p.SKU', - 'Weight' => 'p.Weight', + 'Weight' => 'p.Weight', - 'CreatedOn' => 'p.CreatedOn', + 'CreatedOn' => 'p.CreatedOn', - 'BackOrderDate' => 'p.BackOrderDate', + 'BackOrderDate' => 'p.BackOrderDate', - 'Status' => 'p.Status', + 'Status' => 'p.Status', - 'CategoryId' => 'c.CategoryId', + 'CategoryId' => 'c.CategoryId', - - ), + ), - - ), + ), - 'ListSQLs' => Array( ''=>' SELECT %1$s.* %2$s + + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'Products p ON %1$s.ItemResourceId = p.ResourceId - LEFT JOIN '.TABLE_PREFIX.'Categories c ON %1$s.ItemResourceId = c.ResourceId', + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'Products p ON %1$s.ItemResourceId = p.ResourceId + LEFT JOIN '.TABLE_PREFIX.'Categories c ON %1$s.ItemResourceId = c.ResourceId', - ), // key - special, value - list select sql - 'ItemSQLs' => Array( ''=>'SELECT * FROM %s', - ), + ), - 'ForeignKey' => 'AffiliatePlanId', + 'ForeignKey' => 'AffiliatePlanId', - 'ParentTableKey' => 'AffiliatePlanId', - 'ParentPrefix' => 'ap', + 'ParentTableKey' => 'AffiliatePlanId', + 'ParentPrefix' => 'ap', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - 'ListSortings' => Array( + 'ListSortings' => Array ( - '' => Array( + '' => Array ( - 'Sorting' => Array('ItemName' => 'asc'), + 'Sorting' => Array ('ItemName' => 'asc'), - ) - ), + ) + ), - 'Fields' => Array ( + 'Fields' => Array ( - 'AffiliateItemId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0, ), + 'AffiliateItemId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), - 'AffiliatePlanId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0, ), + 'AffiliatePlanId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), - 'ItemResourceId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0, ), + 'ItemResourceId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), - 'ItemType' => Array('type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array ( 1 => 'la_Product', 2 => 'la_Category', 0 => 'la_WholeOrder' ), 'not_null' => 1, 'default' => 1, ), + 'ItemType' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array ( 1 => 'la_Product', 2 => 'la_Category', 0 => 'la_WholeOrder' ), 'not_null' => 1, 'default' => 1, ), - ), + ), - 'VirtualFields' => Array( + 'VirtualFields' => Array ( - 'ProductId' => Array('type' => 'int', 'default' => 0), + 'ProductId' => Array ('type' => 'int', 'default' => 0), - 'ItemName' => Array('type' => 'string', 'default' => ''), + 'ItemName' => Array ('type' => 'string', 'default' => ''), - 'SKU' => Array('type' => 'string', 'default' => ''), + 'SKU' => Array ('type' => 'string', 'default' => ''), - 'Weight' => Array('type' => 'float', 'min_value_exc' => 0, 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => NULL), + 'Weight' => Array ('type' => 'float', 'min_value_exc' => 0, 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => NULL), - 'CreatedOn' => Array('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'BackOrderDate' => Array('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), + 'BackOrderDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), - 'Status' => Array ( + 'Status' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, - 'default' => 2, - ), - 'CategoryId' => Array ('type' => 'int', 'default' => 0), - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, + 'default' => 2, + ), + 'CategoryId' => Array ('type' => 'int', 'default' => 0), + ), - 'Grids' => Array( + 'Grids' => Array ( - 'Default' => Array( + 'Default' => Array ( - 'Icons' => Array('default'=>'icon16_entire_order.gif'), + 'Icons' => Array ('default' => 'icon16_entire_order.gif'), - 'Fields' => Array( + 'Fields' => Array ( - 'ItemType' => Array( 'title'=>'la_col_ItemType', 'data_block' => 'grid_checkbox_td' ), + 'ItemType' => Array ( 'title' => 'la_col_ItemType', 'data_block' => 'grid_checkbox_td' ), - ), + ), - - ), + ), + - 'AffiliatePlansItems' => Array( + 'AffiliatePlansItems' => Array ( - 'Icons' => Array( + 'Icons' => Array ( - 'default' => 'icon16_product.png', - 0 => 'icon16_product_disabled.png', - 1 => 'icon16_product.png', - 2 => 'icon16_product_pending.png', - ), + 'default' => 'icon16_product.png', + 0 => 'icon16_product_disabled.png', + 1 => 'icon16_product.png', + 2 => 'icon16_product_pending.png', + ), - 'Fields' => Array( + 'Fields' => Array ( - 'ProductId' => Array('title' => 'column:la_fld_Id', 'data_block' => 'grid_item_checkbox_td', 'filter_block' => 'grid_range_filter'), + 'ProductId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_item_checkbox_td', 'filter_block' => 'grid_range_filter'), - 'ItemName' => Array('filter_block' => 'grid_like_filter'), + 'ItemName' => Array ('filter_block' => 'grid_like_filter'), - 'ItemType' => Array('title' => 'la_col_ItemType', 'filter_block' => 'grid_options_filter'), + 'ItemType' => Array ('title' => 'la_col_ItemType', 'filter_block' => 'grid_options_filter'), - ), + ), - - ), - ), - ); \ No newline at end of file + ), + ), +); \ No newline at end of file Index: modules/in-link/units/l-visits/l-visits_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-link/units/l-visits/l-visits_config.php (revision 15601) +++ modules/in-link/units/l-visits/l-visits_config.php (revision ) @@ -12,75 +12,77 @@ * See http://www.in-portal.org/license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( - 'Prefix' => 'l-visit', +$config = Array ( + 'Prefix' => 'l-visit', - 'ItemClass' => Array('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'EventHandlerClass' => Array('class' => 'LinkVisitEventHandler', 'file' => 'l-visit_eh.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'LinkVisitEventHandler', 'file' => 'l-visit_eh.php', 'build_event' => 'OnBuild'), - 'AutoLoad' => true, + 'AutoLoad' => true, - 'Hooks' => Array ( - Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'u', - 'HookToSpecial' => '-item', // from OnMassDelete event + 'Hooks' => Array ( + Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'u', + 'HookToSpecial' => '-item', // from OnMassDelete event - 'HookToEvent' => Array('OnAfterItemDelete'), + 'HookToEvent' => Array ('OnAfterItemDelete'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnDeleteVisits', - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnDeleteVisits', + ), - Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'l', - 'HookToSpecial' => '-item', // from "Catalog" + Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'l', + 'HookToSpecial' => '-item', // from "Catalog" - 'HookToEvent' => Array('OnAfterItemDelete'), + 'HookToEvent' => Array ('OnAfterItemDelete'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnDeleteVisits', - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnDeleteVisits', + ), - Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'l', - 'HookToSpecial' => 'showall-item', // from "Advanced View" + Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'l', + 'HookToSpecial' => 'showall-item', // from "Advanced View" - 'HookToEvent' => Array('OnAfterItemDelete'), + 'HookToEvent' => Array ('OnAfterItemDelete'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnDeleteVisits', - ), - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnDeleteVisits', + ), + ), - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', + 1 => 'id', - 2 => 'Page', + 2 => 'Page', - 3 => 'PerPage', + 3 => 'PerPage', - 4 => 'event', + 4 => 'event', - ), + ), - 'IDField' => 'VisitId', - 'TableName' => TABLE_PREFIX.'LinkVisits', + 'IDField' => 'VisitId', + 'TableName' => TABLE_PREFIX.'LinkVisits', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'ListSQLs' => Array ('' => 'SELECT * FROM %s'), - 'ItemSQLs' => Array ('' => 'SELECT * FROM %s'), + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s' + ), - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array( + '' => Array ( - 'Sorting' => Array('VisitTimestamp' => 'desc'), + 'Sorting' => Array ('VisitTimestamp' => 'desc'), - ) - ), + ) + ), - 'Fields' => Array ( - 'VisitId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ResourceId' => Array ('type' => 'int', 'default' => NULL), - 'PortalUserId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'VisitTimestamp' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - ), - ); \ No newline at end of file + 'Fields' => Array ( + 'VisitId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ResourceId' => Array ('type' => 'int', 'default' => NULL), + 'PortalUserId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'VisitTimestamp' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + ), +); \ No newline at end of file Index: modules/in-commerce/units/shipping_costs/shipping_costs_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/shipping_costs/shipping_costs_config.php (revision 15601) +++ modules/in-commerce/units/shipping_costs/shipping_costs_config.php (revision ) @@ -13,48 +13,53 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'sc', + 'Prefix' => 'sc', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'ShippingCostsEventHandler','file'=>'shipping_costs_event_handler.php','build_event'=>'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'ShippingCostsEventHandler', 'file' => 'shipping_costs_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class'=>'kDBTagProcessor','file'=>'','build_event'=>'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, + - 'Hooks' => Array( + 'Hooks' => Array ( - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => true, - 'HookToPrefix' => 's', - 'HookToSpecial' => '', + 'Mode' => hAFTER, + 'Conditional' => true, + 'HookToPrefix' => 's', + 'HookToSpecial' => '', - 'HookToEvent' => Array( 'OnPreSaveAndGoToTab', 'OnPreSaveAndGo', 'OnPreSave', 'OnFlip', 'OnApplyModifier' ), + 'HookToEvent' => Array ( 'OnPreSaveAndGoToTab', 'OnPreSaveAndGo', 'OnPreSave', 'OnFlip', 'OnApplyModifier' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnCreate', - ), - ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnCreate', + ), + ), + - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), + - 'IDField' => 'ShippingCostId', + 'IDField' => 'ShippingCostId', - 'TableName' => TABLE_PREFIX.'ShippingCosts', + 'TableName' => TABLE_PREFIX.'ShippingCosts', - 'ForeignKey' => Array('z' => 'ZoneID', 'br' => 'BracketId'), + 'ForeignKey' => Array ('z' => 'ZoneID', 'br' => 'BracketId'), - 'ParentTableKey' => Array('z' => 'ZoneID', 'br' => 'BracketId'), + 'ParentTableKey' => Array ('z' => 'ZoneID', 'br' => 'BracketId'), - 'ParentPrefix' => 'z', + 'ParentPrefix' => 'z', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - 'ListSQLs' => Array( ''=> 'SELECT * FROM %s'), - // key - special, value - list select sql - 'ItemSQLs' => Array( ''=> 'SELECT * FROM %s'), + 'ListSQLs' => Array ( + ''=> ' SELECT * + FROM %s' + ), - 'Fields' => Array( + 'Fields' => Array ( - 'ShippingCostId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ShippingCostId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ZoneID' => Array('type' => 'int', 'not_null' => true, 'default' => 0), + 'ZoneID' => Array ('type' => 'int', 'not_null' => true, 'default' => 0), - 'BracketId' => Array('type' => 'int', 'not_null' => true, 'default' => 0), + 'BracketId' => Array ('type' => 'int', 'not_null' => true, 'default' => 0), - 'Flat' => Array('type' => 'double', 'formatter' => 'kFormatter', 'default' => 0), + 'Flat' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'default' => 0), - 'PerUnit' => Array('type' => 'double', 'formatter' => 'kFormatter', 'default' => 0), + 'PerUnit' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'default' => 0), - ), - ); \ No newline at end of file + ), +); \ No newline at end of file Index: modules/in-commerce/units/payment_type/payment_type_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/payment_type/payment_type_config.php (revision 15601) +++ modules/in-commerce/units/payment_type/payment_type_config.php (revision ) @@ -13,158 +13,162 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'pt', + 'Prefix' => 'pt', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'PaymentTypeEventHandler', 'file' => 'payment_type_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'PaymentTypeEventHandler', 'file' => 'payment_type_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'PaymentTypeTagProcessor', 'file' => 'payment_type_tag_processor.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'PaymentTypeTagProcessor', 'file' => 'payment_type_tag_processor.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), + - 'IDField' => 'PaymentTypeId', + 'IDField' => 'PaymentTypeId', - 'StatusField' => Array ('Status', 'IsPrimary'), + 'StatusField' => Array ('Status', 'IsPrimary'), - 'TableName' => TABLE_PREFIX.'PaymentTypes', + 'TableName' => TABLE_PREFIX.'PaymentTypes', - 'TitlePresets' => Array ( + 'TitlePresets' => Array ( - 'default' => Array ( 'new_status_labels' => Array ('pt' => '!la_title_AddingPaymentType!'), + 'default' => Array ( + 'new_status_labels' => Array ('pt' => '!la_title_AddingPaymentType!'), - 'edit_status_labels' => Array ('pt' => '!la_title_EditingPaymentType!'), + 'edit_status_labels' => Array ('pt' => '!la_title_EditingPaymentType!'), - 'new_titlefield' => Array ('pt' => '!la_title_NewPaymentType!'), + 'new_titlefield' => Array ('pt' => '!la_title_NewPaymentType!'), - ), + ), - 'payment_type_list' =>Array ( 'prefixes' => Array ('pt_List'), - 'format' => "!la_title_PaymentTypes!", + 'payment_type_list' =>Array ( + 'prefixes' => Array ('pt_List'), 'format' => "!la_title_PaymentTypes!", - ), + ), - 'payment_type_edit' =>Array ( 'prefixes' => Array ('pt'), + 'payment_type_edit' =>Array ( + 'prefixes' => Array ('pt'), - 'new_titlefield' => Array ('pt' => '!la_title_NewPaymentType!'), + 'new_titlefield' => Array ('pt' => '!la_title_NewPaymentType!'), - 'format' => "#pt_status# '#pt_titlefield#' - !la_title_General!", + 'format' => "#pt_status# '#pt_titlefield#' - !la_title_General!", - ), + ), - 'gateway' => Array ('prefixes' => Array ('pt'), 'format' => "#pt_status# '#pt_titlefield#' - !la_title_Gateway!"), + 'gateway' => Array ('prefixes' => Array ('pt'), 'format' => "#pt_status# '#pt_titlefield#' - !la_title_Gateway!"), - 'group_list' => Array ('prefixes' => Array ('pt'), 'format' => "#pt_status# '#pt_titlefield#' - !la_title_Groups!"), + 'group_list' => Array ('prefixes' => Array ('pt'), 'format' => "#pt_status# '#pt_titlefield#' - !la_title_Groups!"), - 'payment_currencies_edit' => Array ('prefixes' => Array ('pt'), 'format' => "#pt_status# '#pt_titlefield#' - !la_title_Currencies!"), + 'payment_currencies_edit' => Array ('prefixes' => Array ('pt'), 'format' => "#pt_status# '#pt_titlefield#' - !la_title_Currencies!"), - ), + ), - 'EditTabPresets' => Array ( - 'Default' => Array ( - 'general' => Array ('title' => 'la_tab_General', 't' => 'in-commerce/payment_type/payment_type_edit', 'priority' => 1), - 'gateway' => Array ('title' => 'la_tab_Gateway', 't' => 'in-commerce/payment_type/payment_type_gateway', 'priority' => 2), - 'currencies' => Array ('title' => 'la_tab_Currencies', 't' => 'in-commerce/payment_type/payment_type_currencies', 'priority' => 3), - 'groups' => Array ('title' => 'la_tab_UserGroups', 't' => 'in-commerce/payment_type/payment_type_groups', 'priority' => 4), - ), - ), + 'EditTabPresets' => Array ( + 'Default' => Array ( + 'general' => Array ('title' => 'la_tab_General', 't' => 'in-commerce/payment_type/payment_type_edit', 'priority' => 1), + 'gateway' => Array ('title' => 'la_tab_Gateway', 't' => 'in-commerce/payment_type/payment_type_gateway', 'priority' => 2), + 'currencies' => Array ('title' => 'la_tab_Currencies', 't' => 'in-commerce/payment_type/payment_type_currencies', 'priority' => 3), + 'groups' => Array ('title' => 'la_tab_UserGroups', 't' => 'in-commerce/payment_type/payment_type_groups', 'priority' => 4), + ), + ), - 'PermSection' => Array ('main' => 'in-commerce:payment_types'), + 'PermSection' => Array ('main' => 'in-commerce:payment_types'), - 'Sections' => Array ( + 'Sections' => Array ( - 'in-commerce:payment_types' => Array ( + 'in-commerce:payment_types' => Array ( - 'parent' => 'in-commerce:setting_folder', + 'parent' => 'in-commerce:setting_folder', - 'icon' => 'conf_payment_types', + 'icon' => 'conf_payment_types', - 'label' => 'la_tab_PaymentTypes', + 'label' => 'la_tab_PaymentTypes', - 'url' => Array ('t' => 'in-commerce/payment_type/payment_type_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-commerce/payment_type/payment_type_list', 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit', 'delete'), + 'permissions' => Array ('view', 'add', 'edit', 'delete'), - 'priority' => 5, + 'priority' => 5, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - 'TitleField' => 'Name', // field, used in bluebar when editing existing item + 'TitleField' => 'Name', // field, used in bluebar when editing existing item - 'SubItems' => Array ('gwfv', 'ptc'), + 'SubItems' => Array ('gwfv', 'ptc'), - 'CalculatedFields' => Array ( + 'CalculatedFields' => Array ( - '' => Array ( + '' => Array ( - 'Gateway' => TABLE_PREFIX . 'Gateways.Name', - ), - ), + 'Gateway' => TABLE_PREFIX . 'Gateways.Name', + ), + ), - 'ListSQLs' => Array ( - '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN ' . TABLE_PREFIX . 'Gateways ON %1$s.GatewayId = ' . TABLE_PREFIX . 'Gateways.GatewayId', - ), + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM %1$s + LEFT JOIN ' . TABLE_PREFIX . 'Gateways ON %1$s.GatewayId = ' . TABLE_PREFIX . 'Gateways.GatewayId', + ), - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( - 'ForcedSorting' => Array ('Priority' => 'desc'), - 'Sorting' => Array ('Name' => 'asc'), - ) - ), + '' => Array ( + 'ForcedSorting' => Array ('Priority' => 'desc'), + 'Sorting' => Array ('Name' => 'asc'), + ) + ), - 'Fields' => Array ( + 'Fields' => Array ( - 'PaymentTypeId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'Name' => Array ('type' => 'string', 'not_null' => 1, 'default' => '', 'required' =>true, 'max_len' => 100), - 'Description' => Array ( - 'type' => 'string', 'max_len' => 255, - 'formatter' => 'kMultiLanguage', 'db_type' => 'varchar(255)', - 'default' => null - ), - 'Instructions' => Array ( - 'type' => 'string', - 'formatter' => 'kMultiLanguage', 'db_type' => 'text', 'using_fck' => 1, - 'default' => null - ), - 'AdminComments' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => null), - 'Status' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( 0 => 'la_Disabled', 1 => 'la_Active', ), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), - 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'IsPrimary' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), - 'BuiltIn' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array ( 1 => 'la_BuiltIn', 0 => 'la_UserDefined' ), 'default' => 0, 'not_null' => 1 ), - 'GatewayId' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Gateways', - 'option_key_field' => 'GatewayId', - 'option_title_field' => 'Name', - 'default' => 1, 'not_null' => 1, - ), - 'PlacedOrdersEdit' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), - 'ProcessingFee' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%.02f', 'not_null' => 1, 'default' => '0.00'), - 'PortalGroups' => Array ('type' => 'string', 'default' => null), - ), + 'PaymentTypeId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'Name' => Array ('type' => 'string', 'not_null' => 1, 'default' => '', 'required' =>true, 'max_len' => 100), + 'Description' => Array ( + 'type' => 'string', 'max_len' => 255, + 'formatter' => 'kMultiLanguage', 'db_type' => 'varchar(255)', + 'default' => null + ), + 'Instructions' => Array ( + 'type' => 'string', + 'formatter' => 'kMultiLanguage', 'db_type' => 'text', 'using_fck' => 1, + 'default' => null + ), + 'AdminComments' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => null), + 'Status' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( 0 => 'la_Disabled', 1 => 'la_Active', ), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), + 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'IsPrimary' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), + 'BuiltIn' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array ( 1 => 'la_BuiltIn', 0 => 'la_UserDefined' ), 'default' => 0, 'not_null' => 1 ), + 'GatewayId' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Gateways', + 'option_key_field' => 'GatewayId', + 'option_title_field' => 'Name', + 'default' => 1, 'not_null' => 1, + ), + 'PlacedOrdersEdit' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), + 'ProcessingFee' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%.02f', 'not_null' => 1, 'default' => '0.00'), + 'PortalGroups' => Array ('type' => 'string', 'default' => null), + ), - 'VirtualFields' => Array ( + 'VirtualFields' => Array ( - 'Gateway' => Array ('type' => 'string', 'default' => ''), - ), + 'Gateway' => Array ('type' => 'string', 'default' => ''), + ), - 'Grids' => Array ( + 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - '0_0' => 'icon16_disabled.png', - '0_1' => 'icon16_disabled.png', - '1_0' => 'icon16_item.png', - '1_1' => 'icon16_primary.png', - 'module' => 'core', - ), - 'Fields' => Array ( - 'PaymentTypeId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 50), - 'Name' => Array ( 'title' => 'la_col_PaymentTypeName', 'data_block' => 'payment_caption_td', 'filter_block' => 'grid_like_filter', 'width' => 200), - 'Description' => Array ('filter_block' => 'grid_like_filter', 'width' => 200), - 'BuiltIn' => Array ( 'title' => 'la_col_BuiltIn', 'filter_block' => 'grid_options_filter', 'width' => 100), - 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 100), - ), - ), - ), - ); \ No newline at end of file + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + '0_0' => 'icon16_disabled.png', + '0_1' => 'icon16_disabled.png', + '1_0' => 'icon16_item.png', + '1_1' => 'icon16_primary.png', + 'module' => 'core', + ), + 'Fields' => Array ( + 'PaymentTypeId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 50), + 'Name' => Array ( 'title' => 'la_col_PaymentTypeName', 'data_block' => 'payment_caption_td', 'filter_block' => 'grid_like_filter', 'width' => 200), + 'Description' => Array ('filter_block' => 'grid_like_filter', 'width' => 200), + 'BuiltIn' => Array ( 'title' => 'la_col_BuiltIn', 'filter_block' => 'grid_options_filter', 'width' => 100), + 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 100), + ), + ), + ), +); \ No newline at end of file Index: modules/in-bulletin/units/censorship/censorship_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-bulletin/units/censorship/censorship_config.php (revision 15601) +++ modules/in-bulletin/units/censorship/censorship_config.php (revision ) @@ -12,85 +12,85 @@ * See http://www.in-portal.org/license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( - 'Prefix' => 'censorship', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'kDBEventHandler', 'file' => '', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), +$config = Array ( + 'Prefix' => 'censorship', + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'EventHandlerClass' => Array ('class' => 'kDBEventHandler', 'file' => '', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', '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' => 'CensorshipId', + 'IDField' => 'CensorshipId', - 'TableName' => TABLE_PREFIX.'Censorship', + 'TableName' => TABLE_PREFIX.'Censorship', - 'TitleField' => 'BadWord', + 'TitleField' => 'BadWord', - 'TitlePresets' => Array ( - 'default' => Array ( - 'new_status_labels' => Array ('censorship' => '!la_title_AddingCensorship!'), - 'edit_status_labels' => Array ('censorship' => '!la_title_EditingCensorship!'), - ), + 'TitlePresets' => Array ( + 'default' => Array ( + 'new_status_labels' => Array ('censorship' => '!la_title_AddingCensorship!'), + 'edit_status_labels' => Array ('censorship' => '!la_title_EditingCensorship!'), + ), - 'censorship_list' => Array ('prefixes' => Array ('censorship_List'), 'format' => "!la_tab_ConfigCensorship!"), + 'censorship_list' => Array ('prefixes' => Array ('censorship_List'), 'format' => "!la_tab_ConfigCensorship!"), - 'censorship_edit' => Array ('prefixes' => Array ('censorship'), 'format' => "#censorship_status# '#censorship_titlefield#'"), + 'censorship_edit' => Array ('prefixes' => Array ('censorship'), 'format' => "#censorship_status# '#censorship_titlefield#'"), - ), + ), - 'PermSection' => Array('main' => 'in-bulletin:configuration_censorship'), + 'PermSection' => Array ('main' => 'in-bulletin:configuration_censorship'), - 'Sections' => Array ( - 'in-bulletin:configuration_censorship' => Array ( + 'Sections' => Array ( + 'in-bulletin:configuration_censorship' => Array ( - 'parent' => 'in-bulletin:setting_folder', + 'parent' => 'in-bulletin:setting_folder', - 'icon' => 'conf_censorship', + 'icon' => 'conf_censorship', - 'label' => 'la_tab_ConfigCensorship', + 'label' => 'la_tab_ConfigCensorship', - 'url' => Array('t' => 'in-bulletin/censorship/censorship_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-bulletin/censorship/censorship_list', 'pass' => 'm'), - 'permissions' => Array('view', 'add', 'edit', 'delete'), + 'permissions' => Array ('view', 'add', 'edit', 'delete'), - 'priority' => 1, + 'priority' => 1, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - - 'ListSQLs' => Array ( + 'ListSQLs' => Array ( - '' => ' SELECT %1$s.* %2$s FROM %1$s', + '' => ' SELECT %1$s.* %2$s + FROM %1$s', - ), + ), - 'ListSortings' => Array ( - '' => Array ( - 'Sorting' => Array ('BadWord' => 'asc'), - ) - ), + 'ListSortings' => Array ( + '' => Array ( + 'Sorting' => Array ('BadWord' => 'asc'), + ) + ), - 'Fields' => Array ( - 'CensorshipId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'BadWord' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'required' => 1, 'default' => ''), - 'Replacement' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'required' => 1, 'default' => ''), - ), + 'Fields' => Array ( + 'CensorshipId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'BadWord' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'required' => 1, 'default' => ''), + 'Replacement' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'required' => 1, 'default' => ''), + ), - 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disabled.png', - 1 => 'icon16_item.png', - 'module' => 'core', - ), - 'Fields' => Array ( - 'CensorshipId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 50), - 'BadWord' => Array ('filter_block' => 'grid_like_filter', 'width' => 250), - 'Replacement' => Array ('filter_block' => 'grid_like_filter', 'width' => 250), - ), - ), - ), - ); \ No newline at end of file + 'Grids' => Array ( + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 0 => 'icon16_disabled.png', + 1 => 'icon16_item.png', + 'module' => 'core', + ), + 'Fields' => Array ( + 'CensorshipId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 50), + 'BadWord' => Array ('filter_block' => 'grid_like_filter', 'width' => 250), + 'Replacement' => Array ('filter_block' => 'grid_like_filter', 'width' => 250), + ), + ), + ), +); \ No newline at end of file Index: modules/in-commerce/units/discounts/discounts_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/discounts/discounts_config.php (revision 15601) +++ modules/in-commerce/units/discounts/discounts_config.php (revision ) @@ -13,129 +13,132 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'd', + 'Prefix' => 'd', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'DiscountsEventHandler','file'=>'discounts_event_handler.php','build_event'=>'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'DiscountsEventHandler', 'file' => 'discounts_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class'=>'kDBTagProcessor','file'=>'','build_event'=>'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'hooks' => Array(), + - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), + - 'IDField' => 'DiscountId', + 'IDField' => 'DiscountId', - 'StatusField' => Array('Status'), + 'StatusField' => Array ('Status'), - 'TitleField' => 'Name', + 'TitleField' => 'Name', - 'TableName' => TABLE_PREFIX.'ProductsDiscounts', + 'TableName' => TABLE_PREFIX.'ProductsDiscounts', - 'SubItems' => Array('di'), + 'SubItems' => Array ('di'), - 'TitlePresets' => Array( + 'TitlePresets' => Array ( - 'default' => Array( 'new_status_labels' => Array('d'=>'!la_title_Adding_Discount!'), + 'default' => Array ( + 'new_status_labels' => Array ('d' => '!la_title_Adding_Discount!'), - 'edit_status_labels' => Array('d'=>'!la_title_Editing_Discount!'), + 'edit_status_labels' => Array ('d' => '!la_title_Editing_Discount!'), - 'new_titlefield' => Array('d'=>'!la_title_New_Discount!'), + 'new_titlefield' => Array ('d' => '!la_title_New_Discount!'), - ), + ), - 'discounts_list'=>Array('prefixes' => Array('d_List'), - 'format' => "!la_title_Discounts!", + 'discounts_list' => Array ( + 'prefixes' => Array ('d_List'), 'format' => "!la_title_Discounts!", - ), + ), - 'discount_edit'=>Array( 'prefixes' => Array('d'), - 'format' => "#d_status# '#d_titlefield#' - !la_title_General!", + 'discount_edit' => Array ( + 'prefixes' => Array ('d'), 'format' => "#d_status# '#d_titlefield#' - !la_title_General!", - ), + ), - 'discount_items'=>Array('prefixes' => Array('d','di_List'), - 'format' => "#d_status# '#d_titlefield#' - !la_title_DiscountItems!", + 'discount_items' => Array ( + 'prefixes' => Array ('d', 'di_List'), 'format' => "#d_status# '#d_titlefield#' - !la_title_DiscountItems!", - ), + ), - - ), + ), - 'EditTabPresets' => Array ( - 'Default' => Array ( - 'general' => Array ('title' => 'la_tab_General', 't' => 'in-commerce/discounts/discount_edit', 'priority' => 1), - 'items' => Array ('title' => 'la_tab_DiscountItems', 't' => 'in-commerce/discounts/discount_items', 'priority' => 2), - ), - ), + 'EditTabPresets' => Array ( + 'Default' => Array ( + 'general' => Array ('title' => 'la_tab_General', 't' => 'in-commerce/discounts/discount_edit', 'priority' => 1), + 'items' => Array ('title' => 'la_tab_DiscountItems', 't' => 'in-commerce/discounts/discount_items', 'priority' => 2), + ), + ), - 'PermSection' => Array('main' => 'in-commerce:discounts'), + 'PermSection' => Array ('main' => 'in-commerce:discounts'), - 'Sections' => Array( + 'Sections' => Array ( - 'in-commerce:discounts_folder' => Array( + 'in-commerce:discounts_folder' => Array ( - 'parent' => 'in-commerce', - 'use_parent_header' => 1, + 'parent' => 'in-commerce', + 'use_parent_header' => 1, - 'icon' => 'discounts_coupons', + 'icon' => 'discounts_coupons', - 'label' => 'la_tab_DiscountsAndCoupons', + 'label' => 'la_tab_DiscountsAndCoupons', - 'permissions' => Array(), + 'permissions' => Array (), - 'priority' => 3, + 'priority' => 3, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'in-commerce:discounts' => Array( + 'in-commerce:discounts' => Array ( - 'parent' => 'in-commerce:discounts_folder', + 'parent' => 'in-commerce:discounts_folder', - 'icon' => 'discounts_coupons', + 'icon' => 'discounts_coupons', - 'label' => 'la_tab_Discounts', + 'label' => 'la_tab_Discounts', - 'url' => Array('t' => 'in-commerce/discounts/discounts_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-commerce/discounts/discounts_list', 'pass' => 'm'), - 'permissions' => Array('view', 'add', 'edit', 'delete', 'advanced:approve', 'advanced:decline'), + 'permissions' => Array ('view', 'add', 'edit', 'delete', 'advanced:approve', 'advanced:decline'), - 'priority' => 3.1, // ., because this section replaces parent in tree + 'priority' => 3.1, // ., because this section replaces parent in tree - 'type' => stTAB, + 'type' => stTAB, - ), - ), + ), + ), - 'ListSQLs' => Array( ''=>'SELECT %1$s.* %2$s FROM %1$s', - ), // key - special, value - list select sql - 'ItemSQLs' => Array( ''=>'SELECT * FROM %1$s', + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM %1$s', - ), + ), - 'ListSortings' => Array( + 'ListSortings' => Array ( - '' => Array( + '' => Array ( - 'Sorting' => Array('Name' => 'asc'), + 'Sorting' => Array ('Name' => 'asc'), - ) - ), + ) + ), + - 'Fields' => Array ( + 'Fields' => Array ( - 'DiscountId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'DiscountId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Status' => Array('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array ( 1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled' ), 'use_phrases' => 1, 'default' => 2 ), + 'Status' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array ( 1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled' ), 'use_phrases' => 1, 'default' => 2 ), - 'Name' => Array('type'=>'string','required' => 1, 'default' => null, 'max_len'=>255), + 'Name' => Array ('type' => 'string', 'required' => 1, 'default' => null, 'max_len'=>255), - 'Start' => Array('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + 'Start' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'End' => Array('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null), + 'End' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null), - 'GroupId' => Array( + 'GroupId' => Array ( - 'type' => 'int', + 'type' => 'int', - 'formatter'=>'kOptionsFormatter', 'options_sql'=>'SELECT %s FROM '.TABLE_PREFIX.'UserGroups WHERE Personal = 0 ORDER BY Name', 'option_key_field'=>'GroupId', 'option_title_field'=>'Name', + 'formatter' => 'kOptionsFormatter', 'options_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'UserGroups WHERE Personal = 0 ORDER BY Name', 'option_key_field' => 'GroupId', 'option_title_field' => 'Name', - 'required' => 1, 'default' => NULL - ), + 'required' => 1, 'default' => NULL + ), - 'Type' => Array( + 'Type' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( - 1 => 'la_Flat', 2 => 'la_Percent'/*, 3 => 'la_FreeShipping' */ - ), - 'use_phrases' => 1, 'default' => 1, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( + 1 => 'la_Flat', 2 => 'la_Percent'/*, 3 => 'la_FreeShipping' */ + ), + 'use_phrases' => 1, 'default' => 1, + ), - 'Amount' => Array('type'=>'double', 'default' => null), + 'Amount' => Array ('type' => 'double', 'default' => null), - ), + ), - 'Grids' => Array ( + 'Grids' => Array ( - 'Default' => Array ( + 'Default' => Array ( - 'Icons' => Array( + 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disabled.png', - 1 => 'icon16_item.png', - 2 => 'icon16_pending.png', - 'module' => 'core', - ), - 'Fields' => Array ( + 'default' => 'icon16_item.png', + 0 => 'icon16_disabled.png', + 1 => 'icon16_item.png', + 2 => 'icon16_pending.png', + 'module' => 'core', + ), + 'Fields' => Array ( - 'DiscountId' => Array( 'title'=>'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'DiscountId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'Name' => Array( 'filter_block' => 'grid_like_filter', 'width' => 200, ), + 'Name' => Array ( 'filter_block' => 'grid_like_filter', 'width' => 200, ), - 'Start' => Array( 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), + 'Start' => Array ( 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), - 'End' => Array( 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), + 'End' => Array ( 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), - 'GroupId' => Array( 'title'=>'column:la_fld_Group', 'filter_block' => 'grid_options_filter', 'width' => 150, ), + 'GroupId' => Array ( 'title' => 'column:la_fld_Group', 'filter_block' => 'grid_options_filter', 'width' => 150, ), - 'Type' => Array( 'filter_block' => 'grid_options_filter', 'width' => 90, ), + 'Type' => Array ( 'filter_block' => 'grid_options_filter', 'width' => 90, ), - 'Status' => Array( 'filter_block' => 'grid_options_filter', 'width' => 90, ), + 'Status' => Array ( 'filter_block' => 'grid_options_filter', 'width' => 90, ), - 'Amount' => Array( 'filter_block' => 'grid_range_filter', 'width' => 100, ), + 'Amount' => Array ( 'filter_block' => 'grid_range_filter', 'width' => 100, ), - ), - ), - ), - ); \ No newline at end of file + ), + ), + ), +); \ No newline at end of file Index: modules/in-link/units/links/links_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-link/units/links/links_config.php (revision 15601) +++ modules/in-link/units/links/links_config.php (revision ) @@ -12,642 +12,643 @@ * See http://www.in-portal.org/license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'l', + 'Prefix' => 'l', - 'ItemClass' => Array ('class' => 'kCatDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kCatDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kCatDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kCatDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'LinksEventHandler', 'file' => 'links_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'LinksEventHandler', 'file' => 'links_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'LinkTagProcessor', 'file' => 'link_tag_processor.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'LinkTagProcessor', 'file' => 'link_tag_processor.php', 'build_event' => 'OnBuild'), - 'AutoLoad' => true, + 'AutoLoad' => true, - 'ConfigPriority' => 0, + 'ConfigPriority' => 0, - 'RewritePriority' => 101, - 'RewriteListener' => 'CategoryItemRewrite:RewriteListener', + 'RewritePriority' => 101, + 'RewriteListener' => 'CategoryItemRewrite:RewriteListener', - 'Hooks' => Array ( - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => '', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => 'cdata', - 'DoSpecial' => '*', - 'DoEvent' => 'OnDefineCustomFields', - ), + 'Hooks' => Array ( + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => '', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => 'cdata', + 'DoSpecial' => '*', + 'DoEvent' => 'OnDefineCustomFields', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => '#file', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => '#file', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'rev', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'rev', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'fav', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'fav', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'rel', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'rel', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'img', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'img', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'ci', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'ci', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), - Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => '', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => 'captcha', - 'DoSpecial' => '*', - 'DoEvent' => 'OnPrepareCaptcha', - ), - ), + Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => '', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => 'captcha', + 'DoSpecial' => '*', + 'DoEvent' => 'OnPrepareCaptcha', + ), + ), - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', + 1 => 'id', - 2 => 'Page', + 2 => 'Page', - 3 => 'PerPage', + 3 => 'PerPage', - 4 => 'event', + 4 => 'event', - 5 => 'mode', + 5 => 'mode', - ), + ), - 'AggregateTags' => Array ( - Array ( - 'AggregateTo' => 'l', - 'AggregatedTagName' => 'ListLinks', - 'LocalTagName' => 'PrintList2', - ), - ), + 'AggregateTags' => Array ( + Array ( + 'AggregateTo' => 'l', + 'AggregatedTagName' => 'ListLinks', + 'LocalTagName' => 'PrintList2', + ), + ), - 'CatalogItem' => true, + 'CatalogItem' => true, - 'AdminTemplatePath' => 'links', + 'AdminTemplatePath' => 'links', - 'AdminTemplatePrefix' => 'links_', + 'AdminTemplatePrefix' => 'links_', - 'SearchConfigPostfix' => 'links', + 'SearchConfigPostfix' => 'links', - 'IDField' => 'LinkId', + 'IDField' => 'LinkId', - 'StatusField' => Array ('Status'), // field, that is affected by Approve/Decline events + 'StatusField' => Array ('Status'), // field, that is affected by Approve/Decline events - 'ItemType' => 4, + 'ItemType' => 4, - 'StatisticsInfo' => Array ( + 'StatisticsInfo' => Array ( - 'pending' => Array ( + 'pending' => Array ( - 'icon' => 'icon16_link_pending.png', + 'icon' => 'icon16_link_pending.png', - 'label' => 'la_Text_Links', + 'label' => 'la_Text_Links', - 'js_url' => '#url#', + 'js_url' => '#url#', - 'url' => Array ('t' => 'catalog/advanced_view', 'SetTab' => 'l', 'pass' => 'm,l.showall', 'l.showall_event' => 'OnSetFilterPattern', 'l.showall_filters' => 'show_active=0,show_pending=1,show_disabled=0,show_new=1,show_hot=1,show_pop=1,show_pick=1'), + 'url' => Array ('t' => 'catalog/advanced_view', 'SetTab' => 'l', 'pass' => 'm,l.showall', 'l.showall_event' => 'OnSetFilterPattern', 'l.showall_filters' => 'show_active=0,show_pending=1,show_disabled=0,show_new=1,show_hot=1,show_pop=1,show_pick=1'), - 'status' => STATUS_PENDING, + 'status' => STATUS_PENDING, - ), - ), + ), + ), - 'TitlePhrase' => 'la_Text_Link', // phrase used to specify item type in relationship list + 'TitlePhrase' => 'la_Text_Link', // phrase used to specify item type in relationship list - 'ViewMenuPhrase' => 'la_title_Links', + 'ViewMenuPhrase' => 'la_title_Links', - 'CatalogTabIcon' => 'in-link:icon16_links.png', + 'CatalogTabIcon' => 'in-link:icon16_links.png', - 'UsePendingEditing' => true, // item editing is controlled by LINK.ADD/EDIT, LINK.ADD/EDIT.PENDING permissions + 'UsePendingEditing' => true, // item editing is controlled by LINK.ADD/EDIT, LINK.ADD/EDIT.PENDING permissions - 'CatalogSelectorName' => 'linklist', // used in old catalog section + 'CatalogSelectorName' => 'linklist', // used in old catalog section - 'ItemPropertyMappings' => Array ( + 'ItemPropertyMappings' => Array ( - 'NewDays' => 'Link_NewDays', // number of days item to be NEW + 'NewDays' => 'Link_NewDays', // number of days item to be NEW - 'MinPopVotes' => 'Link_MinPopVotes', // minimum number of votes for an item to be POP + 'MinPopVotes' => 'Link_MinPopVotes', // minimum number of votes for an item to be POP - 'MinPopRating' => 'Link_MinPopRating', // minimum rating for an item to be POP + 'MinPopRating' => 'Link_MinPopRating', // minimum rating for an item to be POP - 'MaxHotNumber' => 'Link_MaxHotNumber', // maximum number of HOT items + 'MaxHotNumber' => 'Link_MaxHotNumber', // maximum number of HOT items - 'HotLimit' => 'Link_HotLimit', // variable name in inp_Cache table + 'HotLimit' => 'Link_HotLimit', // variable name in inp_Cache table - 'ClickField' => 'Hits', // item click count is stored here (in item table) + 'ClickField' => 'Hits', // item click count is stored here (in item table) - ), + ), - 'TitleField' => 'Name', + 'TitleField' => 'Name', - 'TitlePresets' => Array ( + 'TitlePresets' => Array ( - 'default' => Array ( + 'default' => Array ( - 'new_status_labels' => Array ('l' => '!la_title_AddingLink!'), + 'new_status_labels' => Array ('l' => '!la_title_AddingLink!'), - 'edit_status_labels' => Array ('l' => '!la_title_EditingLink!'), - 'new_titlefield' => Array ('l' => '!la_title_NewLink!'), - ), + 'edit_status_labels' => Array ('l' => '!la_title_EditingLink!'), + 'new_titlefield' => Array ('l' => '!la_title_NewLink!'), + ), - 'links_edit' => Array ( - 'prefixes' => Array ('l'), 'format' => "#l_status# '#l_titlefield#' - !la_title_General!", - 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'), - ), + 'links_edit' => Array ( + 'prefixes' => Array ('l'), 'format' => "#l_status# '#l_titlefield#' - !la_title_General!", + 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'), + ), - 'link_list' => Array ( - 'prefixes' => Array ('c_List', 'l_List'), + 'link_list' => Array ( + 'prefixes' => Array ('c_List', 'l_List'), - 'format' => "!la_title_Categories! (#c_recordcount#) - !la_title_Links!", + 'format' => "!la_title_Categories! (#c_recordcount#) - !la_title_Links!", - 'toolbar_buttons' => Array (), - ), + 'toolbar_buttons' => Array (), + ), - 'links_categories' => Array ( - 'prefixes' => Array ('l', 'l-ci_List'), 'format' => "#l_status# '#l_titlefield#' - !la_title_Categories!", - 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next', 'new_item', 'delete', 'setprimary',), - ), + 'links_categories' => Array ( + 'prefixes' => Array ('l', 'l-ci_List'), 'format' => "#l_status# '#l_titlefield#' - !la_title_Categories!", + 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next', 'new_item', 'delete', 'setprimary',), + ), - 'links_relations' => Array ( - 'prefixes' => Array ('l'), 'format' => "#l_status# '#l_titlefield#' - !la_title_Relations!", - 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next', 'new_item', 'edit', 'delete', 'approve', 'decline', 'view', 'dbl-click'), - ), + 'links_relations' => Array ( + 'prefixes' => Array ('l'), 'format' => "#l_status# '#l_titlefield#' - !la_title_Relations!", + 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next', 'new_item', 'edit', 'delete', 'approve', 'decline', 'view', 'dbl-click'), + ), - 'links_images' => Array ( - 'prefixes' => Array ('l'), 'format' => "#l_status# '#l_titlefield#' - !la_title_Images!", - 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next', 'new_item', 'edit', 'delete', 'move_up', 'move_down', 'setprimary', 'view', 'dbl-click'), - ), + 'links_images' => Array ( + 'prefixes' => Array ('l'), 'format' => "#l_status# '#l_titlefield#' - !la_title_Images!", + 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next', 'new_item', 'edit', 'delete', 'move_up', 'move_down', 'setprimary', 'view', 'dbl-click'), + ), - 'links_files' => Array ( - 'prefixes' => Array ('l'), 'format' => "#l_status# '#l_titlefield#' - !la_title_Files!", - 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next', 'new_item', 'edit', 'delete', 'view', 'dbl-click'), - ), + 'links_files' => Array ( + 'prefixes' => Array ('l'), 'format' => "#l_status# '#l_titlefield#' - !la_title_Files!", + 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next', 'new_item', 'edit', 'delete', 'view', 'dbl-click'), + ), - 'links_reviews' => Array ( + 'links_reviews' => Array ( - 'prefixes' => Array ('l'), 'format' => "#l_status# '#l_titlefield#' - !la_title_Reviews!", - 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next', 'new_item', 'edit', 'delete', 'approve', 'decline', 'move_up', 'move_down', 'view', 'dbl-click'), - ), + 'prefixes' => Array ('l'), 'format' => "#l_status# '#l_titlefield#' - !la_title_Reviews!", + 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next', 'new_item', 'edit', 'delete', 'approve', 'decline', 'move_up', 'move_down', 'view', 'dbl-click'), + ), - 'links_custom' => Array ( - 'prefixes' => Array ('l'), 'format' => "#l_status# '#l_titlefield#' - !la_title_Custom!", - 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'), - ), + 'links_custom' => Array ( + 'prefixes' => Array ('l'), 'format' => "#l_status# '#l_titlefield#' - !la_title_Custom!", + 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'), + ), - 'images_edit' => Array ( - 'prefixes' => Array ('l', 'l-img'), + 'images_edit' => Array ( + 'prefixes' => Array ('l', 'l-img'), - 'new_status_labels' => Array ('l-img' => '!la_title_Adding_Image!'), + 'new_status_labels' => Array ('l-img' => '!la_title_Adding_Image!'), - 'edit_status_labels' => Array ('l-img' => '!la_title_Editing_Image!'), + 'edit_status_labels' => Array ('l-img' => '!la_title_Editing_Image!'), - 'new_titlefield' => Array ('l-img' => '!la_title_New_Image!'), + 'new_titlefield' => Array ('l-img' => '!la_title_New_Image!'), - 'format' => "#l_status# '#l_titlefield#' - #l-img_status# '#l-img_titlefield#'", + 'format' => "#l_status# '#l_titlefield#' - #l-img_status# '#l-img_titlefield#'", - 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'), - ), + 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'), + ), - 'file_edit' => Array ( - 'prefixes' => Array ('l', 'l-file'), - 'new_status_labels' => Array ('l-file' => "!la_title_AddingFile!"), - 'edit_status_labels' => Array ('l-file' => '!la_title_EditingFile!'), - 'new_titlefield' => Array ('l-file' => '!la_title_NewFile!'), - 'format' => "#l_status# '#l_titlefield#' - #l-file_status# '#l-file_titlefield#'", - 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'), - ), + 'file_edit' => Array ( + 'prefixes' => Array ('l', 'l-file'), + 'new_status_labels' => Array ('l-file' => "!la_title_AddingFile!"), + 'edit_status_labels' => Array ('l-file' => '!la_title_EditingFile!'), + 'new_titlefield' => Array ('l-file' => '!la_title_NewFile!'), + 'format' => "#l_status# '#l_titlefield#' - #l-file_status# '#l-file_titlefield#'", + 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'), + ), - 'reviews_edit' => Array ( - 'prefixes' => Array ('l', 'l-rev'), + 'reviews_edit' => Array ( + 'prefixes' => Array ('l', 'l-rev'), - 'new_status_labels' => Array ('l-rev' =>"!la_title_Adding_Review! '!la_title_New_Review!'"), + 'new_status_labels' => Array ('l-rev' =>"!la_title_Adding_Review! '!la_title_New_Review!'"), - 'edit_status_labels' => Array ('l-rev' => '!la_title_Editing_Review!'), + 'edit_status_labels' => Array ('l-rev' => '!la_title_Editing_Review!'), - 'format' => "#l_status# '#l_titlefield#' - #l-rev_status#", + 'format' => "#l_status# '#l_titlefield#' - #l-rev_status#", - 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'), - ), + 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'), + ), - 'relations_edit' => Array ( + 'relations_edit' => Array ( - 'prefixes' => Array ('l', 'l-rel'), - 'new_status_labels' => Array ('l-rel' =>"!la_title_Adding_Relationship! '!la_title_New_Relationship!'"), + 'prefixes' => Array ('l', 'l-rel'), + 'new_status_labels' => Array ('l-rel' =>"!la_title_Adding_Relationship! '!la_title_New_Relationship!'"), - 'edit_status_labels' => Array ('l-rel' => '!la_title_Editing_Relationship!'), + 'edit_status_labels' => Array ('l-rel' => '!la_title_Editing_Relationship!'), - 'format' => "#l_status# '#l_titlefield#' - #l-rel_status#", + 'format' => "#l_status# '#l_titlefield#' - #l-rel_status#", - 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'), - ), + 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'), + ), - 'links_export' => Array ('format' => '!la_title_LinksExport!'), + 'links_export' => Array ('format' => '!la_title_LinksExport!'), - 'links_import' => Array ('format' => '!la_title_ImportLinks!'), + 'links_import' => Array ('format' => '!la_title_ImportLinks!'), - 'duplicate_links' => Array ( - 'prefixes' => Array ('l.duplicates_List'), 'format' => "!la_title_DuplicateLinks! - %s", - 'toolbar_buttons' => Array ('edit', 'view', 'dbl-click'), - ), + 'duplicate_links' => Array ( + 'prefixes' => Array ('l.duplicates_List'), 'format' => "!la_title_DuplicateLinks! - %s", + 'toolbar_buttons' => Array ('edit', 'view', 'dbl-click'), + ), - 'duplicate_links_view' => Array ( - 'prefixes' => Array ('l.duplicates-sub_List'), 'format' => "!la_title_Links!", - 'toolbar_buttons' => Array ('cancel', 'edit', 'delete', 'merge_links', 'view', 'dbl-click'), - ), + 'duplicate_links_view' => Array ( + 'prefixes' => Array ('l.duplicates-sub_List'), 'format' => "!la_title_Links!", + 'toolbar_buttons' => Array ('cancel', 'edit', 'delete', 'merge_links', 'view', 'dbl-click'), + ), - 'tree_in-link' => Array ('format' => '!la_Text_Version! '.$this->Application->findModule('Name', 'In-Link', 'Version')), - ), + 'tree_in-link' => Array ('format' => '!la_Text_Version! '.$this->Application->findModule('Name', 'In-Link', 'Version')), + ), - 'EditTabPresets' => Array ( - 'Default' => Array ( - 'general' => Array ('title' => 'la_tab_General', 't' => 'in-link/links/links_edit', 'priority' => 1), - 'categories' => Array ('title' => 'la_tab_Categories', 't' => 'in-link/links/links_categories', 'priority' => 2), - 'relations' => Array ('title' => 'la_tab_Relations', 't' => 'in-link/links/links_relations', 'priority' => 3), - 'images' => Array ('title' => 'la_tab_Images', 't' => 'in-link/links/links_images', 'priority' => 4), - 'files' => Array ('title' => 'la_tab_Files', 't' => 'in-link/links/links_files', 'priority' => 5), - 'reviews' => Array ('title' => 'la_tab_Reviews', 't' => 'in-link/links/links_reviews', 'priority' => 6), - 'custom' => Array ('title' => 'la_tab_Custom', 't' => 'in-link/links/links_custom', 'priority' => 7), - ), - ), + 'EditTabPresets' => Array ( + 'Default' => Array ( + 'general' => Array ('title' => 'la_tab_General', 't' => 'in-link/links/links_edit', 'priority' => 1), + 'categories' => Array ('title' => 'la_tab_Categories', 't' => 'in-link/links/links_categories', 'priority' => 2), + 'relations' => Array ('title' => 'la_tab_Relations', 't' => 'in-link/links/links_relations', 'priority' => 3), + 'images' => Array ('title' => 'la_tab_Images', 't' => 'in-link/links/links_images', 'priority' => 4), + 'files' => Array ('title' => 'la_tab_Files', 't' => 'in-link/links/links_files', 'priority' => 5), + 'reviews' => Array ('title' => 'la_tab_Reviews', 't' => 'in-link/links/links_reviews', 'priority' => 6), + 'custom' => Array ('title' => 'la_tab_Custom', 't' => 'in-link/links/links_custom', 'priority' => 7), + ), + ), - 'PermItemPrefix' => 'LINK', + 'PermItemPrefix' => 'LINK', - 'PermTabText' => 'In-Link', + 'PermTabText' => 'In-Link', - 'PermSection' => Array ('main' => 'CATEGORY:in-link:links_list', 'search' => 'in-link:configuration_search', 'custom' => 'in-link:configuration_custom'), + 'PermSection' => Array ('main' => 'CATEGORY:in-link:links_list', 'search' => 'in-link:configuration_search', 'custom' => 'in-link:configuration_custom'), - 'Sections' => Array ( + 'Sections' => Array ( - 'in-link' => Array ( + 'in-link' => Array ( - 'parent' => 'in-portal:root', + 'parent' => 'in-portal:root', - 'icon' => 'settings_in-link', + 'icon' => 'settings_in-link', - 'label' => 'la_title_In-Link', + 'label' => 'la_title_In-Link', - 'url' => Array ('t' => 'index', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'index', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view'), + 'permissions' => Array ('view'), - 'priority' => 2.3, + 'priority' => 2.3, - 'container' => true, + 'container' => true, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'in-link:links' => Array ( + 'in-link:links' => Array ( - 'parent' => 'in-portal:site', + 'parent' => 'in-portal:site', - 'icon' => 'links', + 'icon' => 'links', - 'label' => 'la_tab_Links', + 'label' => 'la_tab_Links', - 'url' => Array ('t' => 'catalog/advanced_view', 'anchor' => 'tab-l.showall', 'pass' => 'm'), + 'url' => Array ('t' => 'catalog/advanced_view', 'anchor' => 'tab-l.showall', 'pass' => 'm'), - 'onclick' => 'setCatalogTab(\'l.showall\')', + 'onclick' => 'setCatalogTab(\'l.showall\')', - 'permissions' => Array ('view'), + 'permissions' => Array ('view'), - 'priority' => 3.1, + 'priority' => 3.1, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'in-link:duplicate_checker' => Array ( + 'in-link:duplicate_checker' => Array ( - 'parent' => 'in-link', + 'parent' => 'in-link', - 'icon' => 'duplicate_checker', + 'icon' => 'duplicate_checker', - 'label' => 'la_tab_DuplicateChecker', + 'label' => 'la_tab_DuplicateChecker', - 'url' => Array ('t' => 'in-link/duplicate_checker', 'pass' => 'm'), + 'url' => Array ('t' => 'in-link/duplicate_checker', 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit', 'delete'), + 'permissions' => Array ('view', 'add', 'edit', 'delete'), - 'priority' => 2, + 'priority' => 2, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - // link settings - 'in-link:setting_folder' => Array ( + // link settings + 'in-link:setting_folder' => Array ( - 'parent' => 'in-portal:system', + 'parent' => 'in-portal:system', - 'icon' => 'conf_directory', + 'icon' => 'conf_directory', - 'label' => 'la_title_In-Link', + 'label' => 'la_title_In-Link', - 'use_parent_header' => 1, + 'use_parent_header' => 1, - 'url' => Array ('t' => 'index', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'index', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view'), + 'permissions' => Array ('view'), - 'priority' => 3.3, + 'priority' => 3.3, - 'container' => true, + 'container' => true, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - /*'in-link:inlink_general' => Array ( + /*'in-link:inlink_general' => Array ( - 'parent' => 'in-link:setting_folder', + 'parent' => 'in-link:setting_folder', - 'icon' => 'core:settings_general', + 'icon' => 'core:settings_general', - 'label' => 'la_tab_GeneralSettings', + 'label' => 'la_tab_GeneralSettings', - 'url' => Array ('t' => 'config/config_general', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'config/config_general', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit'), + 'permissions' => Array ('view', 'add', 'edit'), - 'priority' => 0.9, + 'priority' => 0.9, - 'type' => stTREE, + 'type' => stTREE, - ),*/ + ),*/ - 'in-link:configuration_output' => Array ( + 'in-link:configuration_output' => Array ( - 'parent' => 'in-link:setting_folder', + 'parent' => 'in-link:setting_folder', - 'icon' => 'core:conf_output', + 'icon' => 'core:conf_output', - 'label' => 'la_tab_ConfigOutput', + 'label' => 'la_tab_ConfigOutput', - 'url' => Array ('t' => 'config/config_general', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'config/config_general', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit'), + 'permissions' => Array ('view', 'add', 'edit'), - 'priority' => 1, + 'priority' => 1, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'in-link:configuration_search' => Array ( + 'in-link:configuration_search' => Array ( - 'parent' => 'in-link:setting_folder', + 'parent' => 'in-link:setting_folder', - 'icon' => 'core:conf_search', + 'icon' => 'core:conf_search', - 'label' => 'la_tab_ConfigSearch', + 'label' => 'la_tab_ConfigSearch', - 'url' => Array ('t' => 'config/config_search', 'module_key' => 'links', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'config/config_search', 'module_key' => 'links', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view', 'edit'), + 'permissions' => Array ('view', 'edit'), - 'priority' => 2, + 'priority' => 2, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'in-link:configuration_custom' => Array ( + 'in-link:configuration_custom' => Array ( - 'parent' => 'in-link:setting_folder', + 'parent' => 'in-link:setting_folder', - 'icon' => 'core:conf_customfields', + 'icon' => 'core:conf_customfields', - 'label' => 'la_tab_ConfigCustom', + 'label' => 'la_tab_ConfigCustom', - 'url' => Array ('t' => 'custom_fields/custom_fields_list', 'cf_type' => 4, 'pass_section' => true, 'pass' => 'm,cf'), + 'url' => Array ('t' => 'custom_fields/custom_fields_list', 'cf_type' => 4, 'pass_section' => true, 'pass' => 'm,cf'), - 'permissions' => Array ('view', 'add', 'edit', 'delete'), + 'permissions' => Array ('view', 'add', 'edit', 'delete'), - 'priority' => 3, + 'priority' => 3, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - 'FilterMenu' => Array ( + 'FilterMenu' => Array ( - 'Groups' => Array ( - Array ('mode' => 'AND', 'filters' => Array ('show_new'), 'type' => kDBList::HAVING_FILTER), - Array ('mode' => 'AND', 'filters' => Array ('show_hot'), 'type' => kDBList::HAVING_FILTER), - Array ('mode' => 'AND', 'filters' => Array ('show_pop'), 'type' => kDBList::HAVING_FILTER), - Array ('mode' => 'AND', 'filters' => Array ('show_pick'), 'type' => kDBList::WHERE_FILTER), - ), - 'Filters' => Array ( + 'Groups' => Array ( + Array ('mode' => 'AND', 'filters' => Array ('show_new'), 'type' => kDBList::HAVING_FILTER), + Array ('mode' => 'AND', 'filters' => Array ('show_hot'), 'type' => kDBList::HAVING_FILTER), + Array ('mode' => 'AND', 'filters' => Array ('show_pop'), 'type' => kDBList::HAVING_FILTER), + Array ('mode' => 'AND', 'filters' => Array ('show_pick'), 'type' => kDBList::WHERE_FILTER), + ), + 'Filters' => Array ( - 'show_new' => Array ('label' => 'la_Text_New', 'on_sql' => '', 'off_sql' => '`IsNew` != 1' ), + 'show_new' => Array ('label' => 'la_Text_New', 'on_sql' => '', 'off_sql' => '`IsNew` != 1' ), - 'show_hot' => Array ('label' => 'la_Text_Hot', 'on_sql' => '', 'off_sql' => '`IsHot` != 1' ), + 'show_hot' => Array ('label' => 'la_Text_Hot', 'on_sql' => '', 'off_sql' => '`IsHot` != 1' ), - 'show_pop' => Array ('label' => 'la_Text_Pop', 'on_sql' => '', 'off_sql' => '`IsPop` != 1' ), + 'show_pop' => Array ('label' => 'la_Text_Pop', 'on_sql' => '', 'off_sql' => '`IsPop` != 1' ), - 'show_pick' => Array ('label' => 'la_prompt_EditorsPick', 'on_sql' => '', 'off_sql' => '%1$s.`EditorsPick` != 1' ), + 'show_pick' => Array ('label' => 'la_prompt_EditorsPick', 'on_sql' => '', 'off_sql' => '%1$s.`EditorsPick` != 1' ), - ), - ), + ), + ), - 'TableName' => TABLE_PREFIX.'Link', + 'TableName' => TABLE_PREFIX.'Link', - 'CustomDataTableName' => TABLE_PREFIX . 'LinkCustomData', + 'CustomDataTableName' => TABLE_PREFIX . 'LinkCustomData', - 'CalculatedFields' => Array ( - '' => Array ( - 'UserName' => 'IF (ISNULL(u.Username), IF (%1$s.CreatedById = ' . USER_ROOT . ', "root", IF (%1$s.CreatedById = ' . USER_GUEST . ', "Guest", "n/a")), u.Username)', - 'CategoryId' => TABLE_PREFIX.'%3$sCategoryItems.CategoryId', - 'Filename' => TABLE_PREFIX.'%3$sCategoryItems.Filename', - 'CategoryFilename' => TABLE_PREFIX.'Categories.NamedParentPath', + 'CalculatedFields' => Array ( + '' => Array ( + 'UserName' => 'IF (ISNULL(u.Username), IF (%1$s.CreatedById = ' . USER_ROOT . ', "root", IF (%1$s.CreatedById = ' . USER_GUEST . ', "Guest", "n/a")), u.Username)', + 'CategoryId' => TABLE_PREFIX.'%3$sCategoryItems.CategoryId', + 'Filename' => TABLE_PREFIX.'%3$sCategoryItems.Filename', + 'CategoryFilename' => TABLE_PREFIX.'Categories.NamedParentPath', - 'PrimaryCat' => TABLE_PREFIX.'%3$sCategoryItems.PrimaryCat', + 'PrimaryCat' => TABLE_PREFIX.'%3$sCategoryItems.PrimaryCat', - 'ParentPath' => TABLE_PREFIX.'Categories.ParentPath', + 'ParentPath' => TABLE_PREFIX.'Categories.ParentPath', - 'AltName' => 'img.AltName', + 'AltName' => 'img.AltName', - 'SameImages' => 'img.SameImages', + 'SameImages' => 'img.SameImages', - 'LocalThumb' => 'img.LocalThumb', + 'LocalThumb' => 'img.LocalThumb', - 'ThumbPath' => 'img.ThumbPath', + 'ThumbPath' => 'img.ThumbPath', - 'ThumbUrl' => 'img.ThumbUrl', + 'ThumbUrl' => 'img.ThumbUrl', - 'LocalImage' => 'img.LocalImage', + 'LocalImage' => 'img.LocalImage', - 'LocalPath' => 'img.LocalPath', + 'LocalPath' => 'img.LocalPath', - 'FullUrl' => 'img.Url', + 'FullUrl' => 'img.Url', - ), - ), + ), + ), - 'CacheModRewrite' => true, + 'CacheModRewrite' => true, - 'AggregatedCalculatedFields' => Array ( + 'AggregatedCalculatedFields' => Array ( - - 'duplicates' => Array ( + 'duplicates' => Array ( - 'DupeCount' => 'COUNT(*)', + 'DupeCount' => 'COUNT(*)', - ), - ), + ), + ), - 'ListSQLs' => Array ( '' => ' SELECT %1$s.* %2$s + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId - LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId - LEFT JOIN '.TABLE_PREFIX.'%3$sCatalogImages img ON img.ResourceId = %1$s.ResourceId AND img.DefaultImg = 1 - LEFT JOIN '.TABLE_PREFIX.'CategoryPermissionsCache perm ON perm.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId - LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.CreatedById = u.PortalUserId - LEFT JOIN '.TABLE_PREFIX.'%3$sLinkCustomData cust ON %1$s.ResourceId = cust.ResourceId', + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId + LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId + LEFT JOIN '.TABLE_PREFIX.'%3$sCatalogImages img ON img.ResourceId = %1$s.ResourceId AND img.DefaultImg = 1 + LEFT JOIN '.TABLE_PREFIX.'CategoryPermissionsCache perm ON perm.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId + LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.CreatedById = u.PortalUserId + LEFT JOIN '.TABLE_PREFIX.'%3$sLinkCustomData cust ON %1$s.ResourceId = cust.ResourceId', + ), - ), // key - special, value - list select sql - - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( - 'ForcedSorting' => Array ('EditorsPick' => 'desc', 'Priority' => 'desc'), - 'Sorting' => Array ('Name' => 'asc', 'Description' => 'desc'), - ) - ), + '' => Array ( + 'ForcedSorting' => Array ('EditorsPick' => 'desc', 'Priority' => 'desc'), + 'Sorting' => Array ('Name' => 'asc', 'Description' => 'desc'), + ) + ), - 'ItemSQLs' => Array ( '' => ' SELECT %1$s.* %2$s + + 'ItemSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId - LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId - LEFT JOIN '.TABLE_PREFIX.'%3$sCatalogImages img ON img.ResourceId = %1$s.ResourceId AND img.DefaultImg = 1 - LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.CreatedById = u.PortalUserId + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId + LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId + LEFT JOIN '.TABLE_PREFIX.'%3$sCatalogImages img ON img.ResourceId = %1$s.ResourceId AND img.DefaultImg = 1 + LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.CreatedById = u.PortalUserId - LEFT JOIN '.TABLE_PREFIX.'%3$sLinkCustomData cust ON %1$s.ResourceId = cust.ResourceId'), + LEFT JOIN '.TABLE_PREFIX.'%3$sLinkCustomData cust ON %1$s.ResourceId = cust.ResourceId' + ), - 'SubItems' => Array ('l-rev', 'l-ci', 'l-rel', 'l-img', 'l-cdata', 'l-fav', 'l-file'), + 'SubItems' => Array ('l-rev', 'l-ci', 'l-rel', 'l-img', 'l-cdata', 'l-fav', 'l-file'), - 'Fields' => Array ( + 'Fields' => Array ( - 'LinkId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'LinkId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'Name' => Array ('type' => 'string', 'formatter' => 'kMultiLanguage', 'not_null' => 1, 'required' => 1, 'max_len' => 255, 'default' => ''), + 'Name' => Array ('type' => 'string', 'formatter' => 'kMultiLanguage', 'not_null' => 1, 'required' => 1, 'max_len' => 255, 'default' => ''), - 'AutomaticFilename' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 1), + 'AutomaticFilename' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 1), - 'Description' => Array ('type' => 'string', 'formatter' => 'kMultiLanguage', 'using_fck' => 1, 'default' => null), + 'Description' => Array ('type' => 'string', 'formatter' => 'kMultiLanguage', 'using_fck' => 1, 'default' => null), - 'Url' => Array ('type' => 'string', 'not_null' => 1, 'required' => 1, 'default' => ''), + 'Url' => Array ('type' => 'string', 'not_null' => 1, 'required' => 1, 'default' => ''), - 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'Modified' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + 'Modified' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'Expire' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null), + 'Expire' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null), - 'Hits' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%d', 'not_null' => 1, 'default' => 0), + 'Hits' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%d', 'not_null' => 1, 'default' => 0), - 'CachedRating' => Array ('type' => 'string', 'not_null' => 1, 'formatter' => 'kFormatter', 'default' => 0), + 'CachedRating' => Array ('type' => 'string', 'not_null' => 1, 'formatter' => 'kFormatter', 'default' => 0), - 'CachedVotesQty' => Array ('type' => 'int', 'formatter' => 'kFormatter', 'not_null' => 1, 'default' => 0), + 'CachedVotesQty' => Array ('type' => 'int', 'formatter' => 'kFormatter', 'not_null' => 1, 'default' => 0), - 'CachedReviewsQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'CachedReviewsQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'CreatedById' => Array ( - 'type' => 'int', - 'formatter' => 'kLEFTFormatter', - 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), - 'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users - WHERE `%s` = \'%s\'', - 'left_key_field' => 'PortalUserId', - 'left_title_field' => 'Username', - 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), - 'sample_value' => 'Guest', 'required' => 1, 'default' => NULL, - ), + 'CreatedById' => Array ( + 'type' => 'int', + 'formatter' => 'kLEFTFormatter', + 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), + 'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users + WHERE `%s` = \'%s\'', + 'left_key_field' => 'PortalUserId', + 'left_title_field' => 'Username', + 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), + 'sample_value' => 'Guest', 'required' => 1, 'default' => NULL, + ), - 'ModifiedById' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Username', 'default' => NULL), + 'ModifiedById' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Username', 'default' => NULL), - 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Status' => Array ( + 'Status' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 2, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 2, + ), - 'EditorsPick' => Array ( + 'EditorsPick' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), - 'ResourceId' => Array ('type' => 'int', 'default' => null), + 'ResourceId' => Array ('type' => 'int', 'default' => null), - 'HotItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2), + 'HotItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2), - 'PopItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2), + 'PopItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2), - 'NewItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2), + 'NewItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2), - 'OrgId' => Array ('type' => 'int', 'default' => null), + 'OrgId' => Array ('type' => 'int', 'default' => null), - 'CustomTemplate' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'CustomTemplate' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'MetaKeywords' => Array ('type' => 'string', 'default' => null), + 'MetaKeywords' => Array ('type' => 'string', 'default' => null), - 'MetaDescription' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => null), + 'MetaDescription' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => null), - 'ReciprocalLinkFound' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_NotChecked', 1 => 'la_Yes', 2 => 'la_No'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0 - ), - ), + 'ReciprocalLinkFound' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_NotChecked', 1 => 'la_Yes', 2 => 'la_No'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0 + ), + ), - 'VirtualFields' => Array ( + 'VirtualFields' => Array ( - 'Relevance' => Array ('type' => 'float', 'default' => 0), + 'Relevance' => Array ('type' => 'float', 'default' => 0), - 'UserName' => Array ('type' => 'string', 'default' => ''), + 'UserName' => Array ('type' => 'string', 'default' => ''), - 'DupeCount' => Array ('type' => 'string', 'default' => ''), + 'DupeCount' => Array ('type' => 'string', 'default' => ''), - 'ListingTypeId' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options_sql' => 'SELECT %1$s FROM '.TABLE_PREFIX.'ListingTypes ORDER BY Name', 'option_title_field' => 'Name', 'option_key_field' => 'ListingTypeId', 'default' => 0), + 'ListingTypeId' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options_sql' => 'SELECT %1$s FROM '.TABLE_PREFIX.'ListingTypes ORDER BY Name', 'option_title_field' => 'Name', 'option_key_field' => 'ListingTypeId', 'default' => 0), - 'MoreCategories' => Array ('type' => 'string', 'default' => ''), + 'MoreCategories' => Array ('type' => 'string', 'default' => ''), - // export related fields: begin + // export related fields: begin - 'CategoryId' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => 0), + 'CategoryId' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => 0), - 'ExportFormat' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'CSV', /*2 => 'XML'*/), 'default' => 1), + 'ExportFormat' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'CSV', /*2 => 'XML'*/), 'default' => 1), - 'ExportFilename' => Array ('type' => 'string', 'default' => ''), + 'ExportFilename' => Array ('type' => 'string', 'default' => ''), - 'FieldsSeparatedBy' => Array ('type' => 'string', 'default' => ','), + 'FieldsSeparatedBy' => Array ('type' => 'string', 'default' => ', '), - 'FieldsEnclosedBy' => Array ('type' => 'string', 'default' => '"'), + 'FieldsEnclosedBy' => Array ('type' => 'string', 'default' => '"'), - 'LineEndings' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'Windows', 2 => 'UNIX'), 'default' => 1), + 'LineEndings' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'Windows', 2 => 'UNIX'), 'default' => 1), - 'LineEndingsInside' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'CRLF', 2 => 'LF'), 'default' => 2), + 'LineEndingsInside' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'CRLF', 2 => 'LF'), 'default' => 2), - 'IncludeFieldTitles' => Array ( + 'IncludeFieldTitles' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), - 'use_phrases' => 1, 'default' => 1, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), + 'use_phrases' => 1, 'default' => 1, + ), - 'ExportColumns' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => ''), + 'ExportColumns' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => ''), - 'AvailableColumns' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => ''), + 'AvailableColumns' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => ''), - 'CategoryFormat' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_MixedCategoryPath', 2 => 'la_SeparatedCategoryPath'), 'use_phrases' => 1, 'default' => 1), + 'CategoryFormat' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_MixedCategoryPath', 2 => 'la_SeparatedCategoryPath'), 'use_phrases' => 1, 'default' => 1), - 'CategorySeparator' => Array ('type' => 'string', 'error_field' => 'CategoryFormat', 'default' => ':'), + 'CategorySeparator' => Array ('type' => 'string', 'error_field' => 'CategoryFormat', 'default' => ':'), - 'IsBaseCategory' => Array ( + 'IsBaseCategory' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), - 'use_phrases' => 1, 'default' => 0, - ), - // export related fields: end + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), + 'use_phrases' => 1, 'default' => 0, + ), + // export related fields: end - // import related fields: begin + // import related fields: begin - 'FieldTitles' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Automatic', 2 => 'la_Manual'), 'use_phrases' => 1, 'default' => 1), + 'FieldTitles' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Automatic', 2 => 'la_Manual'), 'use_phrases' => 1, 'default' => 1), - 'ImportSource' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Upload', 2 => 'la_Local'), 'use_phrases' => 1, 'default' => 2), + 'ImportSource' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Upload', 2 => 'la_Local'), 'use_phrases' => 1, 'default' => 2), - 'ImportFilename' => Array ('type' => 'string', 'formatter' => 'kUploadFormatter', 'max_size' => MAX_UPLOAD_SIZE, 'upload_dir' => EXPORT_BASE_PATH . '/', 'default' => ''), + 'ImportFilename' => Array ('type' => 'string', 'formatter' => 'kUploadFormatter', 'max_size' => MAX_UPLOAD_SIZE, 'upload_dir' => EXPORT_BASE_PATH . '/', 'default' => ''), - 'ImportLocalFilename' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'default' => ''), + 'ImportLocalFilename' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'default' => ''), - 'CheckDuplicatesMethod' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_IDField', 2 => 'la_OtherFields'), 'use_phrases' => 1, 'default' => 1), + 'CheckDuplicatesMethod' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_IDField', 2 => 'la_OtherFields'), 'use_phrases' => 1, 'default' => 1), - 'ReplaceDuplicates' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, 'default' => 0), + 'ReplaceDuplicates' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, 'default' => 0), - 'DuplicateCheckFields' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array ('Name' => 'NAME', 'Url' => 'URL'), 'default' => '|Name|Url|'), + 'DuplicateCheckFields' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array ('Name' => 'NAME', 'Url' => 'URL'), 'default' => '|Name|Url|'), - 'SkipFirstRow' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 1), + 'SkipFirstRow' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 1), - // import related fields: end + // import related fields: end - 'ThumbnailImage' => Array ('type' => 'string', 'default' => ''), + 'ThumbnailImage' => Array ('type' => 'string', 'default' => ''), - 'FullImage' => Array ('type' => 'string', 'default' => ''), + 'FullImage' => Array ('type' => 'string', 'default' => ''), - 'ImageAlt' => Array ('type' => 'string', 'default' => ''), + 'ImageAlt' => Array ('type' => 'string', 'default' => ''), - 'Filename' => Array ('type' => 'string', 'default' => ''), + 'Filename' => Array ('type' => 'string', 'default' => ''), - 'CategoryFilename' => Array ('type' => 'string', 'default' => ''), + 'CategoryFilename' => Array ('type' => 'string', 'default' => ''), - 'PrimaryCat' => Array ('type' => 'int', 'default' => 0), + 'PrimaryCat' => Array ('type' => 'int', 'default' => 0), - 'IsHot' => Array ('type' => 'int', 'default' => 0), + 'IsHot' => Array ('type' => 'int', 'default' => 0), - 'IsNew' => Array ('type' => 'int', 'default' => 0), + 'IsNew' => Array ('type' => 'int', 'default' => 0), - 'IsPop' => Array ('type' => 'int', 'default' => 0), + 'IsPop' => Array ('type' => 'int', 'default' => 0), - 'CachedNavbar' => Array ('type' => 'string', 'default' => ''), + 'CachedNavbar' => Array ('type' => 'string', 'default' => ''), - 'ParentPath' => Array ('type' => 'string', 'default' => ''), + 'ParentPath' => Array ('type' => 'string', 'default' => ''), - // for primary image + // for primary image - 'AltName' => Array ('type' => 'string', 'default' => ''), + 'AltName' => Array ('type' => 'string', 'default' => ''), - 'SameImages' => Array ('type' => 'string', 'default' => ''), + 'SameImages' => Array ('type' => 'string', 'default' => ''), - 'LocalThumb' => Array ('type' => 'string', 'default' => ''), + 'LocalThumb' => Array ('type' => 'string', 'default' => ''), - 'ThumbPath' => Array ('type' => 'string', 'default' => ''), + 'ThumbPath' => Array ('type' => 'string', 'default' => ''), - 'ThumbUrl' => Array ('type' => 'string', 'default' => ''), + 'ThumbUrl' => Array ('type' => 'string', 'default' => ''), - 'LocalImage' => Array ('type' => 'string', 'default' => ''), + 'LocalImage' => Array ('type' => 'string', 'default' => ''), - 'LocalPath' => Array ('type' => 'string', 'default' => ''), + 'LocalPath' => Array ('type' => 'string', 'default' => ''), - 'FullUrl' => Array ('type' => 'string', 'default' => ''), + 'FullUrl' => Array ('type' => 'string', 'default' => ''), - ), + ), - 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 0 => 'icon16_link_disabled.png', - 1 => 'icon16_link.png', - 2 => 'icon16_link_pending.png', - 'NEW' => 'icon16_link_new.png', - ), - 'Fields' => Array ( - 'LinkId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'Name' => Array ('title' => 'column:la_fld_LinkName', 'data_block' => 'grid_catitem_td', 'width' => 200, ), + 'Grids' => Array ( + 'Default' => Array ( + 'Icons' => Array ( + 0 => 'icon16_link_disabled.png', + 1 => 'icon16_link.png', + 2 => 'icon16_link_pending.png', + 'NEW' => 'icon16_link_new.png', + ), + 'Fields' => Array ( + 'LinkId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'Name' => Array ('title' => 'column:la_fld_LinkName', 'data_block' => 'grid_catitem_td', 'width' => 200, ), - 'Priority' => Array('filter_block' => 'grid_range_filter', 'width' => 65), + 'Priority' => Array ('filter_block' => 'grid_range_filter', 'width' => 65), - 'Url' => Array ('title' => 'la_col_LinkUrl', 'width' => 200, ), - 'Description' => Array ('first_chars' => 100, 'width' => 100, ), - 'CreatedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), - 'Modified' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), - 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 70, ), - 'Hits' => Array ('filter_block' => 'grid_range_filter', 'width' => 60, ), - 'CachedRating' => Array ('title' => 'column:la_fld_Rating', 'filter_block' => 'grid_range_filter', 'width' => 70, ), - 'CachedVotesQty' => Array ('title' => 'la_col_VoteCount', 'filter_block' => 'grid_range_filter', 'width' => 70, ), - 'CachedReviewsQty' => Array ('title' => 'la_col_ReviewCount', 'filter_block' => 'grid_range_filter', 'width' => 85, ), - ), - ), + 'Url' => Array ('title' => 'la_col_LinkUrl', 'width' => 200, ), + 'Description' => Array ('first_chars' => 100, 'width' => 100, ), + 'CreatedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), + 'Modified' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), + 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 70, ), + 'Hits' => Array ('filter_block' => 'grid_range_filter', 'width' => 60, ), + 'CachedRating' => Array ('title' => 'column:la_fld_Rating', 'filter_block' => 'grid_range_filter', 'width' => 70, ), + 'CachedVotesQty' => Array ('title' => 'la_col_VoteCount', 'filter_block' => 'grid_range_filter', 'width' => 70, ), + 'CachedReviewsQty' => Array ('title' => 'la_col_ReviewCount', 'filter_block' => 'grid_range_filter', 'width' => 85, ), + ), + ), - 'Radio' => Array ( - 'Icons' => Array ( - 0 => 'icon16_link_disabled.png', - 1 => 'icon16_link.png', - 2 => 'icon16_link_pending.png', - 'NEW' => 'icon16_link_new.png', - ), - 'Selector' => 'radio', - 'Fields' => Array ( - 'LinkId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_radio_td', 'filter_block' => 'grid_range_filter', 'width' => 70, ), - 'Name' => Array ('title' => 'column:la_fld_LinkName', 'data_block' => 'grid_catitem_td', 'width' => 200, ), + 'Radio' => Array ( + 'Icons' => Array ( + 0 => 'icon16_link_disabled.png', + 1 => 'icon16_link.png', + 2 => 'icon16_link_pending.png', + 'NEW' => 'icon16_link_new.png', + ), + 'Selector' => 'radio', + 'Fields' => Array ( + 'LinkId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_radio_td', 'filter_block' => 'grid_range_filter', 'width' => 70, ), + 'Name' => Array ('title' => 'column:la_fld_LinkName', 'data_block' => 'grid_catitem_td', 'width' => 200, ), - 'Priority' => Array('filter_block' => 'grid_range_filter', 'width' => 65), + 'Priority' => Array ('filter_block' => 'grid_range_filter', 'width' => 65), - 'Url' => Array ('title' => 'la_col_LinkUrl', 'width' => 200, ), - 'Description' => Array ('first_chars' => 100, 'width' => 100, ), - 'CreatedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), - 'Modified' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), - 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 70, ), - 'Hits' => Array ('filter_block' => 'grid_range_filter', 'width' => 60, ), - 'CachedRating' => Array ('title' => 'column:la_fld_Rating', 'filter_block' => 'grid_range_filter', 'width' => 70, ), - 'CachedVotesQty' => Array ('title' => 'la_col_VoteCount', 'filter_block' => 'grid_range_filter', 'width' => 70, ), - 'CachedReviewsQty' => Array ('title' => 'la_col_ReviewCount', 'filter_block' => 'grid_range_filter', 'width' => 85, ), - ), - ), + 'Url' => Array ('title' => 'la_col_LinkUrl', 'width' => 200, ), + 'Description' => Array ('first_chars' => 100, 'width' => 100, ), + 'CreatedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), + 'Modified' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), + 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 70, ), + 'Hits' => Array ('filter_block' => 'grid_range_filter', 'width' => 60, ), + 'CachedRating' => Array ('title' => 'column:la_fld_Rating', 'filter_block' => 'grid_range_filter', 'width' => 70, ), + 'CachedVotesQty' => Array ('title' => 'la_col_VoteCount', 'filter_block' => 'grid_range_filter', 'width' => 70, ), + 'CachedReviewsQty' => Array ('title' => 'la_col_ReviewCount', 'filter_block' => 'grid_range_filter', 'width' => 85, ), + ), + ), - 'Duplicates' => Array ( - 'Icons' => Array ( - 0 => 'icon16_link_disabled.png', - 1 => 'icon16_link.png', - 2 => 'icon16_link_pending.png', - 'NEW' => 'icon16_link_new.png', - ), + 'Duplicates' => Array ( + 'Icons' => Array ( + 0 => 'icon16_link_disabled.png', + 1 => 'icon16_link.png', + 2 => 'icon16_link_pending.png', + 'NEW' => 'icon16_link_new.png', + ), - 'Fields' => Array ( - 'Name' => Array ('title' => 'column:la_fld_LinkName', 'filter_block' => 'grid_like_filter', 'width' => 250, ), - 'Url' => Array ('title' => 'la_col_LinkUrl', 'filter_block' => 'grid_like_filter', 'width' => 300, ), - 'DupeCount' => Array ('title' => 'la_col_DupeCount', 'filter_block' => 'grid_range_filter', 'width' => 100, ), - ), - ), - ), + 'Fields' => Array ( + 'Name' => Array ('title' => 'column:la_fld_LinkName', 'filter_block' => 'grid_like_filter', 'width' => 250, ), + 'Url' => Array ('title' => 'la_col_LinkUrl', 'filter_block' => 'grid_like_filter', 'width' => 300, ), + 'DupeCount' => Array ('title' => 'la_col_DupeCount', 'filter_block' => 'grid_range_filter', 'width' => 100, ), + ), + ), + ), - 'ConfigMapping' => Array ( + 'ConfigMapping' => Array ( - 'PerPage' => 'Perpage_Links', + 'PerPage' => 'Perpage_Links', - 'ShortListPerPage' => 'Perpage_Links_Short', + 'ShortListPerPage' => 'Perpage_Links_Short', - 'ForceEditorPick' => 'Link_ShowPick', + 'ForceEditorPick' => 'Link_ShowPick', - 'DefaultSorting1Field' => 'Link_SortField', + 'DefaultSorting1Field' => 'Link_SortField', - 'DefaultSorting2Field' => 'Link_SortField2', + 'DefaultSorting2Field' => 'Link_SortField2', - 'DefaultSorting1Dir' => 'Link_SortOrder', + 'DefaultSorting1Dir' => 'Link_SortOrder', - 'DefaultSorting2Dir' => 'Link_SortOrder2', + 'DefaultSorting2Dir' => 'Link_SortOrder2', - 'RatingDelayValue' => 'link_RatingDelay_Value', + 'RatingDelayValue' => 'link_RatingDelay_Value', - 'RatingDelayInterval' => 'link_RatingDelay_Interval', + 'RatingDelayInterval' => 'link_RatingDelay_Interval', - - ), - ); \ No newline at end of file + ), +); \ No newline at end of file Index: modules/in-commerce/units/destinations/destinations_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/destinations/destinations_config.php (revision 15601) +++ modules/in-commerce/units/destinations/destinations_config.php (revision ) @@ -13,48 +13,52 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'dst', + 'Prefix' => 'dst', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'images.php','build_event'=>'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => 'images.php', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'DstEventHandler','file'=>'dst_event_handler.php','build_event'=>'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'DstEventHandler', 'file' => 'dst_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class'=>'kDBTagProcessor','file'=>'','build_event'=>'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, + - 'Hooks' => Array( + 'Hooks' => Array ( - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '', + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '', - 'HookToEvent' => Array( 'OnCreate', 'OnUpdate'), + 'HookToEvent' => Array ( 'OnCreate', 'OnUpdate'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnZoneUpdate', - ), - ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnZoneUpdate', + ), + ), + - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), + - 'IDField' => 'ZoneDestId', + 'IDField' => 'ZoneDestId', - 'TableName' => TABLE_PREFIX.'ShippingZonesDestinations', + 'TableName' => TABLE_PREFIX.'ShippingZonesDestinations', - 'ForeignKey' => 'ShippingZoneId', + 'ForeignKey' => 'ShippingZoneId', - 'ParentTableKey' => 'ZoneID', + 'ParentTableKey' => 'ZoneID', - 'ParentPrefix' => 'z', + 'ParentPrefix' => 'z', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - 'ListSQLs' => Array( ''=>'SELECT * FROM %s', - ), // key - special, value - list select sql - 'ItemSQLs' => Array( ''=>'SELECT * FROM %s', + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s', - ), + ), - 'Fields' => Array ( + 'Fields' => Array ( - 'ZoneDestId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0, ), + 'ZoneDestId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), - 'ShippingZoneId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0, ), + 'ShippingZoneId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), - 'StdDestId' => Array('type' => 'int', 'default' => 0, ), + 'StdDestId' => Array ('type' => 'int', 'default' => 0, ), - 'DestValue' => Array('type' => 'string', 'max_len' => 255, 'default' => null, ), + 'DestValue' => Array ('type' => 'string', 'max_len' => 255, 'default' => null, ), - ), - ); \ No newline at end of file + ), +); \ No newline at end of file Index: modules/in-commerce/units/affiliate_payments/affiliate_payments_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/affiliate_payments/affiliate_payments_config.php (revision 15601) +++ modules/in-commerce/units/affiliate_payments/affiliate_payments_config.php (revision ) @@ -13,142 +13,139 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'apayments', + 'Prefix' => 'apayments', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'AffiliatePaymentsEventHandler','file'=>'affiliate_payments_event_handler.php','build_event'=>'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'AffiliatePaymentsEventHandler', 'file' => 'affiliate_payments_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class'=>'AffiliatePaymentsTagProcessor','file'=>'affiliate_payments_tag_processor.php','build_event'=>'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'AffiliatePaymentsTagProcessor', 'file' => 'affiliate_payments_tag_processor.php', 'build_event' => 'OnBuild'), - 'AutoLoad' => true, + 'AutoLoad' => true, - 'AggregateTags' => Array( + 'AggregateTags' => Array ( - Array( + Array ( - 'AggregateTo' => 'ord', - 'AggregatedTagName' => 'InitPaymentsList', - 'LocalTagName' => 'InitList', - ), + 'AggregateTo' => 'ord', + 'AggregatedTagName' => 'InitPaymentsList', + 'LocalTagName' => 'InitList', + ), - Array( + Array ( - 'AggregateTo' => 'ord', - 'AggregatedTagName' => 'ListPayments', - 'LocalTagName' => 'ListPayments', - ), + 'AggregateTo' => 'ord', + 'AggregatedTagName' => 'ListPayments', + 'LocalTagName' => 'ListPayments', + ), - Array( + Array ( - 'AggregateTo' => 'ord', - 'AggregatedTagName' => 'PaymentsPaginationBar', - 'LocalTagName' => 'PaginationBar', - ), + 'AggregateTo' => 'ord', + 'AggregatedTagName' => 'PaymentsPaginationBar', + 'LocalTagName' => 'PaginationBar', + ), - Array( + Array ( - 'AggregateTo' => 'ord', - 'AggregatedTagName' => 'PaymentsCount', - 'LocalTagName' => 'TotalRecords', - ), - ), + 'AggregateTo' => 'ord', + 'AggregatedTagName' => 'PaymentsCount', + 'LocalTagName' => 'TotalRecords', + ), + ), + - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), - 'IDField' => 'AffiliatePaymentId', + 'IDField' => 'AffiliatePaymentId', - 'TitlePresets' => Array ( - 'payments_log' => Array ( - 'prefixes' => Array ('apayments.log_List'), 'format' => "!la_title_AffiliatePayments!", - ), - ), + 'TitlePresets' => Array ( + 'payments_log' => Array ( + 'prefixes' => Array ('apayments.log_List'), 'format' => "!la_title_AffiliatePayments!", + ), + ), - 'Sections' => Array( + 'Sections' => Array ( - 'in-commerce:paymentlog' => Array( + 'in-commerce:paymentlog' => Array ( - 'parent' => 'in-commerce', + 'parent' => 'in-commerce', - 'icon' => 'transactions', + 'icon' => 'transactions', - 'label' => 'la_tab_PaymentLog', + 'label' => 'la_tab_PaymentLog', - 'url' => Array('t' => 'in-commerce/payments/payments_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-commerce/payments/payments_list', 'pass' => 'm'), - 'permissions' => Array('view'), + 'permissions' => Array ('view'), - 'priority' => 6, + 'priority' => 6, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - 'TableName' => TABLE_PREFIX.'AffiliatePayments', + 'TableName' => TABLE_PREFIX.'AffiliatePayments', - 'ListSQLs' => Array(''=>' SELECT %1$s.* %2$s + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'Affiliates af ON %1$s.AffiliateId = af.AffiliateId + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'Affiliates af ON %1$s.AffiliateId = af.AffiliateId - LEFT JOIN '.TABLE_PREFIX.'Users au ON af.PortalUserId = au.PortalUserId'), + LEFT JOIN '.TABLE_PREFIX.'Users au ON af.PortalUserId = au.PortalUserId' + ), - 'ItemSQLs' => Array(''=>' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'Affiliates af ON %1$s.AffiliateId = af.AffiliateId - LEFT JOIN '.TABLE_PREFIX.'Users au ON af.PortalUserId = au.PortalUserId'), - - 'CalculatedFields' => Array( + 'CalculatedFields' => Array ( - '' => Array( + '' => Array ( - 'PortalUserId' => 'af.PortalUserId', + 'PortalUserId' => 'af.PortalUserId', - ), + ), - 'log' => Array( + 'log' => Array ( - 'Username' => 'au.Username', + 'Username' => 'au.Username', - 'PortalUserId' => 'af.PortalUserId', + 'PortalUserId' => 'af.PortalUserId', - ), - ), + ), + ), - 'ForeignKey' => 'AffiliateId', + 'ForeignKey' => 'AffiliateId', - 'ParentTableKey' => 'AffiliateId', + 'ParentTableKey' => 'AffiliateId', - 'ParentPrefix' => 'affil', + 'ParentPrefix' => 'affil', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - 'ListSortings' => Array( + 'ListSortings' => Array ( - '' => Array( + '' => Array ( - 'Sorting' => Array('PaymentDate' => 'desc'), + 'Sorting' => Array ('PaymentDate' => 'desc'), - ) - ), + ) + ), - 'Fields' => Array( + 'Fields' => Array ( - 'AffiliatePaymentId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'AffiliatePaymentId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'AffiliateId' => Array('type'=>'int','formatter'=>'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' => Array(0 => 'lu_None'), 'left_sql'=>'SELECT %s FROM '.TABLE_PREFIX.'Affiliates af LEFT JOIN '.TABLE_PREFIX.'Users pu ON pu.PortalUserId = af.PortalUserId WHERE `%s` = \'%s\'','left_key_field'=>'AffiliateId','left_title_field'=>'Username','not_null'=>1,'default'=>0), + 'AffiliateId' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' => Array (0 => 'lu_None'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Affiliates af LEFT JOIN '.TABLE_PREFIX.'Users pu ON pu.PortalUserId = af.PortalUserId WHERE `%s` = \'%s\'', 'left_key_field' => 'AffiliateId', 'left_title_field' => 'Username', 'not_null'=>1,'default'=>0), - 'PaymentDate' => Array('type' => 'int', 'formatter'=>'kDateFormatter', 'default' => '#NOW#'), + 'PaymentDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'Amount' => Array('type' => 'double', 'formatter'=>'kFormatter', 'format'=>'%.02f', 'not_null' => '1', 'required'=>1, 'default' => '0.00'), + 'Amount' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%.02f', 'not_null' => '1', 'required'=>1, 'default' => '0.00'), - 'Comment' => Array('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => NULL), + 'Comment' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => NULL), - 'PaymentReference' => Array('type' => 'string','not_null' => '1','default' => ''), + 'PaymentReference' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), - 'PaymentTypeId' => Array('type' => 'int', 'formatter'=>'kOptionsFormatter', 'options_sql'=>'SELECT Name, PaymentTypeId FROM '.TABLE_PREFIX.'AffiliatePaymentTypes WHERE Status = 1 ORDER BY IsPrimary DESC, Priority DESC, Name ASC', 'option_key_field'=>'PaymentTypeId', 'option_title_field'=>'Name', 'not_null' => 1, 'default' => 0), + 'PaymentTypeId' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options_sql' => 'SELECT Name, PaymentTypeId FROM '.TABLE_PREFIX.'AffiliatePaymentTypes WHERE Status = 1 ORDER BY IsPrimary DESC, Priority DESC, Name ASC', 'option_key_field' => 'PaymentTypeId', 'option_title_field' => 'Name', 'not_null' => 1, 'default' => 0), - ), + ), - 'VirtualFields' => Array( + 'VirtualFields' => Array ( - 'Username' => Array('type' => 'string', 'default' => ''), + 'Username' => Array ('type' => 'string', 'default' => ''), - 'PortalUserId' => Array('type' => 'int', 'default' => 0), + 'PortalUserId' => Array ('type' => 'int', 'default' => 0), - ), + ), - 'Grids' => Array( + 'Grids' => Array ( - 'Default' => Array( + 'Default' => Array ( - 'Icons' => Array( + 'Icons' => Array ( - 'default' => 'icon16_item.png', - 'module' => 'core', - ), + 'default' => 'icon16_item.png', + 'module' => 'core', + ), - 'Fields' => Array( + 'Fields' => Array ( - 'AffiliatePaymentId'=> Array( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'AffiliatePaymentId'=> Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'PaymentDate' => Array( 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), + 'PaymentDate' => Array ( 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), - 'Amount' => Array( 'filter_block' => 'grid_range_filter'), + 'Amount' => Array ( 'filter_block' => 'grid_range_filter'), - 'Comment' => Array( 'filter_block' => 'grid_like_filter', 'first_chars' => 50), + 'Comment' => Array ( 'filter_block' => 'grid_like_filter', 'first_chars' => 50), - 'PaymentTypeId' => Array( 'title' => 'column:la_fld_PaymentType', 'filter_block' => 'grid_options_filter'), + 'PaymentTypeId' => Array ( 'title' => 'column:la_fld_PaymentType', 'filter_block' => 'grid_options_filter'), - 'PaymentReference' => Array( 'filter_block' => 'grid_like_filter', 'first_chars' => 50), + 'PaymentReference' => Array ( 'filter_block' => 'grid_like_filter', 'first_chars' => 50), - ), - ), + ), + ), - 'Log' => Array( + 'Log' => Array ( - 'Icons' => Array( + 'Icons' => Array ( - 'default' => 'icon16_item.png', - 'module' => 'core', - ), + 'default' => 'icon16_item.png', + 'module' => 'core', + ), - 'Fields' => Array( + 'Fields' => Array ( - 'AffiliatePaymentId'=> Array( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'AffiliatePaymentId'=> Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'Username' => Array( 'data_block' => 'grid_userlink_td', 'filter_block' => 'grid_like_filter'), + 'Username' => Array ( 'data_block' => 'grid_userlink_td', 'filter_block' => 'grid_like_filter'), - 'PaymentDate' => Array( 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), + 'PaymentDate' => Array ( 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), - 'Amount' => Array( 'data_block' => 'grid_currency_td', 'filter_block' => 'grid_range_filter'), + 'Amount' => Array ( 'data_block' => 'grid_currency_td', 'filter_block' => 'grid_range_filter'), - 'Comment' => Array( 'filter_block' => 'grid_like_filter', 'first_chars' => 50), + 'Comment' => Array ( 'filter_block' => 'grid_like_filter', 'first_chars' => 50), - 'PaymentTypeId' => Array( 'title' => 'column:la_fld_PaymentType', 'filter_block' => 'grid_options_filter'), + 'PaymentTypeId' => Array ( 'title' => 'column:la_fld_PaymentType', 'filter_block' => 'grid_options_filter'), - 'PaymentReference' => Array( 'filter_block' => 'grid_like_filter', 'first_chars' => 50), + 'PaymentReference' => Array ( 'filter_block' => 'grid_like_filter', 'first_chars' => 50), - ), - ), + ), + ), - - ), - ); \ No newline at end of file + ), +); \ No newline at end of file Index: modules/in-commerce/units/addresses/addresses_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/addresses/addresses_config.php (revision 15601) +++ modules/in-commerce/units/addresses/addresses_config.php (revision ) @@ -13,146 +13,149 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'addr', + 'Prefix' => 'addr', - 'ItemClass' => Array('class'=>'AddressesItem','file'=>'addresses_item.php','build_event'=>'OnItemBuild'), + 'ItemClass' => Array ('class' => 'AddressesItem', 'file' => 'addresses_item.php', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class'=>'AddressesList','file'=>'addresses_list.php','build_event'=>'OnListBuild'), + 'ListClass' => Array ('class' => 'AddressesList', 'file' => 'addresses_list.php', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class' => 'AddressesEventHandler', 'file' => 'addresses_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'AddressesEventHandler', 'file' => 'addresses_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class' => 'AddressesTagProcessor', 'file' => 'addresses_tag_processor.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'AddressesTagProcessor', 'file' => 'addresses_tag_processor.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'Hooks' => Array( + 'Hooks' => Array ( - // create/update profile addres (in addresses table) + // create/update profile address (in addresses table) - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '*', + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnAfterItemCreate', 'OnAfterItemUpdate'), + 'HookToEvent' => Array ('OnAfterItemCreate', 'OnAfterItemUpdate'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnUpdateUserProfile', - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnUpdateUserProfile', + ), - - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => '', - 'HookToSpecial' => '*', + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => '', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnAfterItemCreate', 'OnAfterItemUpdate'), + 'HookToEvent' => Array ('OnAfterItemCreate', 'OnAfterItemUpdate'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnUpdateProfileAddress', - ), - Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnModifyUsersConfig', - ), - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnUpdateProfileAddress', + ), + Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnModifyUsersConfig', + ), + ), - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), - 'IDField' => 'AddressId', + 'IDField' => 'AddressId', - 'TableName' => TABLE_PREFIX.'Addresses', + 'TableName' => TABLE_PREFIX.'Addresses', - 'ParentTableKey'=> 'PortalUserId', // linked field in master table + 'ParentTableKey' => 'PortalUserId', // linked field in master table - 'ForeignKey' => 'PortalUserId', // linked field in subtable + 'ForeignKey' => 'PortalUserId', // linked field in sub-table - 'ParentPrefix' => 'u', + 'ParentPrefix' => 'u', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - 'CalculatedFields' => Array( + 'CalculatedFields' => Array ( - '' => Array( + '' => Array ( - 'ShortAddress' => 'CONCAT( TRIM(CONCAT(Address1," ",Address2)),", ",City," ...")', + 'ShortAddress' => 'CONCAT( TRIM(CONCAT(Address1," ",Address2)),", ",City," ...")', - ), - ), + ), + ), - 'ListSQLs' => Array('' => 'SELECT %1$s.* %2$s FROM %1$s'), // key - special, value - list select sql + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM %1$s' + ), - 'ItemSQLs' => Array( ''=>'SELECT * FROM %s'), + 'ListSortings' => Array ( + '' => Array ( + 'Sorting' => Array ('IsProfileAddress' => 'desc') + ) + ), - 'ListSortings' => Array('' => Array('Sorting' => Array('IsProfileAddress' => 'desc')) ), - - 'Fields' => Array( + 'Fields' => Array ( - 'AddressId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'AddressId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'PortalUserId' => Array('type' => 'int','not_null' => 1, 'default' => 0), + 'PortalUserId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'To' => Array('type' => 'string','not_null' => '1', 'required' => 1, 'default' => ''), + 'To' => Array ('type' => 'string', 'not_null' => '1', 'required' => 1, 'default' => ''), - 'Company' => Array('type' => 'string','not_null' => '1','default' => ''), + 'Company' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), - 'Phone' => Array('type' => 'string','not_null' => '1', 'required' => 1, 'default' => ''), + 'Phone' => Array ('type' => 'string', 'not_null' => '1', 'required' => 1, 'default' => ''), - 'Fax' => Array('type' => 'string','not_null' => '1','default' => ''), + 'Fax' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), - 'Email' => Array('type' => 'string','formatter'=>'kFormatter', 'regexp'=>'/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i','not_null' => '1','default' => ''), + 'Email' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'regexp' => '/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', 'not_null' => '1', 'default' => ''), - 'Address1' => Array('type' => 'string','not_null' => '1', 'required' => 1, 'default' => ''), + 'Address1' => Array ('type' => 'string', 'not_null' => '1', 'required' => 1, 'default' => ''), - 'Address2' => Array('type' => 'string','not_null' => '1','default' => ''), + 'Address2' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), - 'City' => Array('type' => 'string','not_null' => '1', 'required' => 1, 'default' => ''), + 'City' => Array ('type' => 'string', 'not_null' => '1', 'required' => 1, 'default' => ''), - 'State' => Array( + 'State' => Array ( - 'type' => 'string', + 'type' => 'string', - 'formatter' => 'kOptionsFormatter', 'options' => Array(), + 'formatter' => 'kOptionsFormatter', 'options' => Array (), - 'not_null' => '1', 'default' => '' - ), + 'not_null' => '1', 'default' => '' + ), - - 'Zip' => Array('type' => 'string','not_null' => '1', 'required' => 1, 'default' => ''), + 'Zip' => Array ('type' => 'string', 'not_null' => '1', 'required' => 1, 'default' => ''), - 'Country' => Array( + 'Country' => Array ( - 'type' => 'string', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => ' SELECT IF(l%2$s_Name = "", l%3$s_Name, l%2$s_Name) AS Name, IsoCode - FROM ' . TABLE_PREFIX . 'CountryStates - WHERE Type = ' . DESTINATION_TYPE_COUNTRY . ' - ORDER BY Name', - 'option_key_field' => 'IsoCode', 'option_title_field' => 'Name', - 'not_null' => '1', 'required' => 1, 'default' => '' - ), + 'type' => 'string', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => ' SELECT IF(l%2$s_Name = "", l%3$s_Name, l%2$s_Name) AS Name, IsoCode + FROM ' . TABLE_PREFIX . 'CountryStates + WHERE Type = ' . DESTINATION_TYPE_COUNTRY . ' + ORDER BY Name', + 'option_key_field' => 'IsoCode', 'option_title_field' => 'Name', + 'not_null' => '1', 'required' => 1, 'default' => '' + ), - - 'LastUsedAsBilling' => Array( + 'LastUsedAsBilling' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0 - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0 + ), - 'LastUsedAsShipping' => Array( + 'LastUsedAsShipping' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0 - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0 + ), - 'IsProfileAddress' => Array( + 'IsProfileAddress' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0 - ), - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0 + ), + ), - 'VirtualFields' => Array( + 'VirtualFields' => Array ( - 'ShortAddress' => Array('type'=>'string', 'default' => ''), + 'ShortAddress' => Array ('type' => 'string', 'default' => ''), - ), + ), - 'Grids' => Array( + 'Grids' => Array ( - 'Default' => Array( + 'Default' => Array ( - 'Fields' => Array( + 'Fields' => Array ( - 'AddressId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter'), + 'AddressId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter'), - 'To' => Array ('title' => 'column:la_fld_FullName', 'filter_block' => 'grid_like_filter'), + 'To' => Array ('title' => 'column:la_fld_FullName', 'filter_block' => 'grid_like_filter'), - 'Company' => Array ('filter_block' => 'grid_like_filter'), + 'Company' => Array ('filter_block' => 'grid_like_filter'), - 'Phone' => Array ('filter_block' => 'grid_like_filter'), + 'Phone' => Array ('filter_block' => 'grid_like_filter'), - 'Fax' => Array ('filter_block' => 'grid_like_filter'), + 'Fax' => Array ('filter_block' => 'grid_like_filter'), - 'Email' => Array ('filter_block' => 'grid_like_filter'), + 'Email' => Array ('filter_block' => 'grid_like_filter'), - 'Address1' => Array ('title' => 'column:la_fld_AddressLine1', 'filter_block' => 'grid_like_filter'), + 'Address1' => Array ('title' => 'column:la_fld_AddressLine1', 'filter_block' => 'grid_like_filter'), - 'Address2' => Array ('title' => 'column:la_fld_AddressLine2', 'filter_block' => 'grid_like_filter'), + 'Address2' => Array ('title' => 'column:la_fld_AddressLine2', 'filter_block' => 'grid_like_filter'), - 'City' => Array ('filter_block' => 'grid_like_filter'), + 'City' => Array ('filter_block' => 'grid_like_filter'), - 'State' => Array ('filter_block' => 'grid_like_filter'), + 'State' => Array ('filter_block' => 'grid_like_filter'), - 'Zip' => Array ('filter_block' => 'grid_like_filter'), + 'Zip' => Array ('filter_block' => 'grid_like_filter'), - 'Country' => Array ('filter_block' => 'grid_options_filter'), + 'Country' => Array ('filter_block' => 'grid_options_filter'), - 'LastUsedAsBilling' => Array ('filter_block' => 'grid_options_filter'), - 'LastUsedAsShipping' => Array ('filter_block' => 'grid_options_filter'), - 'IsProfileAddress' => Array ('filter_block' => 'grid_options_filter'), - ), - ), - ), - ); \ No newline at end of file + 'LastUsedAsBilling' => Array ('filter_block' => 'grid_options_filter'), + 'LastUsedAsShipping' => Array ('filter_block' => 'grid_options_filter'), + 'IsProfileAddress' => Array ('filter_block' => 'grid_options_filter'), + ), + ), + ), +); \ No newline at end of file Index: modules/in-commerce/units/manufacturers/manufacturers_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/manufacturers/manufacturers_config.php (revision 15601) +++ modules/in-commerce/units/manufacturers/manufacturers_config.php (revision ) @@ -13,123 +13,124 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'manuf', + 'Prefix' => 'manuf', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'ManufacturersEventHandler', 'file' => 'manufacturers_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'ManufacturersEventHandler', 'file' => 'manufacturers_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'ManufacturersTagProcessor', 'file' => 'manufacturers_tag_processor.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'ManufacturersTagProcessor', 'file' => 'manufacturers_tag_processor.php', 'build_event' => 'OnBuild'), - 'AutoLoad' => true, + 'AutoLoad' => true, - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), + - 'IDField' => 'ManufacturerId', + 'IDField' => 'ManufacturerId', - 'StatusField' => Array (), - 'TableName' => TABLE_PREFIX.'Manufacturers', + 'TableName' => TABLE_PREFIX.'Manufacturers', - 'TitlePresets' => Array ( - 'default' => Array ( - 'new_status_labels' => Array ('manuf' => '!la_title_AddingManufacturer!'), - 'edit_status_labels' => Array ('manuf' => '!la_title_EditingManufacturer!'), - ), - 'manuf_list' => Array ( - 'prefixes' => Array ('manuf_List'), 'format' => "!la_title_Manufacturers!", - ), - 'manuf_edit' => Array ( - 'prefixes' => Array ('manuf'), - 'new_titlefield' => Array ('manuf' => '!la_title_NewManufacturer!'), - 'format' => "#manuf_status# '#manuf_titlefield#' - !la_title_General!", - ), - ), + 'TitlePresets' => Array ( + 'default' => Array ( + 'new_status_labels' => Array ('manuf' => '!la_title_AddingManufacturer!'), + 'edit_status_labels' => Array ('manuf' => '!la_title_EditingManufacturer!'), + ), + 'manuf_list' => Array ( + 'prefixes' => Array ('manuf_List'), 'format' => "!la_title_Manufacturers!", + ), + 'manuf_edit' => Array ( + 'prefixes' => Array ('manuf'), + 'new_titlefield' => Array ('manuf' => '!la_title_NewManufacturer!'), + 'format' => "#manuf_status# '#manuf_titlefield#' - !la_title_General!", + ), + ), - 'PermSection' => Array ('main' => 'in-commerce:manufacturers'), + 'PermSection' => Array ('main' => 'in-commerce:manufacturers'), - 'Sections' => Array ( + 'Sections' => Array ( - 'in-commerce:manufacturers' => Array ( + 'in-commerce:manufacturers' => Array ( - 'parent' => 'in-commerce', + 'parent' => 'in-commerce', - 'icon' => 'manufacturers', + 'icon' => 'manufacturers', - 'label' => 'la_tab_Manufacturers', + 'label' => 'la_tab_Manufacturers', - 'url' => Array ('t' => 'in-commerce/manufacturers/manufacturers_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-commerce/manufacturers/manufacturers_list', 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit', 'delete'), + 'permissions' => Array ('view', 'add', 'edit', 'delete'), - 'priority' => 4, + 'priority' => 4, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - 'TitleField' => 'Name', // field, used in bluebar when editing existing item + 'TitleField' => 'Name', // field, used in bluebar when editing existing item - - 'ListSQLs' => Array ( '' => 'SELECT * FROM %s', - ), // key - special, value - list select sql - 'ItemSQLs' => Array ('' => 'SELECT * FROM %s', + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s', - ), + ), + - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( - 'Sorting' => Array ('Name' => 'asc'), - ) - ), + '' => Array ( + 'Sorting' => Array ('Name' => 'asc'), + ) + ), + - 'Fields' => Array ( - 'ManufacturerId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'Name' => Array ('type' => 'string', 'not_null' => '1', 'default' => '', 'required' =>true, 'max_len' =>255), - 'Description' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => NULL), - 'URL' => Array ('type' => 'string', 'not_null' => '1', 'default' => '', 'max_len' =>255), - 'Logo' => Array ( - 'type' => 'string', - 'formatter' => 'kPictureFormatter', - 'max_size' => MAX_UPLOAD_SIZE, 'upload_dir' => IMAGES_PATH.'manufacturers/', - 'file_types' => '*.jpg;*.gif;*.png', 'files_description' => '!la_hint_ImageFiles!', - 'multiple' => false, 'thumb_format' => 'resize:100x100', - 'max_len' => 255, 'not_null' => 1, 'default' => '' - ), - 'IsPopular' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), - 'Email' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'regexp' => '/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', 'sample_value' => 'email@domain.com', 'default' => null, 'error_msgs' => Array ('invalid_format' => '!la_invalid_email!') ), - 'Phone' => Array ('type' => 'string', 'default' => null), - 'Fax' => Array ('type' => 'string', 'default' => null), - 'Address1' => Array ('type' => 'string', 'default' => null), - 'Address2' => Array ('type' => 'string', 'default' => null), - 'City' => Array ('type' => 'string', 'default' => null), - 'State' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'option_key_field' => 'DestAbbr', 'option_title_field' => 'Translation', 'default' => null), - 'Zip' => Array ('type' => 'string', 'default' => null), - 'Country' => Array ( - 'type' => 'string', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => ' SELECT IF(l%2$s_Name = "", l%3$s_Name, l%2$s_Name) AS Name, IsoCode - FROM '.TABLE_PREFIX.'CountryStates - WHERE Type = ' . DESTINATION_TYPE_COUNTRY . ' - ORDER BY Name', - 'option_key_field' => 'IsoCode', 'option_title_field' => 'Name', 'default' => null - ), - ), + 'Fields' => Array ( + 'ManufacturerId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'Name' => Array ('type' => 'string', 'not_null' => '1', 'default' => '', 'required' =>true, 'max_len' =>255), + 'Description' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => NULL), + 'URL' => Array ('type' => 'string', 'not_null' => '1', 'default' => '', 'max_len' =>255), + 'Logo' => Array ( + 'type' => 'string', + 'formatter' => 'kPictureFormatter', + 'max_size' => MAX_UPLOAD_SIZE, 'upload_dir' => IMAGES_PATH.'manufacturers/', + 'file_types' => '*.jpg;*.gif;*.png', 'files_description' => '!la_hint_ImageFiles!', + 'multiple' => false, 'thumb_format' => 'resize:100x100', + 'max_len' => 255, 'not_null' => 1, 'default' => '' + ), + 'IsPopular' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), + 'Email' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'regexp' => '/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', 'sample_value' => 'email@domain.com', 'default' => null, 'error_msgs' => Array ('invalid_format' => '!la_invalid_email!') ), + 'Phone' => Array ('type' => 'string', 'default' => null), + 'Fax' => Array ('type' => 'string', 'default' => null), + 'Address1' => Array ('type' => 'string', 'default' => null), + 'Address2' => Array ('type' => 'string', 'default' => null), + 'City' => Array ('type' => 'string', 'default' => null), + 'State' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'option_key_field' => 'DestAbbr', 'option_title_field' => 'Translation', 'default' => null), + 'Zip' => Array ('type' => 'string', 'default' => null), + 'Country' => Array ( + 'type' => 'string', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => ' SELECT IF(l%2$s_Name = "", l%3$s_Name, l%2$s_Name) AS Name, IsoCode + FROM '.TABLE_PREFIX.'CountryStates + WHERE Type = ' . DESTINATION_TYPE_COUNTRY . ' + ORDER BY Name', + 'option_key_field' => 'IsoCode', 'option_title_field' => 'Name', 'default' => null + ), + ), - 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disabled.png', - 1 => 'icon16_item.png', - 'module' => 'core', - ), - 'Fields' => Array ( - 'ManufacturerId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'Name' => Array ('title' => 'la_col_ManufacturerName', 'filter_block' => 'grid_like_filter', 'width' => 200, ), - 'IsPopular' => Array ('title' => 'la_col_IsPopular', 'filter_block' => 'grid_options_filter', 'width' => 100, ), - 'URL' => Array ('filter_block' => 'grid_like_filter', 'width' => 250, ), - ), - ), - ), + 'Grids' => Array ( + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 0 => 'icon16_disabled.png', + 1 => 'icon16_item.png', + 'module' => 'core', + ), + 'Fields' => Array ( + 'ManufacturerId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'Name' => Array ('title' => 'la_col_ManufacturerName', 'filter_block' => 'grid_like_filter', 'width' => 200, ), + 'IsPopular' => Array ('title' => 'la_col_IsPopular', 'filter_block' => 'grid_options_filter', 'width' => 100, ), + 'URL' => Array ('filter_block' => 'grid_like_filter', 'width' => 250, ), + ), + ), + ), - 'ConfigMapping' => Array ( - 'PerPage' => 'Comm_Perpage_Manufacturers', - 'ShortListPerPage' => 'Comm_Perpage_Manufacturers_Short', - ), - ); \ No newline at end of file + 'ConfigMapping' => Array ( + 'PerPage' => 'Comm_Perpage_Manufacturers', + 'ShortListPerPage' => 'Comm_Perpage_Manufacturers_Short', + ), +); \ No newline at end of file Index: modules/in-auction/units/listing/listing_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-auction/units/listing/listing_config.php (revision 15601) +++ modules/in-auction/units/listing/listing_config.php (revision ) @@ -11,460 +11,458 @@ * See http://www.in-portal.org/commercial-license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( - 'Prefix' => 'l-ebay', - 'ItemClass' => Array ('class' => 'ListingItem', 'file' => 'listing_item.php', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'ListingEventHandler', 'file' => 'listing_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'ListingTagProcessor', 'file' => 'listing_tp.php', 'build_event' => 'OnBuild'), +$config = Array ( + 'Prefix' => 'l-ebay', + 'ItemClass' => Array ('class' => 'ListingItem', 'file' => 'listing_item.php', 'build_event' => 'OnItemBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'EventHandlerClass' => Array ('class' => 'ListingEventHandler', 'file' => 'listing_eh.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'ListingTagProcessor', 'file' => 'listing_tp.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - - 'ScheduledTasks' => Array( + 'ScheduledTasks' => Array ( - 'list_items' => Array('EventName' => 'OnListItems', 'RunSchedule' => '*/10 * * * *'), + 'list_items' => Array ('EventName' => 'OnListItems', 'RunSchedule' => '*/10 * * * *'), - ), + ), - 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'type', - 6 => 'mode', - ), + 'QueryString' => Array ( + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'type', + 6 => 'mode', + ), - 'IDField' => 'ListingId', - 'TitleField' => 'eBayListingId', - 'TitlePhrase' => 'la_title_eBay', - 'StatusField' => Array ('Status'), + 'IDField' => 'ListingId', + 'TitleField' => 'eBayListingId', + 'TitlePhrase' => 'la_title_eBay', + 'StatusField' => Array ('Status'), - 'TitlePresets' => Array ( - 'listings_list' => Array ('prefixes' => Array ('l-ebay_List'), 'format' => "!la_title_Listings!"), - 'ebay_store_listing_list' => Array ('prefixes' => Array ('l-ebay.add_List'), 'format' => "!la_title_eBayStoreListing!"), - 'ebay_auction_listing_list' => Array ('prefixes' => Array ('l-ebay.add_List'), 'format' => "!la_title_eBayAuctionListing!"), + 'TitlePresets' => Array ( + 'listings_list' => Array ('prefixes' => Array ('l-ebay_List'), 'format' => "!la_title_Listings!"), + 'ebay_store_listing_list' => Array ('prefixes' => Array ('l-ebay.add_List'), 'format' => "!la_title_eBayStoreListing!"), + 'ebay_auction_listing_list' => Array ('prefixes' => Array ('l-ebay.add_List'), 'format' => "!la_title_eBayAuctionListing!"), - 'ebay_listing' => Array ( - 'prefixes' => Array ('l-ebay'), - 'new_titlefield' => Array ('l-ebay' => '!la_eBay!'), - 'format' => "'#l-ebay_titlefield#'" - ), + 'ebay_listing' => Array ( + 'prefixes' => Array ('l-ebay'), + 'new_titlefield' => Array ('l-ebay' => '!la_eBay!'), + 'format' => "'#l-ebay_titlefield#'" + ), - 'ebay_sales_report' => Array ( - 'prefixes' => Array ('l-ebay'), - 'format' => "!la_title_SalesReport!" - ), + 'ebay_sales_report' => Array ( + 'prefixes' => Array ('l-ebay'), + 'format' => "!la_title_SalesReport!" + ), - 'listings_queued' => Array ('prefixes' => Array ('l-ebay.queued_List'), 'format' => "!la_title_ListingsQueued!"), - 'listings_open' => Array ('prefixes' => Array ('l-ebay.open_List'), 'format' => "!la_title_ListingsOpen!"), - 'listings_sold' => Array ('prefixes' => Array ('l-ebay.sold_List'), 'format' => "!la_title_ListingsSold!"), - 'listings_unsold' => Array ('prefixes' => Array ('l-ebay.unsold_List'), 'format' => "!la_title_ListingsUnsold!"), - 'listings_failed' => Array ('prefixes' => Array ('l-ebay.failed_List'), 'format' => "!la_title_ListingsFailed!"), - 'listings_complete' => Array ('prefixes' => Array ('l-ebay.complete_List'), 'format' => "!la_title_ListingsComplete!"), - 'listings_archived' => Array ('prefixes' => Array ('l-ebay.archived_List'), 'format' => "!la_title_ListingsArchived!"), - ), + 'listings_queued' => Array ('prefixes' => Array ('l-ebay.queued_List'), 'format' => "!la_title_ListingsQueued!"), + 'listings_open' => Array ('prefixes' => Array ('l-ebay.open_List'), 'format' => "!la_title_ListingsOpen!"), + 'listings_sold' => Array ('prefixes' => Array ('l-ebay.sold_List'), 'format' => "!la_title_ListingsSold!"), + 'listings_unsold' => Array ('prefixes' => Array ('l-ebay.unsold_List'), 'format' => "!la_title_ListingsUnsold!"), + 'listings_failed' => Array ('prefixes' => Array ('l-ebay.failed_List'), 'format' => "!la_title_ListingsFailed!"), + 'listings_complete' => Array ('prefixes' => Array ('l-ebay.complete_List'), 'format' => "!la_title_ListingsComplete!"), + 'listings_archived' => Array ('prefixes' => Array ('l-ebay.archived_List'), 'format' => "!la_title_ListingsArchived!"), + ), - 'PermSection' => Array ('main' => 'ebay:listings'), + 'PermSection' => Array ('main' => 'ebay:listings'), - 'Sections' => Array ( - 'ebay:listings' => Array ( + 'Sections' => Array ( + 'ebay:listings' => Array ( - 'parent' => 'ebay', + 'parent' => 'ebay', - 'icon' => 'listing', + 'icon' => 'listing', - 'label' => 'la_title_Listings', + 'label' => 'la_title_Listings', - 'url' => Array('t' => 'in-auction/listings/listings_queued_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-auction/listings/listings_queued_list', 'pass' => 'm'), - 'permissions' => Array('view', 'add', 'edit', 'delete'), + 'permissions' => Array ('view', 'add', 'edit', 'delete'), - 'priority' => 1, + 'priority' => 1, - 'type' => stTREE, + 'type' => stTREE, - ), - 'ebay:statistics' => Array ( + ), + 'ebay:statistics' => Array ( - 'parent' => 'ebay', + 'parent' => 'ebay', - 'icon' => 'sales_report', + 'icon' => 'sales_report', - 'label' => 'la_title_SalesReport', + 'label' => 'la_title_SalesReport', - 'url' => Array('t' => 'in-auction/listings/statistics', 'pass' => 'm'), + 'url' => Array ('t' => 'in-auction/listings/statistics', 'pass' => 'm'), - 'permissions' => Array('view', 'add', 'edit', 'delete'), + 'permissions' => Array ('view', 'add', 'edit', 'delete'), - 'priority' => 3, + 'priority' => 3, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - 'TableName' => TABLE_PREFIX.'eBayListings', + 'TableName' => TABLE_PREFIX.'eBayListings', - 'ListSQLs' => Array ( - '' => ' SELECT %1$s.* %2$s - FROM %s - LEFT JOIN '.TABLE_PREFIX.'eBayProductListings pl ON pl.ProductId = %1$s.ProductId - LEFT JOIN '.TABLE_PREFIX.'Users u ON u.PortalUserId = %1$s.Winner - LEFT JOIN '.TABLE_PREFIX.'Products p ON p.ProductId = %1$s.ProductId', + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM %s + LEFT JOIN '.TABLE_PREFIX.'eBayProductListings pl ON pl.ProductId = %1$s.ProductId + LEFT JOIN '.TABLE_PREFIX.'Users u ON u.PortalUserId = %1$s.Winner + LEFT JOIN '.TABLE_PREFIX.'Products p ON p.ProductId = %1$s.ProductId', - 'add' => 'SELECT '.TABLE_PREFIX.'eBayProductListings.*, '.TABLE_PREFIX.'Products.QtyInStock AS ListingQuantity, '.TABLE_PREFIX.'Products.ProductId AS ProductsProductId, '.TABLE_PREFIX.'Products.SKU, - IF( - ISNULL('.TABLE_PREFIX.'eBayProductListings.ListingTitle) - OR ('.TABLE_PREFIX.'eBayProductListings.ListingTitle = \'\'), - '.TABLE_PREFIX.'Products.l1_Name, - '.TABLE_PREFIX.'eBayProductListings.ListingTitle - ) AS ListingTitle, - '.TABLE_PREFIX.'Products.ProductId AS ProductId - FROM '.TABLE_PREFIX.'Products - LEFT JOIN '.TABLE_PREFIX.'eBayProductListings - ON '.TABLE_PREFIX.'eBayProductListings.ProductId = '.TABLE_PREFIX.'Products.ProductId', + 'add' => 'SELECT '.TABLE_PREFIX.'eBayProductListings.*, '.TABLE_PREFIX.'Products.QtyInStock AS ListingQuantity, '.TABLE_PREFIX.'Products.ProductId AS ProductsProductId, '.TABLE_PREFIX.'Products.SKU, + IF( + ISNULL('.TABLE_PREFIX.'eBayProductListings.ListingTitle) + OR ('.TABLE_PREFIX.'eBayProductListings.ListingTitle = \'\'), + '.TABLE_PREFIX.'Products.l1_Name, + '.TABLE_PREFIX.'eBayProductListings.ListingTitle + ) AS ListingTitle, + '.TABLE_PREFIX.'Products.ProductId AS ProductId + FROM '.TABLE_PREFIX.'Products + LEFT JOIN '.TABLE_PREFIX.'eBayProductListings + ON '.TABLE_PREFIX.'eBayProductListings.ProductId = '.TABLE_PREFIX.'Products.ProductId', - - ), + ), - 'ListSortings' => Array ( - '' => Array ( - 'Sorting' => Array ('Modified' => 'desc'), - ), + 'ListSortings' => Array ( + '' => Array ( + 'Sorting' => Array ('Modified' => 'desc'), + ), - 'add' => Array ( - 'Sorting' => Array (TABLE_PREFIX.'eBayProductListings.ListingTitle' => 'asc'), - ), - ), + 'add' => Array ( + 'Sorting' => Array (TABLE_PREFIX.'eBayProductListings.ListingTitle' => 'asc'), + ), + ), - 'ItemSQLs' => Array ( + 'ItemSQLs' => Array ( - '' => 'SELECT * FROM %s', + '' => ' SELECT * + FROM %s', - ), + ), - 'CalculatedFields' => Array ( - '' => Array ( - 'ListingTitle' => 'IF(pl.ListingTitle IS NULL OR (pl.ListingTitle = ""), p.l1_Name, pl.ListingTitle)', - 'SKU' => 'p.SKU', - 'ListingDuration' => 'IF (%1$s.ListingType = '.EBAY_LISTING_TYPE_AUCTION.', %1$s.AuctionListingDuration, %1$s.StoreListingDuration)', - 'WinnerLogin' => 'u.Username', - 'WinnerEmail' => 'u.Email', - ), + 'CalculatedFields' => Array ( + '' => Array ( + 'ListingTitle' => 'IF(pl.ListingTitle IS NULL OR (pl.ListingTitle = ""), p.l1_Name, pl.ListingTitle)', + 'SKU' => 'p.SKU', + 'ListingDuration' => 'IF (%1$s.ListingType = '.EBAY_LISTING_TYPE_AUCTION.', %1$s.AuctionListingDuration, %1$s.StoreListingDuration)', + 'WinnerLogin' => 'u.Username', + 'WinnerEmail' => 'u.Email', + ), - 'add' => Array ( + 'add' => Array ( - 'ProductsProductId' => TABLE_PREFIX.'Products.ProductId', + 'ProductsProductId' => TABLE_PREFIX.'Products.ProductId', - 'ListingTitle' => 'IF( - '.TABLE_PREFIX.'eBayProductListings.ListingTitle=\'\', - '.TABLE_PREFIX.'Products.l1_Name, - '.TABLE_PREFIX.'eBayProductListings.ListingTitle - )', - ), + 'ListingTitle' => 'IF( + '.TABLE_PREFIX.'eBayProductListings.ListingTitle=\'\', + '.TABLE_PREFIX.'Products.l1_Name, + '.TABLE_PREFIX.'eBayProductListings.ListingTitle + )', + ), - - ), + ), - 'Fields' => Array ( + 'Fields' => Array ( - 'ListingId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ListingId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ProductId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ProductId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ListingType' => Array( + 'ListingType' => Array ( - 'type' => 'int', + 'type' => 'int', - 'formatter'=>'kOptionsFormatter', + 'formatter' => 'kOptionsFormatter', - 'options'=>Array( + 'options'=>Array ( - EBAY_LISTING_TYPE_AUCTION => 'la_Auction', - EBAY_LISTING_TYPE_STORE => 'la_Store', - ), - 'use_phrases'=>1, - 'not_null' => 1, - 'default' => 0 - ), + EBAY_LISTING_TYPE_AUCTION => 'la_Auction', + EBAY_LISTING_TYPE_STORE => 'la_Store', + ), + 'use_phrases'=>1, + 'not_null' => 1, + 'default' => 0 + ), - 'Status' => Array( + 'Status' => Array ( - 'type' => 'int', + 'type' => 'int', - 'formatter'=>'kOptionsFormatter', + 'formatter' => 'kOptionsFormatter', - 'options'=>Array( + 'options'=>Array ( - EBAY_LISTING_QUEUED => 'la_Queued', - EBAY_LISTING_OPEN => 'la_Open', - EBAY_LISTING_ENDED => 'la_Ended', - EBAY_LISTING_COMPLETED => 'la_Completed', - EBAY_LISTING_SEND_ERROR => 'la_SendError', - ), - 'use_phrases'=>1, - 'not_null' => 1, - 'default' => 0 - ), + EBAY_LISTING_QUEUED => 'la_Queued', + EBAY_LISTING_OPEN => 'la_Open', + EBAY_LISTING_ENDED => 'la_Ended', + EBAY_LISTING_COMPLETED => 'la_Completed', + EBAY_LISTING_SEND_ERROR => 'la_SendError', + ), + 'use_phrases'=>1, + 'not_null' => 1, + 'default' => 0 + ), - 'eBayListingId' => Array('type' => 'string', 'default' => null), + 'eBayListingId' => Array ('type' => 'string', 'default' => null), - 'BidCounter' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'BidCounter' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'CurrentPrice' => Array('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => null), + 'CurrentPrice' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => null), - 'DetailTemplateBody' => Array('type' => 'string', 'default' => null), + 'DetailTemplateBody' => Array ('type' => 'string', 'default' => null), - 'ImageUrls' => Array('type' => 'string', 'default' => null), + 'ImageUrls' => Array ('type' => 'string', 'default' => null), - 'UseGallery' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), - 'UseGalleryPlus' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), + 'UseGallery' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), + 'UseGalleryPlus' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), - 'CreatedOn' => Array('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'Archived' => Array('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), + 'Archived' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), - 'PaymentMethod' => Array( + 'PaymentMethod' => Array ( - 'type' => 'string', + 'type' => 'string', - 'formatter'=>'kOptionsFormatter', + 'formatter' => 'kOptionsFormatter', - 'options_sql'=>'SELECT %1$s + 'options_sql' => 'SELECT %1$s - FROM '.TABLE_PREFIX.'eBayFieldOptions - WHERE FieldName = "PaymentMethod" - ORDER BY FieldOptionTitle', + FROM '.TABLE_PREFIX.'eBayFieldOptions + WHERE FieldName = "PaymentMethod" + ORDER BY FieldOptionTitle', - 'option_key_field'=>'FieldOptionKey', + 'option_key_field' => 'FieldOptionKey', - 'option_title_field'=>'FieldOptionTitle', + 'option_title_field' => 'FieldOptionTitle', - 'default' => null - ), + 'default' => null + ), - 'PayPalSellerEmail' => Array('type' => 'string','formatter'=>'kFormatter', 'regexp'=>'/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', 'sample_value' => 'email@domain.com', 'error_msgs' => Array('invalid_format'=>'!la_invalid_email!', 'unique'=>'!lu_email_already_exist!'), 'default' => null), + 'PayPalSellerEmail' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'regexp' => '/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', 'sample_value' => 'email@domain.com', 'error_msgs' => Array ('invalid_format' => '!la_invalid_email!', 'unique' => '!lu_email_already_exist!'), 'default' => null), - 'AutoRelist' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), + 'AutoRelist' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), - 'PaymentInstructions' => Array('type' => 'string', 'default' => null), + 'PaymentInstructions' => Array ('type' => 'string', 'default' => null), - 'OriginalListingId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'OriginalListingId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Modified' => Array('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + 'Modified' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'ListingQuantity' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ListingQuantity' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'QuantityPaid' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'QuantityPaid' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'QuantitySold' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'QuantitySold' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'StoreBuyItNowPrice' => Array('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => null), + 'StoreBuyItNowPrice' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => null), - 'StoreListingDuration' => Array( + 'StoreListingDuration' => Array ( - 'type' => 'int', + 'type' => 'int', - 'formatter'=>'kOptionsFormatter', + 'formatter' => 'kOptionsFormatter', - 'options_sql'=>'SELECT %1$s + 'options_sql' => 'SELECT %1$s - FROM '.TABLE_PREFIX.'eBayFieldOptions - WHERE FieldName = "StoreListingDuration" - ORDER BY ROUND(FieldOptionKey)', + FROM '.TABLE_PREFIX.'eBayFieldOptions + WHERE FieldName = "StoreListingDuration" + ORDER BY ROUND(FieldOptionKey)', - 'option_key_field'=>'FieldOptionKey', + 'option_key_field' => 'FieldOptionKey', - 'option_title_field'=>'FieldOptionTitle', + 'option_title_field' => 'FieldOptionTitle', - 'default' => null - ), + 'default' => null + ), - 'SendError' => Array('type' => 'string', 'default' => null), + 'SendError' => Array ('type' => 'string', 'default' => null), - 'AuctionListingDuration' => Array( + 'AuctionListingDuration' => Array ( - 'type' => 'int', + 'type' => 'int', - 'formatter'=>'kOptionsFormatter', + 'formatter' => 'kOptionsFormatter', - 'options_sql'=>'SELECT %1$s + 'options_sql' => 'SELECT %1$s - FROM '.TABLE_PREFIX.'eBayFieldOptions - WHERE FieldName = "AuctionListingDuration" - ORDER BY ROUND(FieldOptionKey)', + FROM '.TABLE_PREFIX.'eBayFieldOptions + WHERE FieldName = "AuctionListingDuration" + ORDER BY ROUND(FieldOptionKey)', - 'option_key_field'=>'FieldOptionKey', + 'option_key_field' => 'FieldOptionKey', - 'option_title_field'=>'FieldOptionTitle', + 'option_title_field' => 'FieldOptionTitle', - 'default' => null - ), + 'default' => null + ), - 'AuctionStartPrice' => Array('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => null), + 'AuctionStartPrice' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => null), - 'AuctionBuyItNowPrice' => Array('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => null), + 'AuctionBuyItNowPrice' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => null), - 'AuctionReservePrice' => Array('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => null), + 'AuctionReservePrice' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => null), - 'EnhancementBoldTitle' => Array('type' => 'int', 'default' => null), + 'EnhancementBoldTitle' => Array ('type' => 'int', 'default' => null), - 'EnhancementBorder' => Array('type' => 'int', 'default' => null), + 'EnhancementBorder' => Array ('type' => 'int', 'default' => null), - 'EnhancementFeatured' => Array('type' => 'int', 'default' => null), + 'EnhancementFeatured' => Array ('type' => 'int', 'default' => null), - 'EnhancementHighlight' => Array('type' => 'int', 'default' => null), + 'EnhancementHighlight' => Array ('type' => 'int', 'default' => null), - 'EnhancementHomePageFeatured' => Array('type' => 'int', 'default' => null), + 'EnhancementHomePageFeatured' => Array ('type' => 'int', 'default' => null), - 'Fixed' => Array('type' => 'int', 'default' => null), + 'Fixed' => Array ('type' => 'int', 'default' => null), - 'LogId' => Array('type' => 'int', 'default' => null), + 'LogId' => Array ('type' => 'int', 'default' => null), - 'ShippingDetails' => Array ('type' => 'string', 'default' => NULL), + 'ShippingDetails' => Array ('type' => 'string', 'default' => NULL), - 'ClosedOn' => Array('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null), + 'ClosedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null), - 'ListingFee' => Array('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => null), + 'ListingFee' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => null), - 'Winner' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Winner' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Hits' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Hits' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'RequestParams' => Array ('type' => 'string', 'default' => NULL), - ), + 'RequestParams' => Array ('type' => 'string', 'default' => NULL), + ), - 'VirtualFields' => Array( + 'VirtualFields' => Array ( - 'ProductsProductId' => Array ('type' => 'int', 'default' => 0), - 'ListingTitle' => Array ('type' => 'string', 'default' => null), - 'SKU' => Array ('type' => 'string', 'default' => ''), - 'ListingDuration' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => ' SELECT %1$s - FROM '.TABLE_PREFIX.'eBayFieldOptions - WHERE FieldName = "StoreListingDuration" - ORDER BY ROUND(FieldOptionKey)', - 'option_key_field' => 'FieldOptionKey', 'option_title_field' => 'FieldOptionTitle', - 'default' => null, - ), - 'WinnerLogin' => Array ('type' => 'string', 'default' => null), - 'WinnerEmail' => Array ('type' => 'string', 'default' => null), - 'eBayStatisticsPeriod' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array ( - 1 => 'la_Today', - 2 => 'la_Yesterday', - 3 => 'la_LastSevenDays', - 4 => 'la_LastThirtyDays', - 5 => 'la_WeekToDate', - 6 => 'la_MonthToDate', - 7 => 'la_QuarterToDate', - ), 'use_phrases' => 1, 'default' => 0), - 'eBayStatisticsMetric' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array ( - 1 => 'la_QuantityClosed', - 2 => 'la_QuantitySold', - 3 => 'la_ClosingRate', - 4 => 'la_GMV', - 5 => 'la_ASP', - 6 => 'la_Fees', - 7 => 'la_ProductCost', - 8 => 'la_GrossProfit', - ), 'use_phrases' => 1, 'default' => 0), - ), + 'ProductsProductId' => Array ('type' => 'int', 'default' => 0), + 'ListingTitle' => Array ('type' => 'string', 'default' => null), + 'SKU' => Array ('type' => 'string', 'default' => ''), + 'ListingDuration' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => ' SELECT %1$s + FROM '.TABLE_PREFIX.'eBayFieldOptions + WHERE FieldName = "StoreListingDuration" + ORDER BY ROUND(FieldOptionKey)', + 'option_key_field' => 'FieldOptionKey', 'option_title_field' => 'FieldOptionTitle', + 'default' => null, + ), + 'WinnerLogin' => Array ('type' => 'string', 'default' => null), + 'WinnerEmail' => Array ('type' => 'string', 'default' => null), + 'eBayStatisticsPeriod' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array ( + 1 => 'la_Today', + 2 => 'la_Yesterday', + 3 => 'la_LastSevenDays', + 4 => 'la_LastThirtyDays', + 5 => 'la_WeekToDate', + 6 => 'la_MonthToDate', + 7 => 'la_QuarterToDate', + ), 'use_phrases' => 1, 'default' => 0), + 'eBayStatisticsMetric' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array ( + 1 => 'la_QuantityClosed', + 2 => 'la_QuantitySold', + 3 => 'la_ClosingRate', + 4 => 'la_GMV', + 5 => 'la_ASP', + 6 => 'la_Fees', + 7 => 'la_ProductCost', + 8 => 'la_GrossProfit', + ), 'use_phrases' => 1, 'default' => 0), + ), - 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 'module' => 'core', - ), + 'Grids' => Array ( + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 'module' => 'core', + ), - 'Fields' => Array( + 'Fields' => Array ( - 'ListingId' => Array ('title'=>'la_prompt_ListingId', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter'), + 'ListingId' => Array ('title' => 'la_prompt_ListingId', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter'), - 'ProductId' => Array ('title'=>'la_col_ProductId', 'filter_block' => 'grid_like_filter'), + 'ProductId' => Array ('title' => 'la_col_ProductId', 'filter_block' => 'grid_like_filter'), - 'ListingType' => Array ('title'=>'la_col_ListingType', 'filter_block' => 'grid_like_filter'), + 'ListingType' => Array ('title' => 'la_col_ListingType', 'filter_block' => 'grid_like_filter'), - 'Status' => Array('data_block' => 'grid_status_log_link', 'filter_block' => 'grid_like_filter'), + 'Status' => Array ('data_block' => 'grid_status_log_link', 'filter_block' => 'grid_like_filter'), - 'ListingQuantity' => Array ('title'=>'la_col_Quantity', 'filter_block' => 'grid_like_filter'), + 'ListingQuantity' => Array ('title' => 'la_col_Quantity', 'filter_block' => 'grid_like_filter'), - 'QuantitySold' => Array ('title'=>'la_col_Sold', 'filter_block' => 'grid_like_filter'), + 'QuantitySold' => Array ('title' => 'la_col_Sold', 'filter_block' => 'grid_like_filter'), - 'QuantityPaid' => Array ('title'=>'la_col_Paid', 'filter_block' => 'grid_like_filter'), + 'QuantityPaid' => Array ('title' => 'la_col_Paid', 'filter_block' => 'grid_like_filter'), - 'BidCounter' => Array ('title'=>'la_col_BidCounter', 'filter_block' => 'grid_like_filter'), + 'BidCounter' => Array ('title' => 'la_col_BidCounter', 'filter_block' => 'grid_like_filter'), - 'CurrentPrice' => Array ('title'=>'la_col_CurrentPrice', 'filter_block' => 'grid_like_filter'), + 'CurrentPrice' => Array ('title' => 'la_col_CurrentPrice', 'filter_block' => 'grid_like_filter'), - 'UseGallery' => Array ('title'=>'la_col_UseGallery', 'filter_block' => 'grid_like_filter'), + 'UseGallery' => Array ('title' => 'la_col_UseGallery', 'filter_block' => 'grid_like_filter'), - 'UseGalleryPlus' => Array ('title'=>'la_col_UseGalleryPlus', 'filter_block' => 'grid_like_filter'), + 'UseGalleryPlus' => Array ('title' => 'la_col_UseGalleryPlus', 'filter_block' => 'grid_like_filter'), - 'CreatedOn' => Array ('filter_block' => 'grid_like_filter'), + 'CreatedOn' => Array ('filter_block' => 'grid_like_filter'), - 'PayPalSellerEmail' => Array ('title'=>'la_col_PayPalSellerEmail', 'filter_block' => 'grid_like_filter'), + 'PayPalSellerEmail' => Array ('title' => 'la_col_PayPalSellerEmail', 'filter_block' => 'grid_like_filter'), - 'AutoRelist' => Array ('title'=>'la_col_AutoRelist', 'filter_block' => 'grid_like_filter'), + 'AutoRelist' => Array ('title' => 'la_col_AutoRelist', 'filter_block' => 'grid_like_filter'), - 'OriginalListingId' => Array ('title'=>'la_col_OriginalListingId', 'filter_block' => 'grid_like_filter'), + 'OriginalListingId' => Array ('title' => 'la_col_OriginalListingId', 'filter_block' => 'grid_like_filter'), - 'Modified' => Array ('title'=>'la_col_Modified', 'filter_block' => 'grid_like_filter', 'filter_block' => 'grid_like_filter'), + 'Modified' => Array ('title' => 'la_col_Modified', 'filter_block' => 'grid_like_filter', 'filter_block' => 'grid_like_filter'), - ), - ), + ), + ), - 'Queued' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 'module' => 'core', - ), + 'Queued' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 'module' => 'core', + ), - 'Fields' => Array( + 'Fields' => Array ( - 'ListingTitle' => Array ('title'=>'column:la_fld_Title', 'data_block' => 'grid_listing_td', 'filter_block' => 'grid_like_filter'), + 'ListingTitle' => Array ('title' => 'column:la_fld_Title', 'data_block' => 'grid_listing_td', 'filter_block' => 'grid_like_filter'), - 'SKU' => Array ('data_block' => 'grid_product_td', 'filter_block' => 'grid_like_filter'), - 'ListingType' => Array ('filter_block' => 'grid_like_filter'), + 'SKU' => Array ('data_block' => 'grid_product_td', 'filter_block' => 'grid_like_filter'), + 'ListingType' => Array ('filter_block' => 'grid_like_filter'), - 'ListingQuantity' => Array ('title'=>'la_col_Quantity', 'filter_block' => 'grid_like_filter'), + 'ListingQuantity' => Array ('title' => 'la_col_Quantity', 'filter_block' => 'grid_like_filter'), - 'CreatedOn' => Array ('filter_block' => 'grid_like_filter'), + 'CreatedOn' => Array ('filter_block' => 'grid_like_filter'), - 'ListingDuration' => Array ('title'=>'la_col_ListingDuration', 'filter_block' => 'grid_like_filter'), + 'ListingDuration' => Array ('title' => 'la_col_ListingDuration', 'filter_block' => 'grid_like_filter'), - ), - ), + ), + ), - 'Open' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 'module' => 'core', - ), + 'Open' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 'module' => 'core', + ), - 'Fields' => Array( + 'Fields' => Array ( - 'ListingTitle' => Array ('title'=>'column:la_fld_Title', 'data_block' => 'grid_listing_td', 'filter_block' => 'grid_like_filter'), + 'ListingTitle' => Array ('title' => 'column:la_fld_Title', 'data_block' => 'grid_listing_td', 'filter_block' => 'grid_like_filter'), - 'SKU' => Array ('data_block' => 'grid_product_td', 'filter_block' => 'grid_like_filter'), - 'ListingType' => Array ('filter_block' => 'grid_like_filter'), + 'SKU' => Array ('data_block' => 'grid_product_td', 'filter_block' => 'grid_like_filter'), + 'ListingType' => Array ('filter_block' => 'grid_like_filter'), - 'ListingQuantity' => Array ('title'=>'la_col_Quantity', 'filter_block' => 'grid_like_filter'), + 'ListingQuantity' => Array ('title' => 'la_col_Quantity', 'filter_block' => 'grid_like_filter'), - 'Hits' => Array ('filter_block' => 'grid_like_filter'), - 'BidCounter' => Array ('title' => 'la_col_Bids', 'filter_block' => 'grid_like_filter'), - 'CurrentPrice' => Array ('title' => 'la_col_CurrentBid', 'filter_block' => 'grid_like_filter'), + 'Hits' => Array ('filter_block' => 'grid_like_filter'), + 'BidCounter' => Array ('title' => 'la_col_Bids', 'filter_block' => 'grid_like_filter'), + 'CurrentPrice' => Array ('title' => 'la_col_CurrentBid', 'filter_block' => 'grid_like_filter'), - 'CreatedOn' => Array ('title'=>'la_col_ClosingTime', 'data_block' => 'grid_closing_td', 'filter_block' => 'grid_like_filter'), + 'CreatedOn' => Array ('title' => 'la_col_ClosingTime', 'data_block' => 'grid_closing_td', 'filter_block' => 'grid_like_filter'), - 'ListingFee' => Array ('title'=>'column:la_fld_Cost', 'filter_block' => 'grid_like_filter'), + 'ListingFee' => Array ('title' => 'column:la_fld_Cost', 'filter_block' => 'grid_like_filter'), - ), - ), + ), + ), - 'Sold' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 'module' => 'core', - ), + 'Sold' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 'module' => 'core', + ), - 'Fields' => Array( + 'Fields' => Array ( - 'ListingTitle' => Array ('title'=>'column:la_fld_Title', 'data_block' => 'grid_listing_td', 'filter_block' => 'grid_like_filter'), + 'ListingTitle' => Array ('title' => 'column:la_fld_Title', 'data_block' => 'grid_listing_td', 'filter_block' => 'grid_like_filter'), - 'SKU' => Array ('data_block' => 'grid_product_td', 'filter_block' => 'grid_like_filter'), - 'ListingType' => Array ('filter_block' => 'grid_like_filter'), + 'SKU' => Array ('data_block' => 'grid_product_td', 'filter_block' => 'grid_like_filter'), + 'ListingType' => Array ('filter_block' => 'grid_like_filter'), - 'Status' => Array('data_block' => 'grid_status_log_link', 'filter_block' => 'grid_like_filter'), + 'Status' => Array ('data_block' => 'grid_status_log_link', 'filter_block' => 'grid_like_filter'), - 'ListingQuantity' => Array ('title'=>'la_col_Quantity', 'filter_block' => 'grid_like_filter'), + 'ListingQuantity' => Array ('title' => 'la_col_Quantity', 'filter_block' => 'grid_like_filter'), - 'Hits' => Array ('filter_block' => 'grid_like_filter'), - 'BidCounter' => Array ('title' => 'la_col_Bids', 'filter_block' => 'grid_like_filter'), - 'CurrentPrice' => Array ('title' => 'la_col_WinningBid', 'filter_block' => 'grid_like_filter'), + 'Hits' => Array ('filter_block' => 'grid_like_filter'), + 'BidCounter' => Array ('title' => 'la_col_Bids', 'filter_block' => 'grid_like_filter'), + 'CurrentPrice' => Array ('title' => 'la_col_WinningBid', 'filter_block' => 'grid_like_filter'), - 'WinnerEmail' => Array('title'=>'la_col_Winner', 'data_block' => 'grid_winner_link', 'filter_block' => 'grid_like_filter'), + 'WinnerEmail' => Array ('title' => 'la_col_Winner', 'data_block' => 'grid_winner_link', 'filter_block' => 'grid_like_filter'), - 'ClosedOn' => Array ('title' => 'la_col_ClosedOn', 'filter_block' => 'grid_like_filter'), - ), - ), + 'ClosedOn' => Array ('title' => 'la_col_ClosedOn', 'filter_block' => 'grid_like_filter'), + ), + ), - 'Unsold' => Array ( - 'Icons' => Array ('default' => 'icon16_item.png'), + 'Unsold' => Array ( + 'Icons' => Array ('default' => 'icon16_item.png'), - 'Fields' => Array( + 'Fields' => Array ( - 'ListingTitle' => Array ('title'=>'column:la_fld_Title', 'data_block' => 'grid_listing_td', 'filter_block' => 'grid_like_filter'), + 'ListingTitle' => Array ('title' => 'column:la_fld_Title', 'data_block' => 'grid_listing_td', 'filter_block' => 'grid_like_filter'), - 'SKU' => Array ('data_block' => 'grid_product_td', 'filter_block' => 'grid_like_filter'), - 'ListingType' => Array ('filter_block' => 'grid_like_filter'), + 'SKU' => Array ('data_block' => 'grid_product_td', 'filter_block' => 'grid_like_filter'), + 'ListingType' => Array ('filter_block' => 'grid_like_filter'), - 'ListingQuantity' => Array ('title'=>'la_col_Quantity', 'filter_block' => 'grid_like_filter'), + 'ListingQuantity' => Array ('title' => 'la_col_Quantity', 'filter_block' => 'grid_like_filter'), - 'Hits' => Array ('filter_block' => 'grid_like_filter'), - 'BidCounter' => Array ('title' => 'la_col_Bids', 'filter_block' => 'grid_like_filter'), - 'AuctionReservePrice' => Array ('title' => 'la_col_ReservePrice', 'filter_block' => 'grid_like_filter'), - 'ClosedOn' => Array ('title' => 'la_col_ClosedOn', 'filter_block' => 'grid_like_filter'), - ), - ), + 'Hits' => Array ('filter_block' => 'grid_like_filter'), + 'BidCounter' => Array ('title' => 'la_col_Bids', 'filter_block' => 'grid_like_filter'), + 'AuctionReservePrice' => Array ('title' => 'la_col_ReservePrice', 'filter_block' => 'grid_like_filter'), + 'ClosedOn' => Array ('title' => 'la_col_ClosedOn', 'filter_block' => 'grid_like_filter'), + ), + ), - 'Failed' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 'module' => 'core', - ), + 'Failed' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 'module' => 'core', + ), - 'Fields' => Array( + 'Fields' => Array ( - 'ListingTitle' => Array ('title'=>'column:la_fld_Title', 'data_block' => 'grid_listing_td', 'filter_block' => 'grid_like_filter'), + 'ListingTitle' => Array ('title' => 'column:la_fld_Title', 'data_block' => 'grid_listing_td', 'filter_block' => 'grid_like_filter'), - 'SKU' => Array ('data_block' => 'grid_product_td', 'filter_block' => 'grid_like_filter'), - 'ListingType' => Array ('filter_block' => 'grid_like_filter'), + 'SKU' => Array ('data_block' => 'grid_product_td', 'filter_block' => 'grid_like_filter'), + 'ListingType' => Array ('filter_block' => 'grid_like_filter'), - 'ListingQuantity' => Array ('title'=>'la_col_Quantity', 'filter_block' => 'grid_like_filter'), + 'ListingQuantity' => Array ('title' => 'la_col_Quantity', 'filter_block' => 'grid_like_filter'), - 'CreatedOn' => Array ('filter_block' => 'grid_like_filter'), + 'CreatedOn' => Array ('filter_block' => 'grid_like_filter'), - 'ListingDuration' => Array ('title'=>'la_col_ListingDuration', 'filter_block' => 'grid_like_filter'), + 'ListingDuration' => Array ('title' => 'la_col_ListingDuration', 'filter_block' => 'grid_like_filter'), - 'Status' => Array('data_block' => 'grid_status_log_link', 'filter_block' => 'grid_like_filter'), + 'Status' => Array ('data_block' => 'grid_status_log_link', 'filter_block' => 'grid_like_filter'), - ), - ), + ), + ), - 'Complete' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 'module' => 'core', - ), + 'Complete' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 'module' => 'core', + ), - 'Fields' => Array( + 'Fields' => Array ( - 'ListingTitle' => Array ('title'=>'column:la_fld_Title', 'data_block' => 'grid_listing_td', 'filter_block' => 'grid_like_filter'), + 'ListingTitle' => Array ('title' => 'column:la_fld_Title', 'data_block' => 'grid_listing_td', 'filter_block' => 'grid_like_filter'), - 'SKU' => Array ('data_block' => 'grid_product_td', 'filter_block' => 'grid_like_filter'), - 'ListingType' => Array ('filter_block' => 'grid_like_filter'), + 'SKU' => Array ('data_block' => 'grid_product_td', 'filter_block' => 'grid_like_filter'), + 'ListingType' => Array ('filter_block' => 'grid_like_filter'), - 'Status' => Array('data_block' => 'grid_status_log_link', 'filter_block' => 'grid_like_filter'), + 'Status' => Array ('data_block' => 'grid_status_log_link', 'filter_block' => 'grid_like_filter'), - 'ListingQuantity' => Array ('title'=>'la_col_Quantity', 'filter_block' => 'grid_like_filter'), + 'ListingQuantity' => Array ('title' => 'la_col_Quantity', 'filter_block' => 'grid_like_filter'), - 'QuantityPaid' => Array ('title'=>'la_col_Paid', 'filter_block' => 'grid_like_filter'), + 'QuantityPaid' => Array ('title' => 'la_col_Paid', 'filter_block' => 'grid_like_filter'), - 'BidCounter' => Array ('title' => 'la_col_Bids', 'filter_block' => 'grid_like_filter'), - 'CurrentPrice' => Array ('title' => 'la_col_WinningBid', 'filter_block' => 'grid_like_filter'), + 'BidCounter' => Array ('title' => 'la_col_Bids', 'filter_block' => 'grid_like_filter'), + 'CurrentPrice' => Array ('title' => 'la_col_WinningBid', 'filter_block' => 'grid_like_filter'), - 'WinnerEmail' => Array('title'=>'la_col_Winner', 'data_block' => 'grid_winner_link', 'filter_block' => 'grid_like_filter'), + 'WinnerEmail' => Array ('title' => 'la_col_Winner', 'data_block' => 'grid_winner_link', 'filter_block' => 'grid_like_filter'), - ), - ), + ), + ), - 'Archived' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 'module' => 'core', - ), + 'Archived' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 'module' => 'core', + ), - 'Fields' => Array( + 'Fields' => Array ( - 'ListingTitle' => Array ('title'=>'column:la_fld_Title', 'data_block' => 'grid_listing_td', 'filter_block' => 'grid_like_filter'), + 'ListingTitle' => Array ('title' => 'column:la_fld_Title', 'data_block' => 'grid_listing_td', 'filter_block' => 'grid_like_filter'), - 'SKU' => Array ('data_block' => 'grid_product_td', 'filter_block' => 'grid_like_filter'), - 'ListingType' => Array ('filter_block' => 'grid_like_filter'), + 'SKU' => Array ('data_block' => 'grid_product_td', 'filter_block' => 'grid_like_filter'), + 'ListingType' => Array ('filter_block' => 'grid_like_filter'), - 'Status' => Array('data_block' => 'grid_status_log_link', 'filter_block' => 'grid_like_filter'), + 'Status' => Array ('data_block' => 'grid_status_log_link', 'filter_block' => 'grid_like_filter'), - 'ListingQuantity' => Array ('title'=>'la_col_Quantity', 'filter_block' => 'grid_like_filter'), + 'ListingQuantity' => Array ('title' => 'la_col_Quantity', 'filter_block' => 'grid_like_filter'), - 'QuantityPaid' => Array ('title'=>'la_col_Paid', 'filter_block' => 'grid_like_filter'), + 'QuantityPaid' => Array ('title' => 'la_col_Paid', 'filter_block' => 'grid_like_filter'), - 'CurrentPrice' => Array ('title' => 'la_col_WinningBid', 'filter_block' => 'grid_like_filter'), + 'CurrentPrice' => Array ('title' => 'la_col_WinningBid', 'filter_block' => 'grid_like_filter'), - 'WinnerEmail' => Array('title'=>'la_col_Winner', 'data_block' => 'grid_winner_link', 'filter_block' => 'grid_like_filter'), + 'WinnerEmail' => Array ('title' => 'la_col_Winner', 'data_block' => 'grid_winner_link', 'filter_block' => 'grid_like_filter'), - 'ClosedOn' => Array ('title' => 'la_col_ClosedOn', 'filter_block' => 'grid_like_filter'), - ), - ), + 'ClosedOn' => Array ('title' => 'la_col_ClosedOn', 'filter_block' => 'grid_like_filter'), + ), + ), - 'eBayStore' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 'module' => 'core', - ), - 'Fields' => Array ( + 'eBayStore' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 'module' => 'core', + ), + 'Fields' => Array ( - 'ProductId' => Array('title'=>'la_col_ProductId', 'data_block' => 'grid_checkbox_td' , 'filter_block' => 'grid_range_filter'), + 'ProductId' => Array ('title' => 'la_col_ProductId', 'data_block' => 'grid_checkbox_td' , 'filter_block' => 'grid_range_filter'), - 'SKU' => Array('filter_block' => 'grid_like_filter'), + 'SKU' => Array ('filter_block' => 'grid_like_filter'), - 'ListingTitle' => Array( 'title'=>'column:la_fld_Title', 'filter_block' => 'grid_like_filter'), + 'ListingTitle' => Array ( 'title' => 'column:la_fld_Title', 'filter_block' => 'grid_like_filter'), - 'StoreBuyItNowPrice' => Array('title'=>'column:la_fld_Price', 'data_block' => 'grid_edit_td', 'size' => 2, 'filter_block' => 'grid_like_filter'), + 'StoreBuyItNowPrice' => Array ('title' => 'column:la_fld_Price', 'data_block' => 'grid_edit_td', 'size' => 2, 'filter_block' => 'grid_like_filter'), - 'StoreListingDuration' => Array('title'=>'column:la_fld_Duration', 'data_block' => 'grid_listing_options_td', 'filter_block' => 'grid_like_filter'), + 'StoreListingDuration' => Array ('title' => 'column:la_fld_Duration', 'data_block' => 'grid_listing_options_td', 'filter_block' => 'grid_like_filter'), - 'ListingQuantity' => Array('title'=>'la_col_Quantity', 'data_block' => 'grid_edit_td', 'size' => 2, 'filter_block' => 'grid_like_filter'), + 'ListingQuantity' => Array ('title' => 'la_col_Quantity', 'data_block' => 'grid_edit_td', 'size' => 2, 'filter_block' => 'grid_like_filter'), - - ), - ), + ), + ), - 'eBayAuction' => Array ( - 'Icons' => Array ('default' => 'icon16_item.png'), - 'Fields' => Array ( + 'eBayAuction' => Array ( + 'Icons' => Array ('default' => 'icon16_item.png'), + 'Fields' => Array ( - 'ProductId' => Array('title'=>'la_col_ProductId', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter'), + 'ProductId' => Array ('title' => 'la_col_ProductId', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter'), - 'SKU' => Array('filter_block' => 'grid_like_filter'), + 'SKU' => Array ('filter_block' => 'grid_like_filter'), - 'ListingTitle' => Array( 'title'=>'column:la_fld_Title', 'filter_block' => 'grid_like_filter'), + 'ListingTitle' => Array ( 'title' => 'column:la_fld_Title', 'filter_block' => 'grid_like_filter'), - 'AuctionListingDuration' => Array('title'=>'column:la_fld_Duration', 'data_block' => 'grid_listing_options_td', 'filter_block' => 'grid_like_filter'), + 'AuctionListingDuration' => Array ('title' => 'column:la_fld_Duration', 'data_block' => 'grid_listing_options_td', 'filter_block' => 'grid_like_filter'), - 'AuctionStartPrice' => Array('title'=>'column:la_fld_Start', 'data_block' => 'grid_edit_td', 'size' => 2, 'filter_block' => 'grid_like_filter'), + 'AuctionStartPrice' => Array ('title' => 'column:la_fld_Start', 'data_block' => 'grid_edit_td', 'size' => 2, 'filter_block' => 'grid_like_filter'), - 'AuctionReservePrice' => Array('title'=>'la_col_Reserve', 'data_block' => 'grid_edit_td', 'size' => 2, 'filter_block' => 'grid_like_filter'), + 'AuctionReservePrice' => Array ('title' => 'la_col_Reserve', 'data_block' => 'grid_edit_td', 'size' => 2, 'filter_block' => 'grid_like_filter'), - 'AuctionBuyItNowPrice' => Array('title'=>'la_col_BuyItNow', 'data_block' => 'grid_edit_td', 'size' => 2, 'filter_block' => 'grid_like_filter'), + 'AuctionBuyItNowPrice' => Array ('title' => 'la_col_BuyItNow', 'data_block' => 'grid_edit_td', 'size' => 2, 'filter_block' => 'grid_like_filter'), - 'ListingQuantity' => Array('title'=>'la_col_Quantity', 'data_block' => 'grid_edit_td', 'size' => 2, 'filter_block' => 'grid_like_filter'), + 'ListingQuantity' => Array ('title' => 'la_col_Quantity', 'data_block' => 'grid_edit_td', 'size' => 2, 'filter_block' => 'grid_like_filter'), - 'AutoRelist' => Array('title'=>'la_col_Relist', 'data_block' => 'grid_edit_checkbox_td', 'filter_block' => 'grid_like_filter'), + 'AutoRelist' => Array ('title' => 'la_col_Relist', 'data_block' => 'grid_edit_checkbox_td', 'filter_block' => 'grid_like_filter'), - 'Fixed' => Array('title'=>'column:la_fld_Fixed', 'data_block' => 'grid_edit_checkbox_td', 'filter_block' => 'grid_like_filter'), + 'Fixed' => Array ('title' => 'column:la_fld_Fixed', 'data_block' => 'grid_edit_checkbox_td', 'filter_block' => 'grid_like_filter'), - 'UseGallery' => Array('title'=>'la_col_G', 'data_block' => 'grid_edit_checkbox_td', 'filter_block' => 'grid_like_filter'), + 'UseGallery' => Array ('title' => 'la_col_G', 'data_block' => 'grid_edit_checkbox_td', 'filter_block' => 'grid_like_filter'), - 'UseGalleryPlus' => Array('title'=>'la_col_GP', 'data_block' => 'grid_edit_checkbox_td', 'filter_block' => 'grid_like_filter'), + 'UseGalleryPlus' => Array ('title' => 'la_col_GP', 'data_block' => 'grid_edit_checkbox_td', 'filter_block' => 'grid_like_filter'), - 'EnhancementBoldTitle' => Array('title'=>'la_col_B', 'data_block' => 'grid_edit_checkbox_td', 'filter_block' => 'grid_like_filter'), + 'EnhancementBoldTitle' => Array ('title' => 'la_col_B', 'data_block' => 'grid_edit_checkbox_td', 'filter_block' => 'grid_like_filter'), - 'EnhancementBorder' => Array('title'=>'la_col_F', 'data_block' => 'grid_edit_checkbox_td', 'filter_block' => 'grid_like_filter'), + 'EnhancementBorder' => Array ('title' => 'la_col_F', 'data_block' => 'grid_edit_checkbox_td', 'filter_block' => 'grid_like_filter'), - 'EnhancementHighlight' => Array('title'=>'la_col_H', 'data_block' => 'grid_edit_checkbox_td', 'filter_block' => 'grid_like_filter'), + 'EnhancementHighlight' => Array ('title' => 'la_col_H', 'data_block' => 'grid_edit_checkbox_td', 'filter_block' => 'grid_like_filter'), - 'EnhancementFeatured' => Array('title'=>'la_col_FP', 'data_block' => 'grid_edit_checkbox_td', 'filter_block' => 'grid_like_filter'), + 'EnhancementFeatured' => Array ('title' => 'la_col_FP', 'data_block' => 'grid_edit_checkbox_td', 'filter_block' => 'grid_like_filter'), - 'EnhancementHomePageFeatured' => Array('title'=>'la_col_FH', 'data_block' => 'grid_edit_checkbox_td', 'filter_block' => 'grid_like_filter'), + 'EnhancementHomePageFeatured' => Array ('title' => 'la_col_FH', 'data_block' => 'grid_edit_checkbox_td', 'filter_block' => 'grid_like_filter'), - ), - ), - ), - ); \ No newline at end of file + ), + ), + ), +); \ No newline at end of file Index: modules/in-auction/units/product_listing/product_listing_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-auction/units/product_listing/product_listing_config.php (revision 15601) +++ modules/in-auction/units/product_listing/product_listing_config.php (revision ) @@ -13,337 +13,305 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'p-ebay', + 'Prefix' => 'p-ebay', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'ProductListingEventHandler', 'file' => 'product_listing_eh.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'ProductListingEventHandler', 'file' => 'product_listing_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'ProductListingTagProcessor', 'file' => 'product_listing_tp.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'ProductListingTagProcessor', 'file' => 'product_listing_tp.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'Hooks' => Array ( + 'Hooks' => Array ( - Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnModifyProductsConfig', - ), + Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnModifyProductsConfig', + ), - Array ( - 'Mode' => hAFTER, - 'Conditional' => true, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnPreSave'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnProductsPreSave', - ), + Array ( + 'Mode' => hAFTER, + 'Conditional' => true, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnPreSave'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnProductsPreSave', + ), -// Array ( -// 'Mode' => hAFTER, -// 'Conditional' => false, -// 'HookToPrefix' => 'img', -// 'HookToSpecial' => '*', -// 'HookToEvent' => Array ('OnAfterCopyToLive'), -// 'DoPrefix' => '', -// 'DoSpecial' => '*', -// 'DoEvent' => 'OnAfterCopyImagesToLive', -// ), - - + /*Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'img', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterCopyToLive'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnAfterCopyImagesToLive', + ),*/ - ), + ), + - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', + 1 => 'id', - 2 => 'Page', + 2 => 'Page', - 3 => 'PerPage', + 3 => 'PerPage', - 4 => 'event', + 4 => 'event', - 5 => 'type', + 5 => 'type', - 6 => 'mode', + 6 => 'mode', - ), + ), - - 'IDField' => 'ProductListingId', + 'IDField' => 'ProductListingId', - 'TitleField' => 'ProductId', // field, used in bluebar when editing existing item + 'TitleField' => 'ProductId', // field, used in bluebar when editing existing item - 'TitlePhrase' => 'la_title_eBay', + 'TitlePhrase' => 'la_title_eBay', -// 'TitlePresets' => Array ( -// 'default' => Array ( 'new_status_labels' => Array ('c-ebay' => '!la_title_adding_eBay!'), -// 'edit_status_labels' => Array ('c-ebay' => '!la_title_Editing_eBay!'), -// 'new_titlefield' => Array ('c-ebay' => ''), -// 'categories_ebay' => Array ('c-ebay' => '!la_eBay!'), -// ), -//// 'custom_fields_list' =>Array ( 'prefixes' => Array ('cebay_List'), -//// 'format' => "!la_tab_ConfigCustom!", -//// ), -//// -// 'categories_ebay' =>Array ( 'prefixes' => Array ('c-ebay'), -// 'new_titlefield' => Array ('c-ebay' => '!la_eBay!'), -// 'format' => "#cf_status# '#cf_titlefield#'"//, -// ), -// ), - - 'TableName' => TABLE_PREFIX.'eBayProductListings', + 'TableName' => TABLE_PREFIX.'eBayProductListings', - 'ForeignKey' => 'ProductId', + 'ForeignKey' => 'ProductId', - 'ParentTableKey' => 'ProductId', - 'ParentPrefix' => 'p', + 'ParentTableKey' => 'ProductId', + 'ParentPrefix' => 'p', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - -// 'ListSQLs' => Array ( '' => 'SELECT * FROM %s', -// ), // key - special, value - list select sql -// -// 'ListSortings' => Array ( -// '' => Array ( -// 'Sorting' => Array ('FieldName' => 'asc'), -// ), -// -// 'general' => Array ( -// 'Sorting' => Array ('DisplayOrder' => 'asc') -// ), -// -// ), - - 'ItemSQLs' => Array ( '' => 'SELECT * FROM %s', + 'ItemSQLs' => Array ( + '' => ' SELECT * + FROM %s', - ), + ), -// 'SubItems' => Array ('confs-cf'), - 'Fields' => Array ( + 'Fields' => Array ( - 'ProductListingId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ProductId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'SubTitle' => Array ('type' => 'string', 'default' => null), - 'DetailTemplateId' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayListingDetailTemplates - ORDER BY TemplateName', - 'option_key_field' => 'DetailTemplateId', - 'option_title_field' => 'TemplateName', - 'default' => null, - ), - 'UseGallery' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'default' => null, - ), - 'UseGalleryPlus' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'default' => null, - ), - 'HitCounter' => Array ( - 'type' => 'string', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayFieldOptions - WHERE FieldName = "HitCounter" - ORDER BY FieldOptionTitle', - 'option_key_field' => 'FieldOptionKey', - 'option_title_field' => 'FieldOptionTitle', - 'default' => null, - ), - 'AuctionPrimaryCategoryId' => Array ('type' => 'int', 'default' => null), - 'AuctionSecondaryCategoryId' => Array ('type' => 'int', 'default' => null), - 'AuctionListingDuration' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayFieldOptions - WHERE FieldName = "AuctionListingDuration" - ORDER BY ROUND(FieldOptionTitle)', - 'option_key_field' => 'FieldOptionKey', - 'option_title_field' => 'FieldOptionTitle', - 'default' => null, - ), - 'StorePrimaryCategoryId' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayStoreCategories sc - WHERE - NOT EXISTS ( - SELECT * - FROM ' . TABLE_PREFIX . 'eBayStoreCategories sc2 - WHERE sc2.ParentId = sc.CategoryId - ) - ORDER BY CategoryName', - 'option_key_field' => 'CategoryId', - 'option_title_field' => 'CategoryName', - 'default' => null, + 'ProductListingId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ProductId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'SubTitle' => Array ('type' => 'string', 'default' => null), + 'DetailTemplateId' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayListingDetailTemplates + ORDER BY TemplateName', + 'option_key_field' => 'DetailTemplateId', + 'option_title_field' => 'TemplateName', + 'default' => null, + ), + 'UseGallery' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'default' => null, + ), + 'UseGalleryPlus' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'default' => null, + ), + 'HitCounter' => Array ( + 'type' => 'string', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayFieldOptions + WHERE FieldName = "HitCounter" + ORDER BY FieldOptionTitle', + 'option_key_field' => 'FieldOptionKey', + 'option_title_field' => 'FieldOptionTitle', + 'default' => null, + ), + 'AuctionPrimaryCategoryId' => Array ('type' => 'int', 'default' => null), + 'AuctionSecondaryCategoryId' => Array ('type' => 'int', 'default' => null), + 'AuctionListingDuration' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayFieldOptions + WHERE FieldName = "AuctionListingDuration" + ORDER BY ROUND(FieldOptionTitle)', + 'option_key_field' => 'FieldOptionKey', + 'option_title_field' => 'FieldOptionTitle', + 'default' => null, + ), + 'StorePrimaryCategoryId' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayStoreCategories sc + WHERE + NOT EXISTS ( + SELECT * + FROM ' . TABLE_PREFIX . 'eBayStoreCategories sc2 + WHERE sc2.ParentId = sc.CategoryId + ) + ORDER BY CategoryName', + 'option_key_field' => 'CategoryId', + 'option_title_field' => 'CategoryName', + 'default' => null, - ), + ), - 'StoreSecondaryCategoryId' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayStoreCategories sc - WHERE - NOT EXISTS ( - SELECT * - FROM ' . TABLE_PREFIX . 'eBayStoreCategories sc2 - WHERE sc2.ParentId = sc.CategoryId - ) - ORDER BY CategoryName', - 'option_key_field' => 'CategoryId', - 'option_title_field' => 'CategoryName', - 'default' => null, - ), - 'StoreListingDuration' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayFieldOptions - WHERE FieldName = "StoreListingDuration" - ORDER BY ROUND(FieldOptionTitle)', - 'option_key_field' => 'FieldOptionKey', - 'option_title_field' => 'FieldOptionTitle', - 'default' => null, - ), - 'PaymentMethod' => Array ( - 'type' => 'string', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayFieldOptions - WHERE FieldName = "PaymentMethod" - ORDER BY FieldOptionTitle', - 'option_key_field' => 'FieldOptionKey', - 'option_title_field' => 'FieldOptionTitle', - 'default' => null, - ), + 'StoreSecondaryCategoryId' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayStoreCategories sc + WHERE + NOT EXISTS ( + SELECT * + FROM ' . TABLE_PREFIX . 'eBayStoreCategories sc2 + WHERE sc2.ParentId = sc.CategoryId + ) + ORDER BY CategoryName', + 'option_key_field' => 'CategoryId', + 'option_title_field' => 'CategoryName', + 'default' => null, + ), + 'StoreListingDuration' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayFieldOptions + WHERE FieldName = "StoreListingDuration" + ORDER BY ROUND(FieldOptionTitle)', + 'option_key_field' => 'FieldOptionKey', + 'option_title_field' => 'FieldOptionTitle', + 'default' => null, + ), + 'PaymentMethod' => Array ( + 'type' => 'string', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayFieldOptions + WHERE FieldName = "PaymentMethod" + ORDER BY FieldOptionTitle', + 'option_key_field' => 'FieldOptionKey', + 'option_title_field' => 'FieldOptionTitle', + 'default' => null, + ), - 'PayPalSellerEmail' => Array( + 'PayPalSellerEmail' => Array ( - 'type' => 'string', - 'formatter' => 'kFormatter', - 'regexp' => '/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', - 'sample_value' => 'email@domain.com', + 'type' => 'string', + 'formatter' => 'kFormatter', + 'regexp' => '/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', + 'sample_value' => 'email@domain.com', - 'error_msgs' => Array( + 'error_msgs' => Array ( - 'invalid_format' => '!la_invalid_email!', - 'unique' => '!lu_email_already_exist!' - ), - 'default' => null, - ), - 'HasReturnPolicy' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'default' => null, - ), - 'RefundType' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayFieldOptions - WHERE FieldName = "RefundType" - ORDER BY FieldOptionTitle', - 'option_key_field' => 'FieldOptionKey', - 'option_title_field' => 'FieldOptionTitle', - 'default' => null, - ), - 'ReturnRequestDays' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayFieldOptions - WHERE FieldName = "ReturnRequestDays"', - 'option_key_field' => 'FieldOptionKey', - 'option_title_field' => 'FieldOptionTitle', - 'default' => null, - ), + 'invalid_format' => '!la_invalid_email!', + 'unique' => '!lu_email_already_exist!' + ), + 'default' => null, + ), + 'HasReturnPolicy' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'default' => null, + ), + 'RefundType' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayFieldOptions + WHERE FieldName = "RefundType" + ORDER BY FieldOptionTitle', + 'option_key_field' => 'FieldOptionKey', + 'option_title_field' => 'FieldOptionTitle', + 'default' => null, + ), + 'ReturnRequestDays' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayFieldOptions + WHERE FieldName = "ReturnRequestDays"', + 'option_key_field' => 'FieldOptionKey', + 'option_title_field' => 'FieldOptionTitle', + 'default' => null, + ), - 'ReturnPolicyDetails' => Array( + 'ReturnPolicyDetails' => Array ( - 'type' => 'string', - 'formatter' => 'kFormatter', 'using_fck' => 1, - 'default' => null, - ), - 'AutoRelist' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'default' => null, - ), + 'type' => 'string', + 'formatter' => 'kFormatter', 'using_fck' => 1, + 'default' => null, + ), + 'AutoRelist' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'default' => null, + ), - 'PaymentInstructions' => Array( + 'PaymentInstructions' => Array ( - 'type' => 'string', - 'formatter' => 'kFormatter', 'using_fck' => 1, - 'default' => null, - ), - 'Images' => Array ('type' => 'string', 'default' => null), - 'ListingTitle' => Array ('type' => 'string', 'default' => null), - 'ListingDescription' => Array ( - 'type' => 'string', - 'formatter' => 'kFormatter', 'using_fck' => 1, - 'default' => null, - ), - 'AuctionStartPrice' => Array ( - 'type' => 'float', - 'formatter' => 'kFormatter', 'format' => '%0.2f', - 'min_value_inc' => 0, 'default' => null, - ), - 'AuctionBuyItNowPrice' => Array ( - 'type' => 'float', - 'formatter' => 'kFormatter', 'format' => '%0.2f', - 'min_value_inc' => 0, 'default' => null, - ), - 'AuctionReservePrice' => Array ( - 'type' => 'float', - 'formatter' => 'kFormatter', 'format' => '%0.2f', - 'min_value_inc' => 0, 'default' => null, - ), - 'StoreBuyItNowPrice' => Array ( - 'type' => 'float', - 'formatter' => 'kFormatter', 'format' => '%0.2f', - 'min_value_inc' => 0, 'default' => null, - ), - 'InsuranceType' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Percent', 2 => 'la_Flat'), 'use_phrases' => 1, - 'default' => null, - ), - 'InsuranceAmount' => Array ( - 'type' => 'float', - 'formatter' => 'kFormatter', 'format' => '%0.2f', - 'min_value_inc' => 0, 'default' => null, - ), - 'UseInsurance' => Array ( - 'type' => 'string', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayFieldOptions - WHERE FieldName = "InsuranceOption"', - 'option_key_field' => 'FieldOptionKey', - 'option_title_field' => 'FieldOptionTitle', - 'default' => null, - ), - 'ShippingAsParent' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 1, - ), - 'GetItFast' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'not_null' => 0, 'default' => null, - ), - 'ItemSpecifics' => Array ('type' => 'string', 'default' => null), - 'CustomItemSpecifics' => Array ('type' => 'string', 'default' => null), - 'BlockScheduling' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'not_null' => 0, 'default' => 0, - ), + 'type' => 'string', + 'formatter' => 'kFormatter', 'using_fck' => 1, + 'default' => null, + ), + 'Images' => Array ('type' => 'string', 'default' => null), + 'ListingTitle' => Array ('type' => 'string', 'default' => null), + 'ListingDescription' => Array ( + 'type' => 'string', + 'formatter' => 'kFormatter', 'using_fck' => 1, + 'default' => null, + ), + 'AuctionStartPrice' => Array ( + 'type' => 'float', + 'formatter' => 'kFormatter', 'format' => '%0.2f', + 'min_value_inc' => 0, 'default' => null, + ), + 'AuctionBuyItNowPrice' => Array ( + 'type' => 'float', + 'formatter' => 'kFormatter', 'format' => '%0.2f', + 'min_value_inc' => 0, 'default' => null, + ), + 'AuctionReservePrice' => Array ( + 'type' => 'float', + 'formatter' => 'kFormatter', 'format' => '%0.2f', + 'min_value_inc' => 0, 'default' => null, + ), + 'StoreBuyItNowPrice' => Array ( + 'type' => 'float', + 'formatter' => 'kFormatter', 'format' => '%0.2f', + 'min_value_inc' => 0, 'default' => null, + ), + 'InsuranceType' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Percent', 2 => 'la_Flat'), 'use_phrases' => 1, + 'default' => null, + ), + 'InsuranceAmount' => Array ( + 'type' => 'float', + 'formatter' => 'kFormatter', 'format' => '%0.2f', + 'min_value_inc' => 0, 'default' => null, + ), + 'UseInsurance' => Array ( + 'type' => 'string', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayFieldOptions + WHERE FieldName = "InsuranceOption"', + 'option_key_field' => 'FieldOptionKey', + 'option_title_field' => 'FieldOptionTitle', + 'default' => null, + ), + 'ShippingAsParent' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 1, + ), + 'GetItFast' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'not_null' => 0, 'default' => null, + ), + 'ItemSpecifics' => Array ('type' => 'string', 'default' => null), + 'CustomItemSpecifics' => Array ('type' => 'string', 'default' => null), + 'BlockScheduling' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'not_null' => 0, 'default' => 0, + ), - - ), - ); + ), +); \ No newline at end of file Index: modules/in-commerce/units/coupon_items/coupon_items_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/coupon_items/coupon_items_config.php (revision 15601) +++ modules/in-commerce/units/coupon_items/coupon_items_config.php (revision ) @@ -11,140 +11,137 @@ * See http://www.in-portal.org/commercial-license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'coupi', + 'Prefix' => 'coupi', - 'ItemClass' => Array('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class' => 'CouponItemsEventHandler', 'file' => 'coupon_items_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'CouponItemsEventHandler', 'file' => 'coupon_items_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class' => 'CouponItemsTagProcessor', 'file' => 'coupon_items_tag_processor.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'CouponItemsTagProcessor', 'file' => 'coupon_items_tag_processor.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, + - 'Hooks' => Array( + 'Hooks' => Array ( - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'p', - 'HookToSpecial' => '-item', + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'p', + 'HookToSpecial' => '-item', - 'HookToEvent' => Array('OnAfterItemDelete'), + 'HookToEvent' => Array ('OnAfterItemDelete'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnDeleteCouponItem', - ), - ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnDeleteCouponItem', + ), + ), - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), - 'IDField' => 'CouponItemId', + 'IDField' => 'CouponItemId', - 'StatusField' => Array('Status'), + 'StatusField' => Array ('Status'), - 'TableName' => TABLE_PREFIX . 'ProductsCouponItems', + 'TableName' => TABLE_PREFIX . 'ProductsCouponItems', - 'ForeignKey' => 'CouponId', - 'ParentTableKey' => 'CouponId', - 'ParentPrefix' => 'coup', - 'AutoDelete' => true, - 'AutoClone' => true, + 'ForeignKey' => 'CouponId', + 'ParentTableKey' => 'CouponId', + 'ParentPrefix' => 'coup', + 'AutoDelete' => true, + 'AutoClone' => true, - 'ListSQLs' => Array( + 'ListSQLs' => Array ( - '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN ' . TABLE_PREFIX . 'Products p ON %1$s.ItemResourceId = p.ResourceId - LEFT JOIN ' . TABLE_PREFIX . 'Categories c ON %1$s.ItemResourceId = c.ResourceId', + '' => ' SELECT %1$s.* %2$s + FROM %1$s + LEFT JOIN ' . TABLE_PREFIX . 'Products p ON %1$s.ItemResourceId = p.ResourceId + LEFT JOIN ' . TABLE_PREFIX . 'Categories c ON %1$s.ItemResourceId = c.ResourceId', - ), // key - special, value - list select sql - - 'ItemSQLs' => Array( - '' => 'SELECT * FROM %s', - ), + ), - /*'BelongsTo' => Array( + /*'BelongsTo' => Array ( - Array( + Array ( - 'prefix' => 'd', 'key' => 'DiscountId', 'ForeignKey' => 'DiscountId'), - ),*/ + 'prefix' => 'd', 'key' => 'DiscountId', 'ForeignKey' => 'DiscountId'), + ),*/ - 'ListSortings' => Array( + 'ListSortings' => Array ( - '' => Array( + '' => Array ( - 'Sorting' => Array('ItemName' => 'asc'), + 'Sorting' => Array ('ItemName' => 'asc'), - ), - ), + ), + ), - 'CalculatedFields' => Array( + 'CalculatedFields' => Array ( - '' => Array( + '' => Array ( - 'ProductId' => 'p.ProductId', - 'ItemName' => 'IF(p.Name IS NULL,c.Name,p.l1_Name)', - 'SKU' => 'p.SKU', - 'Weight' => 'p.Weight', - 'CreatedOn' => 'p.CreatedOn', - 'BackOrderDate' => 'p.BackOrderDate', - 'Status' => 'p.Status', - 'CategoryId' => 'c.CategoryId', - ), - ), + 'ProductId' => 'p.ProductId', + 'ItemName' => 'IF(p.Name IS NULL,c.Name,p.l1_Name)', + 'SKU' => 'p.SKU', + 'Weight' => 'p.Weight', + 'CreatedOn' => 'p.CreatedOn', + 'BackOrderDate' => 'p.BackOrderDate', + 'Status' => 'p.Status', + 'CategoryId' => 'c.CategoryId', + ), + ), - 'Fields' => Array ( + 'Fields' => Array ( - 'CouponItemId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'CouponItemId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'CouponId' => Array('type' => 'int', 'default' => null, ), + 'CouponId' => Array ('type' => 'int', 'default' => null, ), - 'ItemResourceId' => Array('type' => 'int', 'default' => null, ), + 'ItemResourceId' => Array ('type' => 'int', 'default' => null, ), - 'ItemType' => Array( + 'ItemType' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Product', 2 => 'la_Category', 0 => 'la_WholeOrder'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 1 - ), - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Product', 2 => 'la_Category', 0 => 'la_WholeOrder'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 1 + ), + ), - 'VirtualFields' => Array( + 'VirtualFields' => Array ( - 'ProductId' => Array('type' => 'int', 'default' => 0), + 'ProductId' => Array ('type' => 'int', 'default' => 0), - 'ItemName' => Array('type' => 'string', 'default' => ''), + 'ItemName' => Array ('type' => 'string', 'default' => ''), - 'SKU' => Array('type' => 'string', 'default' => ''), + 'SKU' => Array ('type' => 'string', 'default' => ''), - 'Weight' => Array( + 'Weight' => Array ( - 'type' => 'float', - 'formatter' => 'kFormatter', 'format' => '%0.2f', - 'min_value_exc' => 0, 'default' => NULL, - ), + 'type' => 'float', + 'formatter' => 'kFormatter', 'format' => '%0.2f', + 'min_value_exc' => 0, 'default' => NULL, + ), - 'CreatedOn' => Array( + 'CreatedOn' => Array ( - 'type' => 'int', - 'formatter' => 'kDateFormatter', - 'default' => '#NOW#', - ), + 'type' => 'int', + 'formatter' => 'kDateFormatter', + 'default' => '#NOW#', + ), - 'BackOrderDate' => Array( + 'BackOrderDate' => Array ( - 'type' => 'int', - 'formatter' => 'kDateFormatter', - 'default' => NULL, - ), + 'type' => 'int', + 'formatter' => 'kDateFormatter', + 'default' => NULL, + ), - 'Status' => Array ( + 'Status' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, - 'default' => 2, - ), - 'CategoryId' => Array ('type' => 'int', 'default' => 0), - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, + 'default' => 2, + ), + 'CategoryId' => Array ('type' => 'int', 'default' => 0), + ), - 'Grids' => Array( + 'Grids' => Array ( - 'Default' => Array( + 'Default' => Array ( - 'Icons' => Array('default'=>'icon16_entire_order.gif'), + 'Icons' => Array ('default' => 'icon16_entire_order.gif'), - 'Fields' => Array( + 'Fields' => Array ( - 'ItemType' => Array( 'title'=>'la_col_ItemType', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_empty_filter', 'width' => 200, ), + 'ItemType' => Array ( 'title' => 'la_col_ItemType', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_empty_filter', 'width' => 200, ), - ), - ), + ), + ), - 'CouponItems' => Array( + 'CouponItems' => Array ( - 'Icons' => Array( + 'Icons' => Array ( - 'default' => 'icon16_product.png', - 0 => 'icon16_product_disabled.png', - 1 => 'icon16_product.png', - 2 => 'icon16_product_pending.png', - ), + 'default' => 'icon16_product.png', + 0 => 'icon16_product_disabled.png', + 1 => 'icon16_product.png', + 2 => 'icon16_product_pending.png', + ), - 'Fields' => Array( + 'Fields' => Array ( - 'ProductId' => Array( 'title'=>'column:la_fld_Id', 'data_block' => 'grid_item_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'ProductId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_item_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'ItemName' => Array( 'filter_block' => 'grid_like_filter', 'width' => 250, ), + 'ItemName' => Array ( 'filter_block' => 'grid_like_filter', 'width' => 250, ), - 'ItemType' => Array( 'title'=>'la_col_CouponItemType', 'filter_block' => 'grid_options_filter', 'width' => 150, ), + 'ItemType' => Array ( 'title' => 'la_col_CouponItemType', 'filter_block' => 'grid_options_filter', 'width' => 150, ), - ), - ), - ), + ), + ), + ), - - ); \ No newline at end of file +); \ No newline at end of file Index: modules/in-auction/units/sections/sections_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-auction/units/sections/sections_config.php (revision 15601) +++ modules/in-auction/units/sections/sections_config.php (revision ) @@ -13,221 +13,216 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'ebay-sections', + 'Prefix' => 'ebay-sections', - 'ConfigPriority' => 2, + 'ConfigPriority' => 2, - 'EventHandlerClass' => Array('class' => 'EbayEventHandler', 'file' => 'ebay_eh.php', 'build_event' => 'OnBuild'), // for OnAfterConfigRead event + 'EventHandlerClass' => Array ('class' => 'EbayEventHandler', 'file' => 'ebay_eh.php', 'build_event' => 'OnBuild'), // for OnAfterConfigRead event - 'TagProcessorClass' => Array('class' => 'EbayTagProcessor', 'file' => 'ebay_tp.php', 'build_event' => 'OnBuild'), // for tree drawing + 'TagProcessorClass' => Array ('class' => 'EbayTagProcessor', 'file' => 'ebay_tp.php', 'build_event' => 'OnBuild'), // for tree drawing - 'RegisterClasses' => Array ( -// Array ('pseudo' => 'c_TagProcessor', 'class' => 'ECategoriesTagProcessor', 'file' => 'categories_tp.php'), -// Array ('pseudo' => 'img_EventHandler', 'class' => 'EImageEventHandler', 'file' => 'image_eh.php'), - ), + /*'RegisterClasses' => Array ( + Array ('pseudo' => 'c_TagProcessor', 'class' => 'ECategoriesTagProcessor', 'file' => 'categories_tp.php'), + Array ('pseudo' => 'img_EventHandler', 'class' => 'EImageEventHandler', 'file' => 'image_eh.php'), + ),*/ - 'ScheduledTasks' => Array( + 'ScheduledTasks' => Array ( - 'seller_transactions' => Array('EventName' => 'OnGetSellerTransactions', 'RunSchedule' => '*/10 * * * *'), + 'seller_transactions' => Array ('EventName' => 'OnGetSellerTransactions', 'RunSchedule' => '*/10 * * * *'), - 'seller_list' => Array('EventName' => 'OnGetSellerList', 'RunSchedule' => '*/10 * * * *'), + 'seller_list' => Array ('EventName' => 'OnGetSellerList', 'RunSchedule' => '*/10 * * * *'), - 'auto_dispute' => Array('EventName' => 'OnAutoDispute', 'RunSchedule' => '*/10 * * * *'), + 'auto_dispute' => Array ('EventName' => 'OnAutoDispute', 'RunSchedule' => '*/10 * * * *'), - 'auctions_schedule' => Array('EventName' => 'OnProcessSchedule', 'RunSchedule' => '*/30 * * * *'), + 'auctions_schedule' => Array ('EventName' => 'OnProcessSchedule', 'RunSchedule' => '*/30 * * * *'), - 'subscribe_ebay_notifications' => Array('EventName' => 'OnSubscribeListingNotifications', 'RunSchedule' => '0 0 */5 * *'), + 'subscribe_ebay_notifications' => Array ('EventName' => 'OnSubscribeListingNotifications', 'RunSchedule' => '0 0 */5 * *'), - 'delete_old_hits' => Array('EventName' => 'OnDeleteOldHits', 'RunSchedule' => '0 */20 * * *'), + 'delete_old_hits' => Array ('EventName' => 'OnDeleteOldHits', 'RunSchedule' => '0 */20 * * *'), - 'revise_checkout_statuses' => Array('EventName' => 'OnReviseCheckoutStatuses', 'RunSchedule' => '0 */12 * * *'), + 'revise_checkout_statuses' => Array ('EventName' => 'OnReviseCheckoutStatuses', 'RunSchedule' => '0 */12 * * *'), - 'receive_feedbacks' => Array('EventName' => 'OnReceiveFeedbacks', 'RunSchedule' => '0 */12 * * *'), + 'receive_feedbacks' => Array ('EventName' => 'OnReceiveFeedbacks', 'RunSchedule' => '0 */12 * * *'), - 'send_feedbacks' => Array('EventName' => 'OnSendFeedbacks', 'RunSchedule' => '0 */12 * * *'), + 'send_feedbacks' => Array ('EventName' => 'OnSendFeedbacks', 'RunSchedule' => '0 */12 * * *'), - 'send_feedback_notifications' => Array('EventName' => 'OnSendFeedbackNotifications', 'RunSchedule' => '0 */12 * * *'), + 'send_feedback_notifications' => Array ('EventName' => 'OnSendFeedbackNotifications', 'RunSchedule' => '0 */12 * * *'), - ), + ), - - 'Hooks' => Array( + 'Hooks' => Array ( - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'p', - 'HookToSpecial' => '*', + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'p', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnBeforeItemCreate'), + 'HookToEvent' => Array ('OnBeforeItemCreate'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnBeforeProductItemCreate', - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnBeforeProductItemCreate', + ), - Array( + Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'ord', - 'HookToSpecial' => '*', + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'ord', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnRemoveFromCart'), + 'HookToEvent' => Array ('OnRemoveFromCart'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnBeforeRemoveFromCart', - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnBeforeRemoveFromCart', + ), - Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'u', - 'HookToSpecial' => '*', + Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'u', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnAfterConfigRead'), + 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnModifyUsersConfig', - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnModifyUsersConfig', + ), - Array( + Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'ord', - 'HookToSpecial' => '*', + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'ord', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnRecalculateItems'), + 'HookToEvent' => Array ('OnRecalculateItems'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnBeforeRecalculateItems', - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnBeforeRecalculateItems', + ), - Array( + Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'ord', - 'HookToSpecial' => '*', + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'ord', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnCompleteOrder'), + 'HookToEvent' => Array ('OnCompleteOrder'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnBeforeCompleteOrder', - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnBeforeCompleteOrder', + ), - Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'img', - 'HookToSpecial' => '*', + Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'img', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnCreate'), + 'HookToEvent' => Array ('OnCreate'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnAfterImageAdded', - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnAfterImageAdded', + ), - Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'p', - 'HookToSpecial' => '*', + Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'p', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnSave'), + 'HookToEvent' => Array ('OnSave'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnAfterSaveProduct', - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnAfterSaveProduct', + ), - Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'p', - 'HookToSpecial' => '*', + Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'p', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnAfterConfigRead'), + 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnAfterProductConfigRead', - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnAfterProductConfigRead', + ), - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'c', - 'HookToSpecial' => '*', + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'c', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnAfterConfigRead'), + 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnAfterCategoryConfigRead', - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnAfterCategoryConfigRead', + ), - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'conf', - 'HookToSpecial' => '*', + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'conf', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnUpdate'), + 'HookToEvent' => Array ('OnUpdate'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnConfigUpdate', - ), - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnConfigUpdate', + ), + ), - - - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', + 1 => 'id', - 2 => 'Page', + 2 => 'Page', - 3 => 'event', + 3 => 'event', - 4 => 'type', + 4 => 'type', - 5 => 'mode', + 5 => 'mode', - ), + ), - - 'TitlePresets' => Array ( + 'TitlePresets' => Array ( - 'tree_ebay' => Array('format' => '!la_Text_Version! '.$this->Application->findModule('Name', 'eBay', 'Version')), + 'tree_ebay' => Array ('format' => '!la_Text_Version! '.$this->Application->findModule('Name', 'eBay', 'Version')), - ), + ), - 'PermSection' => Array('main' => 'ebay'), + 'PermSection' => Array ('main' => 'ebay'), - 'Sections' => Array ( - 'ebay' => Array ( + 'Sections' => Array ( + 'ebay' => Array ( - 'parent' => 'in-portal:root', + 'parent' => 'in-portal:root', - 'icon' => 'ebay', + 'icon' => 'ebay', - 'label' => 'la_title_eBay', + 'label' => 'la_title_eBay', - 'url' => Array('t' => 'index', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'index', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array('view'), + 'permissions' => Array ('view'), - 'priority' => 2.2, + 'priority' => 2.2, - 'container' => true, + 'container' => true, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - // auction settings - 'ebay:setting_folder' => Array ( + // auction settings + 'ebay:setting_folder' => Array ( - 'parent' => 'in-portal:system', + 'parent' => 'in-portal:system', - 'icon' => 'in-auction:system_management', + 'icon' => 'in-auction:system_management', - 'label' => 'la_title_eBay', + 'label' => 'la_title_eBay', - 'use_parent_header' => 1, + 'use_parent_header' => 1, - 'url' => Array ('t' => 'index', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'index', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view'), + 'permissions' => Array ('view'), - 'priority' => 3.2, + 'priority' => 3.2, - 'container' => true, + 'container' => true, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'ebay:configuration_general' => Array ( + 'ebay:configuration_general' => Array ( - 'parent' => 'ebay:setting_folder', + 'parent' => 'ebay:setting_folder', - 'icon' => 'in-auction:system_settings', + 'icon' => 'in-auction:system_settings', - 'label' => 'la_tab_ConfigSystem', + 'label' => 'la_tab_ConfigSystem', - 'url' => Array('t' => 'in-auction/configuration', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'in-auction/configuration', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array('view','edit'), + 'permissions' => Array ('view', 'edit'), - 'priority' => 1, + 'priority' => 1, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'ebay:listings_defaults' => Array ( + 'ebay:listings_defaults' => Array ( - 'parent' => 'ebay:setting_folder', + 'parent' => 'ebay:setting_folder', - 'icon' => 'in-auction:listing_defaults', + 'icon' => 'in-auction:listing_defaults', - 'label' => 'la_tab_ListingsDefaults', + 'label' => 'la_tab_ListingsDefaults', - 'url' => Array('t' => 'in-auction/listings_defaults', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'in-auction/listings_defaults', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array('view','edit'), + 'permissions' => Array ('view', 'edit'), - 'priority' => 2, + 'priority' => 2, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'ebay:configuration_feedbacks' => Array ( + 'ebay:configuration_feedbacks' => Array ( - 'parent' => 'ebay:setting_folder', + 'parent' => 'ebay:setting_folder', - 'icon' => 'in-auction:general_settings', + 'icon' => 'in-auction:general_settings', - 'label' => 'la_tab_ConfigGeneral', + 'label' => 'la_tab_ConfigGeneral', - 'url' => Array('t' => 'in-auction/feedbacks_config', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'in-auction/feedbacks_config', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array('view','edit'), + 'permissions' => Array ('view', 'edit'), - 'priority' => 3, + 'priority' => 3, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - 'ReplacementTemplates' => Array ( -// 'categories/categories_tabs' => 'in-auction/categories/categories_tabs', -// 'in-commerce/products/products_tabs' => 'in-auction/products/products_tabs', - ), - + /*'ReplacementTemplates' => Array ( + 'categories/categories_tabs' => 'in-auction/categories/categories_tabs', + 'in-commerce/products/products_tabs' => 'in-auction/products/products_tabs', + ),*/ - ); \ No newline at end of file +); \ No newline at end of file Index: modules/in-commerce/units/gateway_field_values/gateway_field_values_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/gateway_field_values/gateway_field_values_config.php (revision 15601) +++ modules/in-commerce/units/gateway_field_values/gateway_field_values_config.php (revision ) @@ -13,37 +13,39 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'gwfv', + 'Prefix' => 'gwfv', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'kDBEventHandler','file'=>'','build_event'=>'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'kDBEventHandler', 'file' => '', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class'=>'kDBTagProcessor','file'=>'','build_event'=>'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + - 'AutoLoad' => false, + 'AutoLoad' => false, - 'hooks' => Array(), + - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), + - 'IDField' => 'GWConfigValueId', + 'IDField' => 'GWConfigValueId', - 'TableName' => TABLE_PREFIX.'GatewayConfigValues', + 'TableName' => TABLE_PREFIX.'GatewayConfigValues', - 'ForeignKey' => 'PaymentTypeId', - 'ParentTableKey' => 'PaymentTypeId', - 'ParentPrefix' => 'pt', + 'ForeignKey' => 'PaymentTypeId', + 'ParentTableKey' => 'PaymentTypeId', + 'ParentPrefix' => 'pt', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - 'ListSQLs' => Array (''=>'SELECT * FROM %s' - ), // key - special, value - list select sql - 'ItemSQLs' => Array( ''=>'SELECT * FROM %s', + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s' - ), + ), - 'Fields' => Array ( + 'Fields' => Array ( - 'GWConfigValueId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0, ), + 'GWConfigValueId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), - 'GWConfigFieldId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0, ), + 'GWConfigFieldId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), - 'PaymentTypeId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0, ), + 'PaymentTypeId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), - 'Value' => Array('type' => 'string', 'max_len' => 255, 'default' => null, ), + 'Value' => Array ('type' => 'string', 'max_len' => 255, 'default' => null, ), - ), - ); \ No newline at end of file + ), +); \ No newline at end of file Index: modules/in-commerce/units/gateways/gateways_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/gateways/gateways_config.php (revision 15601) +++ modules/in-commerce/units/gateways/gateways_config.php (revision ) @@ -13,62 +13,63 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'gwf', + 'Prefix' => 'gwf', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'GatewayEventHandler','file'=>'gw_event_handler.php','build_event'=>'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'GatewayEventHandler', 'file' => 'gw_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class'=>'GatewayTagProcessor','file'=>'gw_tag_processor.php','build_event'=>'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'GatewayTagProcessor', 'file' => 'gw_tag_processor.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, + - 'Hooks' => Array( + 'Hooks' => Array ( - Array( + Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'pt', - 'HookToSpecial' => '', + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'pt', + 'HookToSpecial' => '', - 'HookToEvent' => Array( 'OnListBuild' ), + 'HookToEvent' => Array ( 'OnListBuild' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnCheckGateways', - ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnCheckGateways', + ), - Array( + Array ( - 'Mode' => hBEFORE, - 'Conditional' => true, - 'HookToPrefix' => 'pt', - 'HookToSpecial' => '', + 'Mode' => hBEFORE, + 'Conditional' => true, + 'HookToPrefix' => 'pt', + 'HookToSpecial' => '', - 'HookToEvent' => Array( 'OnCreate', 'OnSave', 'OnUpdate', 'onPreSaveAndGoToTab', 'onPreSaveAndGo' ), + 'HookToEvent' => Array ( 'OnCreate', 'OnSave', 'OnUpdate', 'onPreSaveAndGoToTab', 'onPreSaveAndGo' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnSaveValues', - ), - ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnSaveValues', + ), + ), + - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), + - 'IDField' => 'GWConfigFieldId', + 'IDField' => 'GWConfigFieldId', - 'TableName' => TABLE_PREFIX.'GatewayConfigFields', + 'TableName' => TABLE_PREFIX.'GatewayConfigFields', - 'ListSQLs' => Array ( + 'ListSQLs' => Array ( - '' => 'SELECT * FROM %s', - ), // key - special, value - list select sql - - 'ItemSQLs' => Array ( - ''=>'SELECT * FROM %s', + '' => ' SELECT * + FROM %s', - ), + ), - 'Fields' => Array ( + 'Fields' => Array ( - 'GWConfigFieldId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0, ), + 'GWConfigFieldId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), - 'SystemFieldName' => Array('type' => 'string', 'not_null' => 1, 'default' => '', ), + 'SystemFieldName' => Array ('type' => 'string', 'not_null' => 1, 'default' => '', ), - 'FieldName' => Array('type' => 'string', 'required' => true, 'max_len' => 100, 'not_null' => 1, 'default' => '', ), + 'FieldName' => Array ('type' => 'string', 'required' => true, 'max_len' => 100, 'not_null' => 1, 'default' => '', ), - 'ElementType' => Array('type' => 'string', 'not_null' => 1, 'default' => 'text', ), + 'ElementType' => Array ('type' => 'string', 'not_null' => 1, 'default' => 'text', ), - 'ValueList' => Array('type' => 'string', 'default' => NULL), + 'ValueList' => Array ('type' => 'string', 'default' => NULL), - 'GatewayId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0, ), + 'GatewayId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), - ), + ), - 'VirtualFields' => Array ( + 'VirtualFields' => Array ( - 'Value' => Array('type' => 'string', 'default' => ''), + 'Value' => Array ('type' => 'string', 'default' => ''), - ), - ); \ No newline at end of file + ), +); \ No newline at end of file Index: modules/custom/units/widgets/widgets_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/custom/units/widgets/widgets_config.php (revision 15601) +++ modules/custom/units/widgets/widgets_config.php (revision ) @@ -9,14 +9,13 @@ defined('FULL_PATH') or die('restricted access!'); $config = Array ( - - 'Prefix' => 'widget', + 'Prefix' => 'widget', 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'WidgetEventHandler', 'file' => 'widget_eh.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'WidgetEventHandler', 'file' => 'widget_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'WidgetTagProcessor', 'file' => 'widget_tp.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'WidgetTagProcessor', 'file' => 'widget_tp.php', 'build_event' => 'OnBuild'), 'AutoLoad' => true, @@ -38,11 +37,11 @@ 'StatusField' => Array ('Status'), - 'TableName' => TABLE_PREFIX.'Widgets', + 'TableName' => TABLE_PREFIX.'Widgets', /* - 'ForeignKey' => 'ParentId', // field title in TableName, linking record to a parent + 'ForeignKey' => 'ParentId', // field title in TableName, linking record to a parent - 'ParentTableKey' => 'ParentId', // id (or other key) field title in parent's table + 'ParentTableKey' => 'ParentId', // id (or other key) field title in parent's table 'ParentPrefix' => 'parent', 'AutoDelete' => true, // delete these items when parent is being deleted 'AutoClone' => true, // clone these items when parent is being cloned @@ -74,7 +73,7 @@ 'Sections' => Array ( 'custom:widgets' => Array ( - 'parent' => 'custom', + 'parent' => 'custom', 'icon' => 'custom', 'label' => 'la_tab_Widgets', 'url' => Array ('t' => 'custom/widgets/widget_list', 'pass' => 'm'), @@ -84,31 +83,26 @@ ), ), - 'TitleField' => 'Title', // field, used in bluebar when editing existing item + 'TitleField' => 'Title', // field, used in bluebar when editing existing item // Use %1$s for local table name with prefix, %2$s for calculated fields 'ListSQLs' => Array ( // key - special, value - list select sql - '' => 'SELECT %1$s.* %2$s - FROM %1$s', - ), - - 'ItemSQLs' => Array ( - '' => 'SELECT %1$s.* %2$s + '' => ' SELECT %1$s.* %2$s - FROM %1$s', + FROM %1$s', ), - 'ListSortings' => Array ( + 'ListSortings' => Array ( '' => Array ( // 'ForcedSorting' => Array ('Priority' => 'desc'), 'Sorting' => Array ('Title' => 'asc'), ) ), - 'VirtualFields' => Array ( + 'VirtualFields' => Array ( 'VirtualActionField' => Array ('type' => 'string', 'default' => ''), ), - 'Fields' => Array ( + 'Fields' => Array ( 'WidgetId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), 'Title' => Array ( 'type' => 'string', 'max_len' => 255, @@ -145,7 +139,7 @@ 'type' => 'double', 'required' => 0, 'not_null' => 1, 'default' => 0 ), - 'Status' => Array ( + 'Status' => Array ( 'type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2, @@ -192,7 +186,7 @@ ), ), - 'Grids' => Array ( + 'Grids' => Array ( 'Default' => Array ( // 'Icons' => Array ('default' => 'icon16_custom.gif'), 'Fields' => Array ( \ No newline at end of file Index: modules/in-auction/units/detail_template/detail_template_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-auction/units/detail_template/detail_template_config.php (revision 15601) +++ modules/in-auction/units/detail_template/detail_template_config.php (revision ) @@ -11,100 +11,104 @@ * See http://www.in-portal.org/commercial-license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'dt', + 'Prefix' => 'dt', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'DetailTemplateEventHandler','file'=>'detail_template_eh.php','build_event'=>'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'DetailTemplateEventHandler', 'file' => 'detail_template_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class'=>'kDBTagProcessor','file'=>'','build_event'=>'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'Hooks' => Array( - /* + + /*'Hooks' => Array ( - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'dt', - 'HookToSpecial' => '', + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'dt', + 'HookToSpecial' => '', - 'HookToEvent' => Array('OnAfterItemLoad', 'OnBeforeItemCreate', 'OnBeforeItemUpdate', 'OnUpdateAddress'), + 'HookToEvent' => Array ('OnAfterItemLoad', 'OnBeforeItemCreate', 'OnBeforeItemUpdate', 'OnUpdateAddress'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnPrepareStates', - ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnPrepareStates', + ), - */ - ), + ),*/ + - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), + - 'IDField' => 'DetailTemplateId', + 'IDField' => 'DetailTemplateId', - 'StatusField' => Array(), + 'StatusField' => Array (), - 'TableName' => TABLE_PREFIX.'eBayListingDetailTemplates', + 'TableName' => TABLE_PREFIX.'eBayListingDetailTemplates', - 'TitlePresets' => Array( + 'TitlePresets' => Array ( - 'default' => Array( 'new_status_labels' => Array('dt'=>'!la_title_AddingDetailTemplate!'), + 'default' => Array ( + 'new_status_labels' => Array ('dt' => '!la_title_AddingDetailTemplate!'), - 'edit_status_labels' => Array('dt'=>'!la_title_EditingDetailTemplate!'), + 'edit_status_labels' => Array ('dt' => '!la_title_EditingDetailTemplate!'), - 'new_titlefield' => Array('dt'=>'!la_title_NewDetailTemplate!'), + 'new_titlefield' => Array ('dt' => '!la_title_NewDetailTemplate!'), - ), + ), - 'dt_list'=>Array( 'prefixes' => Array('dt_List'), - 'format' => "!la_title_DetailTemplates!", + 'dt_list'=>Array ( + 'prefixes' => Array ('dt_List'), 'format' => "!la_title_DetailTemplates!", - ), + ), - 'dt_edit'=>Array( 'prefixes' => Array('dt'), + 'dt_edit'=>Array ( + 'prefixes' => Array ('dt'), - 'new_titlefield' => Array('dt'=>'!la_title_NewDetailTemplate!'), + 'new_titlefield' => Array ('dt' => '!la_title_NewDetailTemplate!'), - 'format' => "#dt_status# '#dt_titlefield#'", + 'format' => "#dt_status# '#dt_titlefield#'", - ), + ), - - ), + ), - 'PermSection' => Array('main' => 'ebay:detail-templates'), + 'PermSection' => Array ('main' => 'ebay:detail-templates'), - 'Sections' => Array( + 'Sections' => Array ( - 'ebay:detail-templates' => Array( + 'ebay:detail-templates' => Array ( - 'parent' => 'ebay', + 'parent' => 'ebay', - 'icon' => 'listing_templates', + 'icon' => 'listing_templates', - 'label' => 'la_tab_DetailTemplates', + 'label' => 'la_tab_DetailTemplates', - 'url' => Array('t' => 'in-auction/detail_template/detail_template_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-auction/detail_template/detail_template_list', 'pass' => 'm'), - 'permissions' => Array('view', 'add', 'edit', 'delete'), + 'permissions' => Array ('view', 'add', 'edit', 'delete'), - 'priority' => 4, + 'priority' => 4, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - 'TitleField' => 'TemplateName', // field, used in bluebar when editing existing item + 'TitleField' => 'TemplateName', // field, used in bluebar when editing existing item + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s', + ), - 'ListSQLs' => Array( ''=>'SELECT * FROM %s', - ), // key - special, value - list select sql - - 'ListSortings' => Array( + 'ListSortings' => Array ( - '' => Array( + '' => Array ( - 'Sorting' => Array('TemplateName' => 'asc'), + 'Sorting' => Array ('TemplateName' => 'asc'), - ) - ), + ) + ), + - 'Fields' => Array( + 'Fields' => Array ( - 'DetailTemplateId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'DetailTemplateId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'TemplateName' => Array('type' => 'string','not_null' => '1','default' => '', 'required'=>true,'max_len'=>255), + 'TemplateName' => Array ('type' => 'string', 'not_null' => '1', 'default' => '', 'required'=>true,'max_len'=>255), - 'TemplateBody' => Array('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => NULL), + 'TemplateBody' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => NULL), - - ), + ), - 'Grids' => Array( + 'Grids' => Array ( - 'Default' => Array( + 'Default' => Array ( - 'Icons' => Array( + 'Icons' => Array ( - 'default' => 'icon16_item.png', - 'module' => 'core', - ), + 'default' => 'icon16_item.png', + 'module' => 'core', + ), - 'Fields' => Array( + 'Fields' => Array ( - 'DetailTemplateId' => Array( 'title'=>'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 70, ), + 'DetailTemplateId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 70, ), - 'TemplateName' => Array( 'title'=>'la_col_TemplateName', 'filter_block' => 'grid_like_filter', 'width' => 250, ), + 'TemplateName' => Array ( 'title' => 'la_col_TemplateName', 'filter_block' => 'grid_like_filter', 'width' => 250, ), - ), - ), - ), - ); \ No newline at end of file + ), + ), + ), +); \ No newline at end of file Index: modules/in-auction/units/schedule/schedule_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-auction/units/schedule/schedule_config.php (revision 15601) +++ modules/in-auction/units/schedule/schedule_config.php (revision ) @@ -13,136 +13,128 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'ebayschedule', + 'Prefix' => 'ebayschedule', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'ScheduleEventHandler','file'=>'schedule_eh.php','build_event'=>'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'ScheduleEventHandler', 'file' => 'schedule_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class'=>'kDBTagProcessor','file'=>'','build_event'=>'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'Hooks' => Array( -// Array( -// 'Mode' => hAFTER, -// 'Conditional' => false, -// 'HookToPrefix' => 'dt', -// 'HookToSpecial' => '', -// 'HookToEvent' => Array('OnAfterItemLoad', 'OnBeforeItemCreate', 'OnBeforeItemUpdate', 'OnUpdateAddress'), -// 'DoPrefix' => '', -// 'DoSpecial' => '', -// 'DoEvent' => 'OnPrepareStates', -// ), - ), + - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), + - 'IDField' => 'ScheduleId', + 'IDField' => 'ScheduleId', - 'StatusField' => Array('Status'), + 'StatusField' => Array ('Status'), - 'TableName' => TABLE_PREFIX.'eBaySchedules', + 'TableName' => TABLE_PREFIX.'eBaySchedules', - 'TitlePresets' => Array( + 'TitlePresets' => Array ( - 'default' => Array( 'new_status_labels' => Array('ebayschedule'=>'!la_title_AddingSchedule!'), + 'default' => Array ( + 'new_status_labels' => Array ('ebayschedule' => '!la_title_AddingSchedule!'), - 'edit_status_labels' => Array('ebayschedule'=>'!la_title_EditingSchedule!'), + 'edit_status_labels' => Array ('ebayschedule' => '!la_title_EditingSchedule!'), - 'new_titlefield' => Array('ebayschedule'=>'!la_title_NewSchedule!'), + 'new_titlefield' => Array ('ebayschedule' => '!la_title_NewSchedule!'), - ), + ), - 'ebayschedule_list'=>Array( 'prefixes' => Array('ebayschedule_List'), - 'format' => "!la_title_Schedules!", + 'ebayschedule_list'=>Array ( + 'prefixes' => Array ('ebayschedule_List'), 'format' => "!la_title_Schedules!", - ), + ), - 'ebayschedule_edit'=>Array( 'prefixes' => Array('ebayschedule'), + 'ebayschedule_edit'=>Array ( + 'prefixes' => Array ('ebayschedule'), - 'new_titlefield' => Array('ebayschedule'=>'!la_title_NewSchedule!'), + 'new_titlefield' => Array ('ebayschedule' => '!la_title_NewSchedule!'), - 'format' => "#ebayschedule_status# '#ebayschedule_titlefield#'", + 'format' => "#ebayschedule_status# '#ebayschedule_titlefield#'", - ), + ), - - ), + ), - 'PermSection' => Array('main' => 'ebay:schedules'), + 'PermSection' => Array ('main' => 'ebay:schedules'), - 'Sections' => Array( + 'Sections' => Array ( - 'ebay:schedules' => Array( + 'ebay:schedules' => Array ( - 'parent' => 'ebay', + 'parent' => 'ebay', - 'icon' => 'schedule', + 'icon' => 'schedule', - 'label' => 'la_tab_Schedules', + 'label' => 'la_tab_Schedules', - 'url' => Array('t' => 'in-auction/schedule/schedule_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-auction/schedule/schedule_list', 'pass' => 'm'), - 'permissions' => Array('view', 'add', 'edit', 'delete'), + 'permissions' => Array ('view', 'add', 'edit', 'delete'), - 'priority' => 2, + 'priority' => 2, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - 'TitleField' => 'ScheduleName', // field, used in bluebar when editing existing item + 'TitleField' => 'ScheduleName', // field, used in bluebar when editing existing item - - 'ListSQLs' => Array( ''=>'SELECT * FROM %s', - ), // key - special, value - list select sql - 'ItemSQLs' => Array(''=>'SELECT * FROM %s', + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s', - ), + ), + - 'ListSortings' => Array( + 'ListSortings' => Array ( - '' => Array( + '' => Array ( - 'Sorting' => Array('ScheduleName' => 'asc'), + 'Sorting' => Array ('ScheduleName' => 'asc'), - ) - ), + ) + ), + - 'Fields' => Array( + 'Fields' => Array ( - 'ScheduleId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ScheduleName' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'required'=>true, 'default' => ''), - 'ListingQuantity' => Array ('type' => 'int', 'not_null' => 1, 'min_value_inc'=>1, 'default' => 1, 'required'=>true), - 'WeekDays' => Array ( - 'type' => 'string', 'max_len' => 255, - 'formatter' => 'kOptionsFormatter', 'use_phrases' => true, + 'ScheduleId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ScheduleName' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'required'=>true, 'default' => ''), + 'ListingQuantity' => Array ('type' => 'int', 'not_null' => 1, 'min_value_inc'=>1, 'default' => 1, 'required'=>true), + 'WeekDays' => Array ( + 'type' => 'string', 'max_len' => 255, + 'formatter' => 'kOptionsFormatter', 'use_phrases' => true, - 'options' => Array( + 'options' => Array ( - 1 => 'la_Monday', - 2 => 'la_Tuesday', - 3 => 'la_Wednesday', - 4 => 'la_Thursday', - 5 => 'la_Friday', - 6 => 'la_Saturday', - 7 => 'la_Sunday', - ), - 'not_null' => 1, 'default' => '', - ), - 'StartDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'format' => 'm/d/y', 'default' => '#NOW#'), - 'StartTime' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'input_date_format' => '', 'date_format' => '', 'default' => NULL), - 'EndTime' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'input_date_format' => '', 'date_format' => '', 'default' => NULL), + 1 => 'la_Monday', + 2 => 'la_Tuesday', + 3 => 'la_Wednesday', + 4 => 'la_Thursday', + 5 => 'la_Friday', + 6 => 'la_Saturday', + 7 => 'la_Sunday', + ), + 'not_null' => 1, 'default' => '', + ), + 'StartDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'format' => 'm/d/y', 'default' => '#NOW#'), + 'StartTime' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'input_date_format' => '', 'date_format' => '', 'default' => NULL), + 'EndTime' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'input_date_format' => '', 'date_format' => '', 'default' => NULL), - 'ListingType' => Array ('type' => 'int', 'not_null' => 1, 'default' => 1, 'required'=>true, 'formatter'=>'kOptionsFormatter', 'options'=>Array( + 'ListingType' => Array ('type' => 'int', 'not_null' => 1, 'default' => 1, 'required'=>true, 'formatter' => 'kOptionsFormatter', 'options'=>Array ( - EBAY_LISTING_TYPE_AUCTION => 'la_Auction', - EBAY_LISTING_TYPE_STORE => 'la_Store', - ), - 'use_phrases'=>1, - ), - 'ContinueUntilQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'LastProcessed' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), + EBAY_LISTING_TYPE_AUCTION => 'la_Auction', + EBAY_LISTING_TYPE_STORE => 'la_Store', + ), + 'use_phrases'=>1, + ), + 'ContinueUntilQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'LastProcessed' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), - 'Status' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, 'formatter'=>'kOptionsFormatter', 'options' => Array( + 'Status' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, 'formatter' => 'kOptionsFormatter', 'options' => Array ( - 1 => 'la_Enabled', - 0 => 'la_Disabled', - ), 'use_phrases' => true), - ), + 1 => 'la_Enabled', + 0 => 'la_Disabled', + ), 'use_phrases' => true), + ), - 'Grids' => Array( + 'Grids' => Array ( - 'Default' => Array( + 'Default' => Array ( - 'Icons' => Array( + 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disabled.png', - 1 => 'icon16_item.png', - 'module' => 'core', - ), + 'default' => 'icon16_item.png', + 0 => 'icon16_disabled.png', + 1 => 'icon16_item.png', + 'module' => 'core', + ), - 'Fields' => Array( + 'Fields' => Array ( - 'ScheduleId' => Array('title'=>'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 45,), + 'ScheduleId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 45,), - 'ScheduleName' => Array( 'title'=>'la_col_ScheduleName', 'filter_block' => 'grid_like_filter', 'width' => 120,), + 'ScheduleName' => Array ( 'title' => 'la_col_ScheduleName', 'filter_block' => 'grid_like_filter', 'width' => 120,), - 'ListingType' => Array('filter_block' => 'grid_options_filter', 'width' => 100,), + 'ListingType' => Array ('filter_block' => 'grid_options_filter', 'width' => 100,), - 'StartDate' => Array('filter_block' => 'grid_date_range_filter', 'width' => 110,), + 'StartDate' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 110,), - 'StartTime' => Array('filter_block' => 'grid_like_filter', 'width' => 90,), + 'StartTime' => Array ('filter_block' => 'grid_like_filter', 'width' => 90,), - 'EndTime' => Array('filter_block' => 'grid_like_filter', 'width' => 90,), + 'EndTime' => Array ('filter_block' => 'grid_like_filter', 'width' => 90,), - 'ListingQuantity' => Array('filter_block' => 'grid_range_filter', 'width' => 95,), + 'ListingQuantity' => Array ('filter_block' => 'grid_range_filter', 'width' => 95,), - 'ContinueUntilQty' => Array('title' => 'column:la_fld_ContinueUntilQuantity', 'filter_block' => 'grid_range_filter', 'width' => 87,), + 'ContinueUntilQty' => Array ('title' => 'column:la_fld_ContinueUntilQuantity', 'filter_block' => 'grid_range_filter', 'width' => 87,), - 'LastProcessed' => Array('filter_block' => 'grid_date_range_filter', 'width' => 143,), + 'LastProcessed' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 143,), - 'Status' => Array('filter_block' => 'grid_options_filter', 'width' => 100,), + 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 100,), - ), + ), - - ), - ), - ); \ No newline at end of file + ), + ), +); \ No newline at end of file Index: modules/in-commerce/units/discount_items/discount_items_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/discount_items/discount_items_config.php (revision 15601) +++ modules/in-commerce/units/discount_items/discount_items_config.php (revision ) @@ -13,117 +13,118 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'di', + 'Prefix' => 'di', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'DiscountItemsEventHandler','file'=>'discount_items_event_handler.php','build_event'=>'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'DiscountItemsEventHandler', 'file' => 'discount_items_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class'=>'DiscountItemsTagProcessor','file'=>'discount_items_tag_processor.php','build_event'=>'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'DiscountItemsTagProcessor', 'file' => 'discount_items_tag_processor.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, + - 'Hooks' => Array( + 'Hooks' => Array ( - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'p', - 'HookToSpecial' => '-item', + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'p', + 'HookToSpecial' => '-item', - 'HookToEvent' => Array('OnAfterItemDelete'), + 'HookToEvent' => Array ('OnAfterItemDelete'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnDeleteDiscountedItem', - ), - ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnDeleteDiscountedItem', + ), + ), + - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), + - 'IDField' => 'DiscountItemId', + 'IDField' => 'DiscountItemId', - 'StatusField' => Array('Status'), + 'StatusField' => Array ('Status'), - 'TitleField' => 'Name', + 'TitleField' => 'Name', - 'TableName' => TABLE_PREFIX.'ProductsDiscountItems', + 'TableName' => TABLE_PREFIX.'ProductsDiscountItems', - 'CalculatedFields' => Array( + 'CalculatedFields' => Array ( - '' => Array( + '' => Array ( - 'ProductId' => 'p.ProductId', + 'ProductId' => 'p.ProductId', - 'ItemName' => 'IF(p.Name IS NULL,c.Name,p.l1_Name)', + 'ItemName' => 'IF(p.Name IS NULL,c.Name,p.l1_Name)', - 'SKU' => 'p.SKU', + 'SKU' => 'p.SKU', - 'Weight' => 'p.Weight', + 'Weight' => 'p.Weight', - 'CreatedOn' => 'p.CreatedOn', + 'CreatedOn' => 'p.CreatedOn', - 'BackOrderDate' => 'p.BackOrderDate', + 'BackOrderDate' => 'p.BackOrderDate', - 'Status' => 'p.Status', + 'Status' => 'p.Status', - 'CategoryId' => 'c.CategoryId', + 'CategoryId' => 'c.CategoryId', - - ), + ), - - ), + ), - 'ListSQLs' => Array( ''=>' SELECT %1$s.* %2$s + + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'Products p ON %1$s.ItemResourceId = p.ResourceId - LEFT JOIN '.TABLE_PREFIX.'Categories c ON %1$s.ItemResourceId = c.ResourceId', + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'Products p ON %1$s.ItemResourceId = p.ResourceId + LEFT JOIN '.TABLE_PREFIX.'Categories c ON %1$s.ItemResourceId = c.ResourceId', - ), // key - special, value - list select sql - 'ItemSQLs' => Array( ''=>'SELECT * FROM %s', - ), + ), - /*'BelongsTo' => Array( + /*'BelongsTo' => Array ( - Array('prefix' => 'd', 'key' => 'DiscountId', 'ForeignKey' => 'DiscountId'), + Array ('prefix' => 'd', 'key' => 'DiscountId', 'ForeignKey' => 'DiscountId'), - ),*/ + ),*/ + - 'ForeignKey' => 'DiscountId', + 'ForeignKey' => 'DiscountId', - 'ParentTableKey' => 'DiscountId', - 'ParentPrefix' => 'd', + 'ParentTableKey' => 'DiscountId', + 'ParentPrefix' => 'd', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - 'ListSortings' => Array( + 'ListSortings' => Array ( - '' => Array( + '' => Array ( - 'Sorting' => Array('ItemName' => 'asc'), + 'Sorting' => Array ('ItemName' => 'asc'), - ) - ), + ) + ), - 'Fields' => Array ( + 'Fields' => Array ( - 'DiscountItemId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0, ), + 'DiscountItemId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), - 'DiscountId' => Array('type' => 'int', 'default' => null, ), + 'DiscountId' => Array ('type' => 'int', 'default' => null, ), - 'ItemResourceId' => Array('type' => 'int', 'default' => null, ), + 'ItemResourceId' => Array ('type' => 'int', 'default' => null, ), - 'ItemType' => Array('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array ( 1 => 'la_Product', 2 => 'la_Category', 0 => 'la_WholeOrder' ), 'default' => 1, ), + 'ItemType' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array ( 1 => 'la_Product', 2 => 'la_Category', 0 => 'la_WholeOrder' ), 'default' => 1, ), - ), + ), - 'VirtualFields' => Array( + 'VirtualFields' => Array ( - 'ProductId' => Array('type' => 'int', 'default' => 0), + 'ProductId' => Array ('type' => 'int', 'default' => 0), - 'ItemName' => Array('type' => 'string', 'default' => ''), + 'ItemName' => Array ('type' => 'string', 'default' => ''), - 'SKU' => Array('type' => 'string', 'default' => ''), + 'SKU' => Array ('type' => 'string', 'default' => ''), - 'Weight' => Array('type' => 'float', 'min_value_exc' => 0, 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => NULL), + 'Weight' => Array ('type' => 'float', 'min_value_exc' => 0, 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => NULL), - 'CreatedOn' => Array('type' => 'int','formatter' => 'kDateFormatter', 'default' => '#NOW#'), + 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'BackOrderDate' => Array('type' => 'int','formatter' => 'kDateFormatter', 'default' => NULL), + 'BackOrderDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), - 'Status' => Array ( + 'Status' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, - 'default' => 2, - ), - 'CategoryId' => Array ('type' => 'int', 'default' => 0), - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, + 'default' => 2, + ), + 'CategoryId' => Array ('type' => 'int', 'default' => 0), + ), - 'Grids' => Array( + 'Grids' => Array ( - 'Default' => Array( + 'Default' => Array ( - 'Icons' => Array('default'=>'icon16_entire_order.gif'), + 'Icons' => Array ('default' => 'icon16_entire_order.gif'), - 'Fields' => Array( + 'Fields' => Array ( - 'ItemType' => Array( 'title'=>'la_col_ItemType', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_empty_filter'), + 'ItemType' => Array ( 'title' => 'la_col_ItemType', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_empty_filter'), - ), + ), - - ), + ), - 'DiscountItems' => Array( + 'DiscountItems' => Array ( - 'Icons' => Array( + 'Icons' => Array ( - 'default' => 'icon16_product.png', - 0 => 'icon16_product_disabled.png', - 1 => 'icon16_product.png', - 2 => 'icon16_product_pending.png', - ), + 'default' => 'icon16_product.png', + 0 => 'icon16_product_disabled.png', + 1 => 'icon16_product.png', + 2 => 'icon16_product_pending.png', + ), - 'Fields' => Array( + 'Fields' => Array ( - 'ProductId' => Array( 'title'=>'column:la_fld_Id', 'data_block' => 'grid_item_td', 'filter_block' => 'grid_range_filter'), + 'ProductId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_item_td', 'filter_block' => 'grid_range_filter'), - 'ItemName' => Array( 'filter_block' => 'grid_like_filter'), + 'ItemName' => Array ( 'filter_block' => 'grid_like_filter'), - 'ItemType' => Array( 'title'=>'la_col_ItemType', 'filter_block' => 'grid_options_filter'), + 'ItemType' => Array ( 'title' => 'la_col_ItemType', 'filter_block' => 'grid_options_filter'), - ), + ), - - ), - ), - ); \ No newline at end of file + ), + ), +); \ No newline at end of file Index: modules/in-commerce/units/coupons/coupons_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/coupons/coupons_config.php (revision 15601) +++ modules/in-commerce/units/coupons/coupons_config.php (revision ) @@ -13,164 +13,169 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'coup', + 'Prefix' => 'coup', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'CouponsEventHandler','file'=>'coupons_event_handler.php','build_event'=>'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'CouponsEventHandler', 'file' => 'coupons_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class'=>'CouponsTagProcessor','file'=>'coupons_tag_processor.php','build_event'=>'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'CouponsTagProcessor', 'file' => 'coupons_tag_processor.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), + - 'IDField' => 'CouponId', + 'IDField' => 'CouponId', - 'StatusField' => Array('Status'), + 'StatusField' => Array ('Status'), - 'TitleField' => 'Name', + 'TitleField' => 'Name', - 'TableName' => TABLE_PREFIX.'ProductsCoupons', + 'TableName' => TABLE_PREFIX.'ProductsCoupons', - 'SubItems' => Array('coupi'), + 'SubItems' => Array ('coupi'), - 'TitlePresets' => Array( + 'TitlePresets' => Array ( - 'default' => Array( 'new_status_labels' => Array('coup'=>'!la_title_Adding_Coupon!'), + 'default' => Array ( + 'new_status_labels' => Array ('coup' => '!la_title_Adding_Coupon!'), - 'edit_status_labels' => Array('coup'=>'!la_title_Editing_Coupon!'), + 'edit_status_labels' => Array ('coup' => '!la_title_Editing_Coupon!'), - 'new_titlefield' => Array('coup'=>'!la_title_New_Coupon!'), + 'new_titlefield' => Array ('coup' => '!la_title_New_Coupon!'), - ), + ), - 'coupons_list'=>Array('prefixes' => Array('coup_List'), - 'format' => "!la_title_Coupons!", + 'coupons_list' => Array ( + 'prefixes' => Array ('coup_List'), 'format' => "!la_title_Coupons!", - ), + ), - 'coupons_edit'=>Array( 'prefixes' => Array('coup'), + 'coupons_edit' => Array ( + 'prefixes' => Array ('coup'), - 'format' => "#coup_status# '#coup_titlefield#' - !la_title_General!", + 'format' => "#coup_status# '#coup_titlefield#' - !la_title_General!", - ), + ), - 'coupons_items'=>Array('prefixes' => Array('coup','coupi_List'), + 'coupons_items' => Array ( + 'prefixes' => Array ('coup', 'coupi_List'), - 'format' => "#coup_status# '#coup_titlefield#' - !la_title_CouponItems!", + 'format' => "#coup_status# '#coup_titlefield#' - !la_title_CouponItems!", - ), + ), - 'coupons_clone'=>Array('prefixes' => Array('coup'), - 'format' => "!la_CloneCoupon!", + + 'coupons_clone' => Array ( + 'prefixes' => Array ('coup'), 'format' => "!la_CloneCoupon!", - ), + ), - 'coupon_selector' => Array('format' => '!la_title_CouponSelector!'), + 'coupon_selector' => Array ('format' => '!la_title_CouponSelector!'), - - ), + ), - 'EditTabPresets' => Array ( - 'Default' => Array ( - 'general' => Array ('title' => 'la_tab_General', 't' => 'in-commerce/discounts/coupon_edit', 'priority' => 1), - 'items' => Array ('title' => 'la_tab_CouponsItems', 't' => 'in-commerce/discounts/coupon_items', 'priority' => 2), - ), - ), + 'EditTabPresets' => Array ( + 'Default' => Array ( + 'general' => Array ('title' => 'la_tab_General', 't' => 'in-commerce/discounts/coupon_edit', 'priority' => 1), + 'items' => Array ('title' => 'la_tab_CouponsItems', 't' => 'in-commerce/discounts/coupon_items', 'priority' => 2), + ), + ), - 'PermSection' => Array('main' => 'in-commerce:coupons'), + 'PermSection' => Array ('main' => 'in-commerce:coupons'), - 'Sections' => Array( + 'Sections' => Array ( - 'in-commerce:coupons' => Array( + 'in-commerce:coupons' => Array ( - 'parent' => 'in-commerce:discounts_folder', + 'parent' => 'in-commerce:discounts_folder', - 'icon' => 'discounts_coupons', + 'icon' => 'discounts_coupons', - 'label' => 'la_tab_Coupons', + 'label' => 'la_tab_Coupons', - 'url' => Array('t' => 'in-commerce/discounts/coupons_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-commerce/discounts/coupons_list', 'pass' => 'm'), - 'permissions' => Array('view', 'add', 'edit', 'delete', 'advanced:approve', 'advanced:decline'), + 'permissions' => Array ('view', 'add', 'edit', 'delete', 'advanced:approve', 'advanced:decline'), - 'priority' => 3.2, // ., because this section replaces parent in tree + 'priority' => 3.2, // ., because this section replaces parent in tree - 'type' => stTAB, + 'type' => stTAB, - ), - ), + ), + ), - 'ListSQLs' => Array( ''=>'SELECT %1$s.* %2$s FROM %1$s', - ), // key - special, value - list select sql - 'ItemSQLs' => Array( ''=>'SELECT * FROM %1$s', + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM %1$s', - ), + ), - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array( + '' => Array ( - 'Sorting' => Array('Name' => 'asc'), + 'Sorting' => Array ('Name' => 'asc'), - ) - ), + ) + ), - 'Fields' => Array( + 'Fields' => Array ( - 'CouponId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Status' => Array ( - 'type' => 'int', 'formatter' => 'kOptionsFormatter', - 'options' => Array ( 1 => 'la_Enabled', 2 => 'la_Used', 0 => 'la_Disabled' ), - 'use_phrases' => 1, 'not_null' => 1, 'default' => 1 - ), - 'Name' => Array ( 'type' =>'string', 'required' => 1, 'default' => null, 'max_len' => 255), - 'Code' => Array ( - 'type' => 'string', 'required' => 1, 'default' => null, - 'max_len' => 255, 'unique' => Array ('Code'), - ), - 'Expiration' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null,), - 'GroupId' => Array ('type' => 'int', 'default' => null, ), - 'Type' => Array ( - 'type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, - 'options' => Array ( 1 => 'la_Flat', 2 => 'la_Percent'/*, 3 => 'la_FreeShipping'*/), - 'not_null' => 1, 'default' => 1, - ), - 'Amount' => Array ('type' => 'double', 'default' => null), - 'LastUsedBy' => Array ( - 'type' => 'int', 'formatter' => 'kLEFTFormatter', - 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), - 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), - 'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users + 'CouponId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Status' => Array ( + 'type' => 'int', 'formatter' => 'kOptionsFormatter', + 'options' => Array ( 1 => 'la_Enabled', 2 => 'la_Used', 0 => 'la_Disabled' ), + 'use_phrases' => 1, 'not_null' => 1, 'default' => 1 + ), + 'Name' => Array ( 'type' =>'string', 'required' => 1, 'default' => null, 'max_len' => 255), + 'Code' => Array ( + 'type' => 'string', 'required' => 1, 'default' => null, + 'max_len' => 255, 'unique' => Array ('Code'), + ), + 'Expiration' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null,), + 'GroupId' => Array ('type' => 'int', 'default' => null, ), + 'Type' => Array ( + 'type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, + 'options' => Array ( 1 => 'la_Flat', 2 => 'la_Percent'/*, 3 => 'la_FreeShipping'*/), + 'not_null' => 1, 'default' => 1, + ), + 'Amount' => Array ('type' => 'double', 'default' => null), + 'LastUsedBy' => Array ( + 'type' => 'int', 'formatter' => 'kLEFTFormatter', + 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), + 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), + 'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users - WHERE `%s` = \'%s\'','left_key_field'=>'PortalUserId', + WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', - 'left_title_field' => 'Username', 'required' => 0, 'default' => null, - ), - 'LastUsedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), - 'NumberOfUses' => Array ('type' => 'int', 'default' => 1), - ), + 'left_title_field' => 'Username', 'required' => 0, 'default' => null, + ), + 'LastUsedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), + 'NumberOfUses' => Array ('type' => 'int', 'default' => 1), + ), - 'VirtualFields' => Array ( - 'CouponCount' => Array ('type' => 'int', 'min_value_inc' => 1, 'default' => 1), - 'DefaultExpiration' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), - ), + 'VirtualFields' => Array ( + 'CouponCount' => Array ('type' => 'int', 'min_value_inc' => 1, 'default' => 1), + 'DefaultExpiration' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), + ), - 'Grids' => Array( + 'Grids' => Array ( - 'Default' => Array( + 'Default' => Array ( - 'Icons' => Array( + 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disabled.png', - 1 => 'icon16_item.png', - 2 => 'icon16_pending.png', - 'module' => 'core', - ), + 'default' => 'icon16_item.png', + 0 => 'icon16_disabled.png', + 1 => 'icon16_item.png', + 2 => 'icon16_pending.png', + 'module' => 'core', + ), - 'Fields' => Array( + 'Fields' => Array ( - 'CouponId' => Array ('title'=>'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'CouponId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'Name' => Array('filter_block' => 'grid_like_filter', 'width' => 150, ), + 'Name' => Array ('filter_block' => 'grid_like_filter', 'width' => 150, ), - 'Code' => Array('title'=>'column:la_fld_CouponCode', 'filter_block' => 'grid_like_filter', 'width' => 100, ), + 'Code' => Array ('title' => 'column:la_fld_CouponCode', 'filter_block' => 'grid_like_filter', 'width' => 100, ), - 'Expiration' => Array('filter_block' => 'grid_date_range_filter', 'width' => 145, ), + 'Expiration' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), - 'Type' => Array('filter_block' => 'grid_options_filter', 'width' => 100, ), + 'Type' => Array ('filter_block' => 'grid_options_filter', 'width' => 100, ), - 'Status' => Array('filter_block' => 'grid_options_filter', 'width' => 100, ), + 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 100, ), - 'Amount' => Array('filter_block' => 'grid_range_filter', 'width' => 100, ), + 'Amount' => Array ('filter_block' => 'grid_range_filter', 'width' => 100, ), - 'LastUsedBy' => Array('filter_block' => 'grid_like_filter', 'width' => 140, ), + 'LastUsedBy' => Array ('filter_block' => 'grid_like_filter', 'width' => 140, ), - 'LastUsedOn' => Array('filter_block' => 'grid_date_range_filter', 'width' => 140, ), + 'LastUsedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 140, ), - 'NumberOfUses' => Array('filter_block' => 'grid_range_filter', 'width' => 130, ), + 'NumberOfUses' => Array ('filter_block' => 'grid_range_filter', 'width' => 130, ), - ), - ), + ), + ), - 'Radio' => Array( + 'Radio' => Array ( - 'Icons' => Array( + 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disabled.png', - 1 => 'icon16_item.png', - 2 => 'icon16_pending.png', - 'module' => 'core', - ), - 'Selector' => 'radio', + 'default' => 'icon16_item.png', + 0 => 'icon16_disabled.png', + 1 => 'icon16_item.png', + 2 => 'icon16_pending.png', + 'module' => 'core', + ), + 'Selector' => 'radio', - 'Fields' => Array( + 'Fields' => Array ( - 'CouponId' => Array ('title'=>'column:la_fld_Id', 'data_block' => 'grid_radio_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'CouponId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_radio_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'Name' => Array('filter_block' => 'grid_like_filter', 'width' => 150, ), + 'Name' => Array ('filter_block' => 'grid_like_filter', 'width' => 150, ), - 'Code' => Array('title'=>'column:la_fld_CouponCode', 'filter_block' => 'grid_like_filter', 'width' => 100, ), + 'Code' => Array ('title' => 'column:la_fld_CouponCode', 'filter_block' => 'grid_like_filter', 'width' => 100, ), - 'Expiration' => Array('filter_block' => 'grid_date_range_filter', 'width' => 145, ), + 'Expiration' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), - 'Type' => Array('filter_block' => 'grid_options_filter', 'width' => 100, ), + 'Type' => Array ('filter_block' => 'grid_options_filter', 'width' => 100, ), - 'Status' => Array('filter_block' => 'grid_options_filter', 'width' => 100, ), + 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 100, ), - 'Amount' => Array('filter_block' => 'grid_range_filter', 'width' => 100, ), + 'Amount' => Array ('filter_block' => 'grid_range_filter', 'width' => 100, ), - 'LastUsedBy' => Array('filter_block' => 'grid_like_filter', 'width' => 140, ), + 'LastUsedBy' => Array ('filter_block' => 'grid_like_filter', 'width' => 140, ), - 'LastUsedOn' => Array('filter_block' => 'grid_date_range_filter', 'width' => 140, ), + 'LastUsedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 140, ), - 'NumberOfUses' => Array('filter_block' => 'grid_range_filter', 'width' => 130, ), + 'NumberOfUses' => Array ('filter_block' => 'grid_range_filter', 'width' => 130, ), - ), - ), - ), - ); \ No newline at end of file + ), + ), + ), +); \ No newline at end of file Index: modules/in-commerce/units/taxesdestinations/taxesdestinations_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/taxesdestinations/taxesdestinations_config.php (revision 15601) +++ modules/in-commerce/units/taxesdestinations/taxesdestinations_config.php (revision ) @@ -13,63 +13,65 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'taxdst', + 'Prefix' => 'taxdst', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'images.php','build_event'=>'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => 'images.php', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'TaxDstEventHandler','file'=>'taxes_dst_event_handler.php','build_event'=>'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'TaxDstEventHandler', 'file' => 'taxes_dst_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class'=>'kDBTagProcessor','file'=>'','build_event'=>'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'hooks' => Array(), + - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), - 'Hooks' => Array( + 'Hooks' => Array ( - /*Array( + /*Array ( - 'Mode' => hAFTER, - 'Conditional' => true, - 'HookToPrefix' => 'tax', - 'HookToSpecial' => '', + 'Mode' => hAFTER, + 'Conditional' => true, + 'HookToPrefix' => 'tax', + 'HookToSpecial' => '', - 'HookToEvent' => Array( 'onPreSave', 'onPreSaveAndGo' ), + 'HookToEvent' => Array ( 'onPreSave', 'onPreSaveAndGo' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnSaveDestinations', - ),*/ + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnSaveDestinations', + ),*/ + - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '', + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '', - 'HookToEvent' => Array( 'OnPreSave', 'OnUpdate'), + 'HookToEvent' => Array ( 'OnPreSave', 'OnUpdate'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnZoneUpdate', - ), - ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnZoneUpdate', + ), + ), - //OnAfterItemUpdate + //OnAfterItemUpdate - 'IDField' => 'TaxZoneDestId', + 'IDField' => 'TaxZoneDestId', - 'TableName' => TABLE_PREFIX.'TaxZonesDestinations', + 'TableName' => TABLE_PREFIX.'TaxZonesDestinations', - 'ParentTableKey'=> 'TaxZoneId', // linked field in master table + 'ParentTableKey'=> 'TaxZoneId', // linked field in master table - 'ForeignKey' => 'TaxZoneId', // linked field in subtable + 'ForeignKey' => 'TaxZoneId', // linked field in subtable - 'ParentPrefix' => 'tax', + 'ParentPrefix' => 'tax', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - 'ListSQLs' => Array( ''=>'SELECT * FROM %s', - ), // key - special, value - list select sql - 'ItemSQLs' => Array( ''=>'SELECT * FROM %s', + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s', - ), + ), - 'Fields' => Array ( - 'TaxZoneDestId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'TaxZoneId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'StdDestId' => Array ('type' => 'int', 'default' => 0), - 'DestValue' => Array ('type' => 'string', 'max_len' => 255, 'default' => NULL), - ), - ); \ No newline at end of file + 'Fields' => Array ( + 'TaxZoneDestId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'TaxZoneId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'StdDestId' => Array ('type' => 'int', 'default' => 0), + 'DestValue' => Array ('type' => 'string', 'max_len' => 255, 'default' => NULL), + ), +); \ No newline at end of file Index: modules/in-link/units/listings/listings_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-link/units/listings/listings_config.php (revision 15601) +++ modules/in-link/units/listings/listings_config.php (revision ) @@ -12,164 +12,164 @@ * See http://www.in-portal.org/license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'ls', + 'Prefix' => 'ls', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'ListingsEventHandler', 'file' => 'listings_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'ListingsEventHandler', 'file' => 'listings_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'ListingsTagProcessor', 'file' => 'listings_tag_processor.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'ListingsTagProcessor', 'file' => 'listings_tag_processor.php', 'build_event' => 'OnBuild'), - 'AutoLoad' => true, + 'AutoLoad' => true, - 'Hooks' => Array ( + 'Hooks' => Array ( - Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'l', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnBeforeDeleteOriginal'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnMoveEnhancement', - ), - ), + Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'l', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnBeforeDeleteOriginal'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnMoveEnhancement', + ), + ), - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', + 1 => 'id', - 2 => 'Page', + 2 => 'Page', - 3 => 'PerPage', + 3 => 'PerPage', - 4 => 'event', + 4 => 'event', - 5 => 'mode', + 5 => 'mode', - ), + ), - 'ScheduledTasks' => Array ( + 'ScheduledTasks' => Array ( - 'listings_expiration' => Array ('EventName' => 'OnCheckExpiredPaidListings', 'RunSchedule' => '*/30 * * * *'), - ), + 'listings_expiration' => Array ('EventName' => 'OnCheckExpiredPaidListings', 'RunSchedule' => '*/30 * * * *'), + ), - 'IDField' => 'ListingId', + 'IDField' => 'ListingId', - 'StatusField' => Array ('Status', 'PendingRenewal'), + 'StatusField' => Array ('Status', 'PendingRenewal'), - 'TitleField' => 'LinkName', + 'TitleField' => 'LinkName', - 'TitlePresets' => Array ( + 'TitlePresets' => Array ( - 'default' => Array ( 'new_status_labels' => Array ('ls' => '!la_title_AddingListing!'), + 'default' => Array ( + 'new_status_labels' => Array ('ls' => '!la_title_AddingListing!'), - 'edit_status_labels' => Array ('ls' => '!la_title_EditingListing!'), + 'edit_status_labels' => Array ('ls' => '!la_title_EditingListing!'), - 'new_titlefield' => Array ('ls' => '!la_title_NewListing!'), + 'new_titlefield' => Array ('ls' => '!la_title_NewListing!'), - ), + ), - 'listing_list' => Array ('prefixes' => Array ('ls_List'), 'format' => "!la_title_PaidListings!",), - 'listing_edit' => Array ('prefixes' => Array ('ls'), 'format' => "#ls_status# '#ls_titlefield#' - !la_title_General!",), - ), + 'listing_list' => Array ('prefixes' => Array ('ls_List'), 'format' => "!la_title_PaidListings!",), + 'listing_edit' => Array ('prefixes' => Array ('ls'), 'format' => "#ls_status# '#ls_titlefield#' - !la_title_General!",), + ), - 'PermSection' => Array ('main' => 'in-link:paid_listings'), + 'PermSection' => Array ('main' => 'in-link:paid_listings'), - 'Sections' => Array ( + 'Sections' => Array ( - 'in-link:paid_listings_folder' => Array ( + 'in-link:paid_listings_folder' => Array ( - 'parent' => 'in-link', + 'parent' => 'in-link', - 'icon' => 'paid_listings', + 'icon' => 'paid_listings', - 'label' => 'la_tab_PaidListings', + 'label' => 'la_tab_PaidListings', - 'use_parent_header' => 1, + 'use_parent_header' => 1, - 'permissions' => Array (), + 'permissions' => Array (), - 'priority' => 1, + 'priority' => 1, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'in-link:paid_listings' => Array ( + 'in-link:paid_listings' => Array ( - 'parent' => 'in-link:paid_listings_folder', + 'parent' => 'in-link:paid_listings_folder', - 'icon' => 'paid_listings', + 'icon' => 'paid_listings', - 'label' => 'la_tab_Listings', + 'label' => 'la_tab_Listings', - 'url' => Array ('t' => 'in-link/paid_listings/paid_listings_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-link/paid_listings/paid_listings_list', 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit', 'delete', 'advanced:approve', 'advanced:decline'), + 'permissions' => Array ('view', 'add', 'edit', 'delete', 'advanced:approve', 'advanced:decline'), - 'priority' => 1.1, // ., because this section replaces parent in tree + 'priority' => 1.1, // ., because this section replaces parent in tree - 'type' => stTAB, + 'type' => stTAB, - ), - ), + ), + ), - 'TableName' => TABLE_PREFIX.'Listings', + 'TableName' => TABLE_PREFIX.'Listings', - 'ListSQLs' => Array ( '' => ' SELECT %1$s.* %2$s + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'Link item_table ON item_table.ResourceId = %1$s.ItemResourceId + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'Link item_table ON item_table.ResourceId = %1$s.ItemResourceId - LEFT JOIN '.TABLE_PREFIX.'Users u ON u.PortalUserId = item_table.CreatedById'), + LEFT JOIN '.TABLE_PREFIX.'Users u ON u.PortalUserId = item_table.CreatedById' + ), - 'ItemSQLs' => Array ( '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'Link item_table ON item_table.ResourceId = %1$s.ItemResourceId - LEFT JOIN '.TABLE_PREFIX.'Users u ON u.PortalUserId = item_table.CreatedById'), - - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( + '' => Array ( - 'Sorting' => Array ('PurchasedOn' => 'desc'), - ) - ), + 'Sorting' => Array ('PurchasedOn' => 'desc'), + ) + ), - 'CalculatedFields' => Array ( + 'CalculatedFields' => Array ( - '' => Array ( + '' => Array ( - 'LinkName' => 'CONCAT(item_table.Name, " (", item_table.Url, ")")', + 'LinkName' => 'CONCAT(item_table.Name, " (", item_table.Url, ")")', - 'LinkOwner' => 'IF (ISNULL(u.Username), IF (item_table.CreatedById = ' . USER_ROOT . ', "root", IF (item_table.CreatedById = ' . USER_GUEST . ', "Guest", "n/a")), u.Username)', + 'LinkOwner' => 'IF (ISNULL(u.Username), IF (item_table.CreatedById = ' . USER_ROOT . ', "root", IF (item_table.CreatedById = ' . USER_GUEST . ', "Guest", "n/a")), u.Username)', - ), - ), + ), + ), + - 'Fields' => Array ( - 'ListingId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'ListingTypeId' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %s - FROM '.TABLE_PREFIX.'ListingTypes - ORDER BY Name', - 'option_key_field' => 'ListingTypeId', 'option_title_field' => 'Name', - 'default' => 0, - ), - 'ItemResourceId' => Array ( - 'type' => 'int', - 'required' => 1, 'unique' => Array ('ItemResourceId'), 'default' => null, - 'error_field' => 'LinkName', - ), - 'PurchasedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'ExpiresOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#', 'required' =>1), - 'Status' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 2, - ), - 'PendingRenewal' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_NotPendingRenewal', 1 => 'la_PendingRenewal'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), - 'RenewalReminderSent' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - ), + 'Fields' => Array ( + 'ListingId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'ListingTypeId' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %s + FROM '.TABLE_PREFIX.'ListingTypes + ORDER BY Name', + 'option_key_field' => 'ListingTypeId', 'option_title_field' => 'Name', + 'default' => 0, + ), + 'ItemResourceId' => Array ( + 'type' => 'int', + 'required' => 1, 'unique' => Array ('ItemResourceId'), 'default' => null, + 'error_field' => 'LinkName', + ), + 'PurchasedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + 'ExpiresOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#', 'required' =>1), + 'Status' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 2, + ), + 'PendingRenewal' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_NotPendingRenewal', 1 => 'la_PendingRenewal'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), + 'RenewalReminderSent' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + ), - 'VirtualFields' => Array ( + 'VirtualFields' => Array ( - 'LinkName' => Array ('type' => 'string', 'default' => ''), + 'LinkName' => Array ('type' => 'string', 'default' => ''), - 'LinkOwner' => Array ('type' => 'string', 'default' => ''), + 'LinkOwner' => Array ('type' => 'string', 'default' => ''), - ), + ), - 'Grids' => Array ( + 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - '1_0' => 'icon16_link.png', - '0_0' => 'icon16_link_disabled.png', - '2_0' => 'icon16_link_pending.png', - '1_1' => 'icon16_link_pending.png', - '0_1' => 'icon16_link_disabled.png', + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + '1_0' => 'icon16_link.png', + '0_0' => 'icon16_link_disabled.png', + '2_0' => 'icon16_link_pending.png', + '1_1' => 'icon16_link_pending.png', + '0_1' => 'icon16_link_disabled.png', - '2_1' => 'icon16_link_pending.png'), + '2_1' => 'icon16_link_pending.png' + ), + - 'module' => 'core', + 'module' => 'core', - 'Fields' => Array ( - 'ListingId' => Array ( 'title' => 'column:la_fld_Id' , 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'LinkName' => Array ('data_block' => 'link_td', 'filter_block' => 'grid_like_filter', 'width' => 170, ), - 'ListingTypeId' => Array ( 'title' => 'column:la_fld_ListingTypeName' , 'data_block' => 'listing_type_td', 'filter_block' => 'grid_like_filter', 'width' => 100, ), - 'LinkOwner' => Array ('filter_block' => 'grid_like_filter', 'width' => 115, ), - 'PendingRenewal' => Array ('filter_block' => 'grid_options_filter', 'width' => 143, ), - 'PurchasedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 140, ), - 'ExpiresOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 140, ), - 'Status' => Array ('filter_block' => 'grid_options_filter'), - ), - ), - ), + 'Fields' => Array ( + 'ListingId' => Array ( 'title' => 'column:la_fld_Id' , 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'LinkName' => Array ('data_block' => 'link_td', 'filter_block' => 'grid_like_filter', 'width' => 170, ), + 'ListingTypeId' => Array ( 'title' => 'column:la_fld_ListingTypeName' , 'data_block' => 'listing_type_td', 'filter_block' => 'grid_like_filter', 'width' => 100, ), + 'LinkOwner' => Array ('filter_block' => 'grid_like_filter', 'width' => 115, ), + 'PendingRenewal' => Array ('filter_block' => 'grid_options_filter', 'width' => 143, ), + 'PurchasedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 140, ), + 'ExpiresOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 140, ), + 'Status' => Array ('filter_block' => 'grid_options_filter'), + ), + ), + ), - - ); \ No newline at end of file +); \ No newline at end of file Index: modules/in-commerce/units/pricing/pricing_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/pricing/pricing_config.php (revision 15601) +++ modules/in-commerce/units/pricing/pricing_config.php (revision ) @@ -13,126 +13,125 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'pr', + 'Prefix' => 'pr', - 'ItemClass' => Array ('class'=> 'kDBItem', 'file'=> '', 'build_event'=> 'OnItemBuild'), + 'ItemClass' => Array ('class'=> 'kDBItem', 'file'=> '', 'build_event'=> 'OnItemBuild'), - 'ListClass' => Array ('class'=> 'kDBList', 'file'=> '', 'build_event'=> 'OnListBuild'), + 'ListClass' => Array ('class'=> 'kDBList', 'file'=> '', 'build_event'=> 'OnListBuild'), - 'EventHandlerClass' => Array ('class'=> 'PricingEventHandler', 'file'=> 'pricing_event_handler.php', 'build_event'=> 'OnBuild'), + 'EventHandlerClass' => Array ('class'=> 'PricingEventHandler', 'file'=> 'pricing_event_handler.php', 'build_event'=> 'OnBuild'), - 'TagProcessorClass' => Array ('class'=> 'PricingTagProcessor', 'file'=> 'pricing_tag_processor.php', 'build_event'=> 'OnBuild'), + 'TagProcessorClass' => Array ('class'=> 'PricingTagProcessor', 'file'=> 'pricing_tag_processor.php', 'build_event'=> 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'Hooks' => Array ( + 'Hooks' => Array ( - // for tangible products: pricings are always aranged before saveing product - Array ( - 'Mode' => hBEFORE, - 'Conditional' => true, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '', - 'HookToEvent' => Array ('OnPreSave'), - 'DoPrefix' => '', - 'DoSpecial' => 'tang', - 'DoEvent' => 'OnArrange', - ), - ), + // for tangible products: pricings are always aranged before saveing product + Array ( + 'Mode' => hBEFORE, + 'Conditional' => true, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '', + 'HookToEvent' => Array ('OnPreSave'), + 'DoPrefix' => '', + 'DoSpecial' => 'tang', + 'DoEvent' => 'OnArrange', + ), + ), - 'AggregateTags' => Array ( - Array ( - 'AggregateTo' => '#PARENT#', - 'AggregatedTagName' => 'Price', - 'LocalTagName' => 'ProductPrice', - ), - Array ( - 'AggregateTo' => '#PARENT#', - 'AggregatedTagName' => 'ListPriceBrackets', - 'LocalTagName' => 'Product_ListPriceBrackets', - ), - Array ( - 'AggregateTo' => '#PARENT#', - 'AggregatedTagName' => 'HasQuantityPricing', - 'LocalTagName' => 'Product_HasQuantityPricing', - ), - ), + 'AggregateTags' => Array ( + Array ( + 'AggregateTo' => '#PARENT#', + 'AggregatedTagName' => 'Price', + 'LocalTagName' => 'ProductPrice', + ), + Array ( + 'AggregateTo' => '#PARENT#', + 'AggregatedTagName' => 'ListPriceBrackets', + 'LocalTagName' => 'Product_ListPriceBrackets', + ), + Array ( + 'AggregateTo' => '#PARENT#', + 'AggregatedTagName' => 'HasQuantityPricing', + 'LocalTagName' => 'Product_HasQuantityPricing', + ), + ), - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), + - 'StatusField' => Array ('IsPrimary'), + 'StatusField' => Array ('IsPrimary'), - 'IDField' => 'PriceId', + 'IDField' => 'PriceId', - 'TableName' => TABLE_PREFIX.'ProductsPricing', + 'TableName' => TABLE_PREFIX.'ProductsPricing', - 'ForeignKey' => 'ProductId', + 'ForeignKey' => 'ProductId', - 'ParentTableKey' => 'ProductId', + 'ParentTableKey' => 'ProductId', - 'ParentPrefix' => 'p', + 'ParentPrefix' => 'p', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - 'ListSQLs' => Array ( ''=> 'SELECT * FROM %s', - ), // key - special, value - list select sql - 'ItemSQLs' => Array ( ''=> 'SELECT * FROM %s', + 'ListSQLs' => Array ( + ''=> ' SELECT * + FROM %s', - ), + ), + - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( - 'Sorting' => Array ('MinQty' => 'asc'), - ) - ), + '' => Array ( + 'Sorting' => Array ('MinQty' => 'asc'), + ) + ), + - 'Fields' => Array ( + 'Fields' => Array ( - 'PriceId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'PriceId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'ProductId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ProductId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'MinQty' => Array ('type' => 'int', 'default' => null), + 'MinQty' => Array ('type' => 'int', 'default' => null), - 'MaxQty' => Array ('type' => 'int', 'default' => null), + 'MaxQty' => Array ('type' => 'int', 'default' => null), - 'Cost' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%.2f', 'default' => 0), + 'Cost' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%.2f', 'default' => 0), - 'Price' => Array ('type' => 'float', 'not_null' => 1, 'formatter' => 'kFormatter', 'min_value_inc' => 0, 'format' => '%.2f', 'default' => 0), + 'Price' => Array ('type' => 'float', 'not_null' => 1, 'formatter' => 'kFormatter', 'min_value_inc' => 0, 'format' => '%.2f', 'default' => 0), - 'Negotiated' => Array ( + 'Negotiated' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, - 'default' => NULL, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, + 'default' => NULL, + ), - 'Points' => Array ('type' => 'int', 'default' => null), + 'Points' => Array ('type' => 'int', 'default' => null), - 'AccessDuration'=> Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'AccessDuration'=> Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'AccessUnit' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (1 => 'la_opt_sec', 2 => 'la_opt_min', 3 => 'la_opt_hour', 4 => 'la_opt_day', 5 => 'la_opt_week', 6 => 'la_opt_month', 7 => 'la_opt_year'), 'not_null' => 1, 'default' => 0,), + 'AccessUnit' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (1 => 'la_opt_sec', 2 => 'la_opt_min', 3 => 'la_opt_hour', 4 => 'la_opt_day', 5 => 'la_opt_week', 6 => 'la_opt_month', 7 => 'la_opt_year'), 'not_null' => 1, 'default' => 0,), - 'Description' => Array ('type' => 'string', 'max_len' => 255, 'default' => NULL), + 'Description' => Array ('type' => 'string', 'max_len' => 255, 'default' => NULL), - 'IsPrimary' => Array ( + 'IsPrimary' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), - 'GroupId' => Array ('type' => 'int', 'default' => 0, 'not_null' => 1), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), + 'GroupId' => Array ('type' => 'int', 'default' => 0, 'not_null' => 1), - /* TODO implement these fields in business logic - 'AccessRebillDate' => Array ( - 'type'=> 'int', 'min_value' => 0, 'max_value' => 31, 'not_null'=> '1', 'default' => 0, - ), - 'DurationType' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( - 1 => 'la_opt_Interval', 2 => 'la_opt_Date', - ), - 'use_phrases' => 1, 'not_null' => 1, 'default' => 1, - ), - 'AccessExpiration' => Array ('type' => 'int', 'formatter' => 'kDateFormatter'), - */ - ), + /* TODO implement these fields in business logic + 'AccessRebillDate' => Array ( + 'type'=> 'int', 'min_value' => 0, 'max_value' => 31, 'not_null'=> '1', 'default' => 0, + ), + 'DurationType' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( + 1 => 'la_opt_Interval', 2 => 'la_opt_Date', + ), + 'use_phrases' => 1, 'not_null' => 1, 'default' => 1, + ), + 'AccessExpiration' => Array ('type' => 'int', 'formatter' => 'kDateFormatter'), + */ + ), - 'VirtualFields' => Array ( - ), - - 'Grids' => Array ( + 'Grids' => Array ( - 'Access' => Array ( + 'Access' => Array ( - 'Icons' => Array ('default'=> 'icon16_pricing.gif', '0'=> 'icon16_pricing.gif', '1'=> 'icon16_pricing_primary.gif'), - 'Fields' => Array ( - 'AccessDuration' => Array ('data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter'), - 'AccessUnit' => Array ( 'title'=> 'column:la_fld_AccessDurationUnit', 'filter_block' => 'grid_options_filter'), - 'Description' => Array ('filter_block' => 'grid_like_filter'), - 'Price' => Array ( 'filter_block' => 'grid_range_filter'), - ), + 'Icons' => Array ('default'=> 'icon16_pricing.gif', '0'=> 'icon16_pricing.gif', '1'=> 'icon16_pricing_primary.gif'), + 'Fields' => Array ( + 'AccessDuration' => Array ('data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter'), + 'AccessUnit' => Array ( 'title'=> 'column:la_fld_AccessDurationUnit', 'filter_block' => 'grid_options_filter'), + 'Description' => Array ('filter_block' => 'grid_like_filter'), + 'Price' => Array ( 'filter_block' => 'grid_range_filter'), + ), - - ), - ), + ), + ), - - ); \ No newline at end of file +); \ No newline at end of file Index: modules/in-commerce/units/affiliate_plans_brackets/affiliate_plans_brackets_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/affiliate_plans_brackets/affiliate_plans_brackets_config.php (revision 15601) +++ modules/in-commerce/units/affiliate_plans_brackets/affiliate_plans_brackets_config.php (revision ) @@ -13,53 +13,53 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'apbrackets', + 'Prefix' => 'apbrackets', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'AffiliatePlansBracketsEventHandler','file'=>'affiliate_plans_brackets_event_handler.php','build_event'=>'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'AffiliatePlansBracketsEventHandler', 'file' => 'affiliate_plans_brackets_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class'=>'AffiliatePlansBracketsTagProcessor','file'=>'affiliate_plans_brackets_tag_processor.php','build_event'=>'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'AffiliatePlansBracketsTagProcessor', 'file' => 'affiliate_plans_brackets_tag_processor.php', 'build_event' => 'OnBuild'), - 'AutoLoad' => true, + 'AutoLoad' => true, - 'Hooks' => Array( + 'Hooks' => Array ( - Array( + Array ( - 'Mode' => hBEFORE, - 'Conditional' => true, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '', + 'Mode' => hBEFORE, + 'Conditional' => true, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '', - 'HookToEvent' => Array('OnPreSave'), + 'HookToEvent' => Array ('OnPreSave'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnArrange', - ), - ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnArrange', + ), + ), - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), - 'IDField' => 'AffiliateBracketId', + 'IDField' => 'AffiliateBracketId', - 'TableName' => TABLE_PREFIX.'AffiliatePlansBrackets', + 'TableName' => TABLE_PREFIX.'AffiliatePlansBrackets', - 'ListSQLs' => Array( ''=>'SELECT * FROM %s'), + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s' + ), - 'ItemSQLs' => Array( ''=>'SELECT * FROM %s'), - - 'ForeignKey' => 'AffiliatePlanId', + 'ForeignKey' => 'AffiliatePlanId', - 'ParentTableKey' => 'AffiliatePlanId', + 'ParentTableKey' => 'AffiliatePlanId', - 'ParentPrefix' => 'ap', + 'ParentPrefix' => 'ap', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - 'Fields' => Array( + 'Fields' => Array ( - 'AffiliateBracketId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'AffiliateBracketId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'AffiliatePlanId' => Array('type' => 'int','not_null' => 1, 'default' => 0), + 'AffiliatePlanId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'FromAmount' => Array('type' => 'double', 'formatter'=>'kFormatter', 'format'=>'%.02f', 'not_null' => '1','default' => '0'), + 'FromAmount' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%.02f', 'not_null' => '1', 'default' => '0'), - 'ToAmount' => Array('type' => 'double', 'formatter'=>'kFormatter', 'format'=>'%.02f', 'not_null' => '1','default' => '0'), + 'ToAmount' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%.02f', 'not_null' => '1', 'default' => '0'), - 'Percent' => Array('type' => 'double','not_null' => '1','default' => '0.00'), + 'Percent' => Array ('type' => 'double', 'not_null' => '1', 'default' => '0.00'), - ), + ), - - ); \ No newline at end of file +); \ No newline at end of file Index: modules/in-bulletin/units/poll_answers/poll_answers_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-bulletin/units/poll_answers/poll_answers_config.php (revision 15601) +++ modules/in-bulletin/units/poll_answers/poll_answers_config.php (revision ) @@ -12,76 +12,74 @@ * See http://www.in-portal.org/license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( 'Prefix' => 'poll-answer', +$config = Array ( + 'Prefix' => 'poll-answer', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'kDBEventHandler', 'file' => '', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'EventHandlerClass' => Array ('class' => 'kDBEventHandler', 'file' => '', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 'QueryString' => Array ( + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), + - 'IDField' => 'AnswerId', - 'TableName' => TABLE_PREFIX . 'PollsAnswers', + 'IDField' => 'AnswerId', + 'TableName' => TABLE_PREFIX . 'PollsAnswers', - 'ParentPrefix' => 'poll', + 'ParentPrefix' => 'poll', - 'ForeignKey' => 'PollId', + 'ForeignKey' => 'PollId', - 'ParentTableKey' => 'PollId', - 'AutoDelete' => true, - 'AutoClone' => true, + 'ParentTableKey' => 'PollId', + 'AutoDelete' => true, + 'AutoClone' => true, - 'TitleField' => 'Answer', - 'StatusField' => Array ('Status'), + 'TitleField' => 'Answer', + 'StatusField' => Array ('Status'), - // key - special, value - list select sql - 'ListSQLs' => Array ( - '' => ' SELECT %1$s.* %2$s + // key - special, value - list select sql + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s - FROM %1$s - ', + FROM %1$s', - ), + ), - 'ItemSQLs' => Array ('' => 'SELECT * FROM %s'), - - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array( + '' => Array ( - 'ForcedSorting' => Array('Priority' => 'desc'), + 'ForcedSorting' => Array ('Priority' => 'desc'), - 'Sorting' => Array('Answer' => 'asc'), + 'Sorting' => Array ('Answer' => 'asc'), - ) - ), + ) + ), - 'Fields' => Array ( - 'AnswerId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'PollId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Fields' => Array ( + 'AnswerId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'PollId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Answer' => Array('type' => 'string', 'formatter' => 'kMultiLanguage', 'not_null' => 1, 'using_fck' => 1, 'default' => '', 'required' => 1), + 'Answer' => Array ('type' => 'string', 'formatter' => 'kMultiLanguage', 'not_null' => 1, 'using_fck' => 1, 'default' => '', 'required' => 1), - 'VotesQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Status' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_opt_Active', 0 => 'la_opt_Disabled'), 'use_phrases' => 1, 'required' => 1, 'not_null' => 1, 'default' => 1), - ), + 'VotesQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Status' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_opt_Active', 0 => 'la_opt_Disabled'), 'use_phrases' => 1, 'required' => 1, 'not_null' => 1, 'default' => 1), + ), - 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disabled.png', - 1 => 'icon16_item.png', - 2 => 'icon16_pending.png', - 'module' => 'core', - ), - 'Fields' => Array ( - 'AnswerId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'Answer' => Array ('data_block' => 'grid_priority_td', 'filter_block' => 'grid_like_filter', 'width' => 300, ), - 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 100, ), - 'VotesQty' => Array ('title' => 'la_col_VoteCount', 'filter_block' => 'grid_like_filter', 'width' => 100, ), + 'Grids' => Array ( + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 0 => 'icon16_disabled.png', + 1 => 'icon16_item.png', + 2 => 'icon16_pending.png', + 'module' => 'core', + ), + 'Fields' => Array ( + 'AnswerId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'Answer' => Array ('data_block' => 'grid_priority_td', 'filter_block' => 'grid_like_filter', 'width' => 300, ), + 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 100, ), + 'VotesQty' => Array ('title' => 'la_col_VoteCount', 'filter_block' => 'grid_like_filter', 'width' => 100, ), - - ), - ), - ), + ), + ), + ), - - ); \ No newline at end of file +); \ No newline at end of file Index: modules/in-commerce/units/reports/reports_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/reports/reports_config.php (revision 15601) +++ modules/in-commerce/units/reports/reports_config.php (revision ) @@ -13,121 +13,120 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'rep', + 'Prefix' => 'rep', - 'ItemClass' => Array('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class' => 'ReportsEventHandler', 'file' => 'reports_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'ReportsEventHandler', 'file' => 'reports_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class' => 'ReportsTagProcessor', 'file' => 'reports_tag_processor.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'ReportsTagProcessor', 'file' => 'reports_tag_processor.php', 'build_event' => 'OnBuild'), - 'AutoLoad' => true, + 'AutoLoad' => true, - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), - 'Hooks' => Array( + 'Hooks' => Array ( - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'rep', - 'HookToSpecial' => '*', + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'rep', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnAfterConfigRead'), + 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnUpdateConfig', - ), - ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnUpdateConfig', + ), + ), - 'IDField' => 'CategoryId', + 'IDField' => 'CategoryId', - 'TitlePresets' => Array( + 'TitlePresets' => Array ( - 'default' => Array( 'new_status_labels' => Array('d' => '!la_title_Adding_Discount!'), + 'default' => Array ( + 'new_status_labels' => Array ('d' => '!la_title_Adding_Discount!'), - 'edit_status_labels' => Array('d' => '!la_title_Editing_Discount!'), + 'edit_status_labels' => Array ('d' => '!la_title_Editing_Discount!'), - 'new_titlefield' => Array('d' => '!la_title_New_Discount!'), + 'new_titlefield' => Array ('d' => '!la_title_New_Discount!'), - ), + ), - 'report_options' =>Array('format' => "!la_title_ReportOptions!"), + 'report_options' =>Array ('format' => "!la_title_ReportOptions!"), - 'report_results' =>Array('format' => "!la_title_ReportResults!"), + 'report_results' =>Array ('format' => "!la_title_ReportResults!"), - 'report_chart' =>Array('format' => "!la_title_SalesReportChart!"), + 'report_chart' =>Array ('format' => "!la_title_SalesReportChart!"), - ), + ), - 'PermSection' => Array('main' => 'in-commerce:reports'), + 'PermSection' => Array ('main' => 'in-commerce:reports'), - 'Sections' => Array( + 'Sections' => Array ( - 'in-commerce:reports' => Array( + 'in-commerce:reports' => Array ( - 'parent' => 'in-commerce', + 'parent' => 'in-commerce', - 'icon' => 'in-commerce:sales_report', + 'icon' => 'in-commerce:sales_report', - 'label' => 'la_tab_SaleReports', + 'label' => 'la_tab_SaleReports', - 'url' => Array('t' => 'in-commerce/reports/reports', 'pass' => 'm,rep', 'rep_event' => 'OnNew'), + 'url' => Array ('t' => 'in-commerce/reports/reports', 'pass' => 'm,rep', 'rep_event' => 'OnNew'), - 'permissions' => Array('view', 'add'), + 'permissions' => Array ('view', 'add'), - 'priority' => 2, + 'priority' => 2, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - 'ListSQLs' => Array( '' => 'SELECT %1$s.* %2$s FROM %1$s', - ), // key - special, value - list select sql - 'ItemSQLs' => Array( '' => 'SELECT * FROM %1$s', + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM %1$s', - ), + ), + - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( - 'Sorting' => Array ('Name' => 'asc'), - ) - ), + '' => Array ( + 'Sorting' => Array ('Name' => 'asc'), + ) + ), - 'CalculatedFields' => Array ( - '' => Array ( - 'CategoryId' => '0', - ), - ), + 'CalculatedFields' => Array ( + '' => Array ( + 'CategoryId' => '0', + ), + ), - 'Fields' => Array( - - ), - 'VirtualFields' => Array( + 'VirtualFields' => Array ( - 'ReportType' => array('formatter' => 'kOptionsFormatter', 'options' =>array( + 'ReportType' => Array ('formatter' => 'kOptionsFormatter', 'options' =>Array ( - 12 => 'la_Overall', - 1 => 'la_ByCategory', - 2 => 'la_ByUser', - 5 => 'la_byProduct' - ), - 'use_phrases' => 1, 'default' => 12, - ), + 12 => 'la_Overall', + 1 => 'la_ByCategory', + 2 => 'la_ByUser', + 5 => 'la_byProduct' + ), + 'use_phrases' => 1, 'default' => 12, + ), - 'FromDateTime' => Array('formatter' => 'kDateFormatter', 'default' => '', 'filter_type' => 'range_from', 'filter_field' => 'OrderDate' ), + 'FromDateTime' => Array ('formatter' => 'kDateFormatter', 'default' => '', 'filter_type' => 'range_from', 'filter_field' => 'OrderDate' ), - 'ToDateTime' => Array('formatter' => 'kDateFormatter', 'default' => '', 'filter_type' => 'range_to', 'filter_field' => 'OrderDate', 'empty_time' => adodb_mktime(23,59,59) ), + 'ToDateTime' => Array ('formatter' => 'kDateFormatter', 'default' => '', 'filter_type' => 'range_to', 'filter_field' => 'OrderDate', 'empty_time' => adodb_mktime(23,59,59) ), - 'Recursive' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), - 'use_phrases' => 1, 'not_null' => 1, 'default' => 1, - ), - 'SkipEmpty' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), - 'use_phrases' => 1, 'not_null' => 1, 'default' => 1, - ), - 'CategoryId' => Array ('type' => 'int', 'default' => 0), - ), + 'Recursive' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), + 'use_phrases' => 1, 'not_null' => 1, 'default' => 1, + ), + 'SkipEmpty' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), + 'use_phrases' => 1, 'not_null' => 1, 'default' => 1, + ), + 'CategoryId' => Array ('type' => 'int', 'default' => 0), + ), + - 'Grids' => Array( + 'Grids' => Array ( - 'Default' => Array( + 'Default' => Array ( - 'Icons' => Array( + 'Icons' => Array ( - 'default' => 'icon16_item.png', - 'module' => 'core', - ), + 'default' => 'icon16_item.png', + 'module' => 'core', + ), - 'Fields' => Array( + 'Fields' => Array ( - 'Name' => Array('data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter'), + 'Name' => Array ('data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter'), - 'Start' => Array('filter_block' => 'grid_date_range_filter'), + 'Start' => Array ('filter_block' => 'grid_date_range_filter'), - 'End' => Array('filter_block' => 'grid_date_range_filter'), + 'End' => Array ('filter_block' => 'grid_date_range_filter'), - 'GroupId' => Array( 'title' => 'column:la_fld_Group', 'filter_block' => 'grid_options_filter'), + 'GroupId' => Array ( 'title' => 'column:la_fld_Group', 'filter_block' => 'grid_options_filter'), - 'Type' => Array('filter_block' => 'grid_options_filter'), + 'Type' => Array ('filter_block' => 'grid_options_filter'), - 'Amount' => Array('filter_block' => 'grid_range_filter'), + 'Amount' => Array ('filter_block' => 'grid_range_filter'), - ), + ), - - ), - ), - ); \ No newline at end of file + ), + ), +); \ No newline at end of file Index: modules/in-auction/units/helpers/helpers_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-auction/units/helpers/helpers_config.php (revision 15601) +++ modules/in-auction/units/helpers/helpers_config.php (revision ) @@ -13,13 +13,13 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array ( - 'Prefix' => 'ebay-helpers', +$config = Array ( + 'Prefix' => 'ebay-helpers', - 'EventHandlerClass' => Array('class' => 'kEventHandler', 'file' => '', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'kEventHandler', 'file' => '', 'build_event' => 'OnBuild'), - 'RegisterClasses' => Array ( + 'RegisterClasses' => Array ( - Array('pseudo' => 'eBayHelper', 'class' => 'eBayHelper', 'file' => 'ebay_helper.php', 'build_event' => ''), + Array ('pseudo' => 'eBayHelper', 'class' => 'eBayHelper', 'file' => 'ebay_helper.php', 'build_event' => ''), - Array('pseudo' => 'CatSelectHelper', 'class' => 'CatSelectHelper', 'file' => 'catselect_helper.php', 'build_event' => ''), + Array ('pseudo' => 'CatSelectHelper', 'class' => 'CatSelectHelper', 'file' => 'catselect_helper.php', 'build_event' => ''), - Array('pseudo' => 'XMLHelper', 'class' => 'XMLHelper', 'file' => 'xml_helper.php', 'build_event' => ''), + Array ('pseudo' => 'XMLHelper', 'class' => 'XMLHelper', 'file' => 'xml_helper.php', 'build_event' => ''), - ), - ); \ No newline at end of file + ), +); \ No newline at end of file Index: modules/in-commerce/units/affiliate_payment_types/affiliate_payment_types_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/affiliate_payment_types/affiliate_payment_types_config.php (revision 15601) +++ modules/in-commerce/units/affiliate_payment_types/affiliate_payment_types_config.php (revision ) @@ -13,100 +13,103 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'apt', + 'Prefix' => 'apt', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'AffiliatePaymentTypesEventHandler', 'file' => 'affiliate_payment_types_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'AffiliatePaymentTypesEventHandler', 'file' => 'affiliate_payment_types_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'AffiliatePaymentTypeTagProcessor', 'file' => 'affiliate_payment_types_tp.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'AffiliatePaymentTypeTagProcessor', 'file' => 'affiliate_payment_types_tp.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, + - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), - 'IDField' => 'PaymentTypeId', + 'IDField' => 'PaymentTypeId', - 'StatusField' => Array ('Status', 'IsPrimary'), // field, that is affected by Approve/Decline events + 'StatusField' => Array ('Status', 'IsPrimary'), // field, that is affected by Approve/Decline events - 'TitleField' => 'Name', + 'TitleField' => 'Name', - 'TitlePresets' => Array ( + 'TitlePresets' => Array ( - 'default' => Array ( 'new_status_labels' => Array ('apt' => '!la_title_Adding_Affiliate_Payment_Type!'), + 'default' => Array ( + 'new_status_labels' => Array ('apt' => '!la_title_Adding_Affiliate_Payment_Type!'), - 'edit_status_labels' => Array ('apt' => '!la_title_Editing_Affiliate_Payment_Type!'), + 'edit_status_labels' => Array ('apt' => '!la_title_Editing_Affiliate_Payment_Type!'), - 'new_titlefield' => Array ('apt' => '!la_title_New_Affiliate_Payment_Type!'), + 'new_titlefield' => Array ('apt' => '!la_title_New_Affiliate_Payment_Type!'), - ), + ), - 'affiliate_payment_types_list' => Array ('prefixes' => Array ('apt_List'), 'format' => "!la_title_AffiliatePaymentTypes!"), + 'affiliate_payment_types_list' => Array ('prefixes' => Array ('apt_List'), 'format' => "!la_title_AffiliatePaymentTypes!"), - 'affiliate_payment_types_edit' => Array ('prefixes' => Array ('apt'), 'format' => "#apt_status# '#apt_titlefield#' - !la_title_General!"), + 'affiliate_payment_types_edit' => Array ('prefixes' => Array ('apt'), 'format' => "#apt_status# '#apt_titlefield#' - !la_title_General!"), - - ), + ), - 'PermSection' => Array ('main' => 'in-commerce:affiliate_payment_types'), + 'PermSection' => Array ('main' => 'in-commerce:affiliate_payment_types'), - 'Sections' => Array ( + 'Sections' => Array ( - 'in-commerce:affiliate_payment_types' => Array ( + 'in-commerce:affiliate_payment_types' => Array ( - 'parent' => 'in-commerce:affiliates_folder', + 'parent' => 'in-commerce:affiliates_folder', - 'icon' => 'affiliates', + 'icon' => 'affiliates', - 'label' => 'la_tab_AffiliatePaymentTypes', + 'label' => 'la_tab_AffiliatePaymentTypes', - 'url' => Array ('t' => 'in-commerce/affiliate_plans/affiliate_payment_types_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-commerce/affiliate_plans/affiliate_payment_types_list', 'pass' => 'm'), - 'permissions' => Array ( + 'permissions' => Array ( - 'view', 'add', 'edit', 'delete', 'advanced:approve', - 'advanced:decline', 'advanced:set_primary', 'advanced:move_up', 'advanced:move_down' - ), + 'view', 'add', 'edit', 'delete', 'advanced:approve', + 'advanced:decline', 'advanced:set_primary', 'advanced:move_up', 'advanced:move_down' + ), - 'priority' => 5.3, // ., because this section replaces parent in tree + 'priority' => 5.3, // ., because this section replaces parent in tree - 'type' => stTAB, + 'type' => stTAB, - ), - ), + ), + ), - 'TableName' => TABLE_PREFIX.'AffiliatePaymentTypes', + 'TableName' => TABLE_PREFIX.'AffiliatePaymentTypes', - 'ListSQLs' => Array ('' => 'SELECT * FROM %s'), - 'ItemSQLs' => Array ('' => 'SELECT * FROM %s'), + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s' + ), - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( - 'ForcedSorting' => Array ('IsPrimary' => 'desc', 'Priority' => 'desc'), - 'Sorting' => Array ('Name' => 'asc'), - ) - ), + '' => Array ( + 'ForcedSorting' => Array ('IsPrimary' => 'desc', 'Priority' => 'desc'), + 'Sorting' => Array ('Name' => 'asc'), + ) + ), - 'Fields' => Array ( - 'PaymentTypeId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Name' => Array ('type' => 'string', 'not_null' => 1, 'required' => 1, 'default' => ''), - 'Description' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => NULL), - 'Status' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( 0 => 'la_Disabled', 1 => 'la_Active', ), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), - 'IsPrimary' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), - 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - ), + 'Fields' => Array ( + 'PaymentTypeId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Name' => Array ('type' => 'string', 'not_null' => 1, 'required' => 1, 'default' => ''), + 'Description' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => NULL), + 'Status' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( 0 => 'la_Disabled', 1 => 'la_Active', ), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), + 'IsPrimary' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), + 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + ), - 'Grids' => Array ( + 'Grids' => Array ( - 'Default' => Array ( + 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - '0_0' => 'icon16_disabled.png', - '0_1' => 'icon16_disabled.png', - '1_0' => 'icon16_item.png', - '1_1' => 'icon16_primary.png', - 'module' => 'core', - ), - 'Fields' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + '0_0' => 'icon16_disabled.png', + '0_1' => 'icon16_disabled.png', + '1_0' => 'icon16_item.png', + '1_1' => 'icon16_primary.png', + 'module' => 'core', + ), + 'Fields' => Array ( - 'PaymentTypeId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'PaymentTypeId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'Name' => Array ( 'data_block' => 'affiliate_payment_type_caption_td', 'filter_block' => 'grid_like_filter', 'width' => 200, ), + 'Name' => Array ( 'data_block' => 'affiliate_payment_type_caption_td', 'filter_block' => 'grid_like_filter', 'width' => 200, ), - 'Description' => Array ( 'filter_block' => 'grid_like_filter', 'width' => 200, ), + 'Description' => Array ( 'filter_block' => 'grid_like_filter', 'width' => 200, ), - ), - ), + ), + ), - - ), - ); \ No newline at end of file + ), +); \ No newline at end of file Index: modules/custom/units/helpers/helpers_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/custom/units/helpers/helpers_config.php (revision 15601) +++ modules/custom/units/helpers/helpers_config.php (revision ) @@ -2,13 +2,12 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - - 'Prefix' => 'custom-helpers', + 'Prefix' => 'custom-helpers', - 'EventHandlerClass' => Array ('class' => 'kEventHandler', 'file' => '', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'kEventHandler', 'file' => '', 'build_event' => 'OnBuild'), - 'RegisterClasses' => Array ( - Array ('pseudo' => 'SampleHelper', 'class' => 'SampleHelper', 'file' => 'sample_helper.php', 'build_event' => ''), - ), - ); \ No newline at end of file + 'RegisterClasses' => Array ( + Array ('pseudo' => 'SampleHelper', 'class' => 'SampleHelper', 'file' => 'sample_helper.php', 'build_event' => ''), + ), +); \ No newline at end of file Index: modules/in-commerce/units/shipping/shipping_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/shipping/shipping_config.php (revision 15601) +++ modules/in-commerce/units/shipping/shipping_config.php (revision ) @@ -11,193 +11,198 @@ * See http://www.in-portal.org/commercial-license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 's', + 'Prefix' => 's', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'ShippingEventHandler', 'file' => 'shipping_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'ShippingEventHandler', 'file' => 'shipping_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'ShippingTagProcessor', 'file' => 'shipping_tag_processor.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'ShippingTagProcessor', 'file' => 'shipping_tag_processor.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, + - 'AggregateTags' => Array ( - Array ( - 'AggregateTo' => 'ord', - 'AggregatedTagName' => 'PrintShippingTypes', - 'LocalTagName' => 'Order_PrintShippingTypes', - ), - ), + 'AggregateTags' => Array ( + Array ( + 'AggregateTo' => 'ord', + 'AggregatedTagName' => 'PrintShippingTypes', + 'LocalTagName' => 'Order_PrintShippingTypes', + ), + ), + - 'Hooks' => Array ( + 'Hooks' => Array ( - Array ( - 'Mode' => hBEFORE, - 'Conditional' => true, - 'HookToPrefix' => 'sc', - 'HookToSpecial' => '', - 'HookToEvent' => Array ( 'OnPropagate', 'OnClearAll' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnPreSave', - ), - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => true, + 'HookToPrefix' => 'sc', + 'HookToSpecial' => '', + 'HookToEvent' => Array ( 'OnPropagate', 'OnClearAll' ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnPreSave', + ), + ), + - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), + - 'IDField' => 'ShippingID', + 'IDField' => 'ShippingID', - 'StatusField' => Array ('Status'), + 'StatusField' => Array ('Status'), - 'TitleField' => 'Name', + 'TitleField' => 'Name', - 'TitlePresets' => Array ( - 'default' => Array ( - 'new_status_labels' => Array ('s' => '!la_title_AddingShippingType!'), - 'edit_status_labels' => Array ('s' => '!la_title_EditingShippingType!'), - 'new_titlefield' => Array ('s' => '!la_title_NewShippingType!'), - ), - 'shipping_list' => Array ( - 'prefixes' => Array ('s_List'), - 'format' => "!la_title_ShippingTypes!", - ), - 'shipping_type_edit' => Array ( - 'prefixes' => Array ('s'), - 'format' => "#s_status# '#s_titlefield#' - !la_title_General!", - ), - 'zones' => Array ( - 'prefixes' => Array ('s'), - 'format' => "#s_status# '#s_titlefield#' - !la_title_Zones!", - ), + 'TitlePresets' => Array ( + 'default' => Array ( + 'new_status_labels' => Array ('s' => '!la_title_AddingShippingType!'), + 'edit_status_labels' => Array ('s' => '!la_title_EditingShippingType!'), + 'new_titlefield' => Array ('s' => '!la_title_NewShippingType!'), + ), + 'shipping_list' => Array ( + 'prefixes' => Array ('s_List'), + 'format' => "!la_title_ShippingTypes!", + ), + 'shipping_type_edit' => Array ( + 'prefixes' => Array ('s'), + 'format' => "#s_status# '#s_titlefield#' - !la_title_General!", + ), + 'zones' => Array ( + 'prefixes' => Array ('s'), + 'format' => "#s_status# '#s_titlefield#' - !la_title_Zones!", + ), - 'zones_edit' => Array ( + 'zones_edit' => Array ( - 'prefixes' => Array ('z'), - 'new_status_labels' => Array ('z' => '!la_title_AddingShippingZone!'), + 'prefixes' => Array ('z'), + 'new_status_labels' => Array ('z' => '!la_title_AddingShippingZone!'), - 'edit_status_labels' => Array ('z' => '!la_title_EditingShippingZone!'), + 'edit_status_labels' => Array ('z' => '!la_title_EditingShippingZone!'), - 'format' => "#z_status# '#z_titlefield#'", - ), - 'brackets' => Array ('prefixes' => Array ('s'), 'format' => "#s_status# '#s_titlefield#' - !la_title_Brackets!",), - 'costs' => Array ('prefixes' => Array ('s'), 'format' => "#s_status# '#s_titlefield#' - !la_title_Costs!",), - 'groups' => Array ('prefixes' => Array ('s'), 'format' => "#s_status# '#s_titlefield#' - !la_title_Groups!",), - 'select_modifier' => Array ('prefixes' => Array ('s'), 'format' => "!la_title_ApplyModifier!",), - ), + 'format' => "#z_status# '#z_titlefield#'", + ), + 'brackets' => Array ('prefixes' => Array ('s'), 'format' => "#s_status# '#s_titlefield#' - !la_title_Brackets!",), + 'costs' => Array ('prefixes' => Array ('s'), 'format' => "#s_status# '#s_titlefield#' - !la_title_Costs!",), + 'groups' => Array ('prefixes' => Array ('s'), 'format' => "#s_status# '#s_titlefield#' - !la_title_Groups!",), + 'select_modifier' => Array ('prefixes' => Array ('s'), 'format' => "!la_title_ApplyModifier!",), + ), - 'EditTabPresets' => Array ( - 'Default' => Array ( - 'general' => Array ('title' => 'la_tab_General', 't' => 'in-commerce/shipping/shipping_edit', 'priority' => 1), - 'zones' => Array ('title' => 'la_tab_ShippingZones', 't' => 'in-commerce/shipping/shipping_zones', 'priority' => 2), - 'brackets' => Array ('title' => 'la_tab_Brackets', 't' => 'in-commerce/shipping/shipping_brackets', 'priority' => 3), - 'costs' => Array ('title' => 'la_tab_Costs', 't' => 'in-commerce/shipping/shipping_costs', 'priority' => 4), - 'groups' => Array ('title' => 'la_tab_UserGroups', 't' => 'in-commerce/shipping/shipping_type_groups', 'priority' => 5), - ), - ), + 'EditTabPresets' => Array ( + 'Default' => Array ( + 'general' => Array ('title' => 'la_tab_General', 't' => 'in-commerce/shipping/shipping_edit', 'priority' => 1), + 'zones' => Array ('title' => 'la_tab_ShippingZones', 't' => 'in-commerce/shipping/shipping_zones', 'priority' => 2), + 'brackets' => Array ('title' => 'la_tab_Brackets', 't' => 'in-commerce/shipping/shipping_brackets', 'priority' => 3), + 'costs' => Array ('title' => 'la_tab_Costs', 't' => 'in-commerce/shipping/shipping_costs', 'priority' => 4), + 'groups' => Array ('title' => 'la_tab_UserGroups', 't' => 'in-commerce/shipping/shipping_type_groups', 'priority' => 5), + ), + ), - 'PermSection' => Array ('main' => 'in-commerce:shipping'), + 'PermSection' => Array ('main' => 'in-commerce:shipping'), - 'Sections' => Array ( + 'Sections' => Array ( - 'in-commerce:shipping_folder' => Array ( + 'in-commerce:shipping_folder' => Array ( - 'parent' => 'in-commerce:setting_folder', + 'parent' => 'in-commerce:setting_folder', - 'icon' => 'conf_shipping', + 'icon' => 'conf_shipping', - 'use_parent_header' => 1, + 'use_parent_header' => 1, - 'label' => 'la_tab_Shipping', + 'label' => 'la_tab_Shipping', - 'permissions' => Array (), + 'permissions' => Array (), - 'priority' => 4, + 'priority' => 4, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'in-commerce:shipping' => Array ( + 'in-commerce:shipping' => Array ( - 'parent' => 'in-commerce:shipping_folder', + 'parent' => 'in-commerce:shipping_folder', - 'icon' => 'conf_shipping', + 'icon' => 'conf_shipping', - 'label' => 'la_tab_CustomShippingTypes', + 'label' => 'la_tab_CustomShippingTypes', - 'url' => Array ('t' => 'in-commerce/shipping/shipping_custom_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-commerce/shipping/shipping_custom_list', 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit', 'delete', 'advanced:approve', 'advanced:decline'), + 'permissions' => Array ('view', 'add', 'edit', 'delete', 'advanced:approve', 'advanced:decline'), - 'priority' => 4.1, + 'priority' => 4.1, - 'type' => stTAB, + 'type' => stTAB, - ), - ), + ), + ), - 'TableName' => TABLE_PREFIX.'ShippingType', + 'TableName' => TABLE_PREFIX.'ShippingType', - 'SubItems' => Array ('z', 'br'), + 'SubItems' => Array ('z', 'br'), - 'ListSQLs' => Array ( '' => 'SELECT * FROM %s'), - // key - special, value - list select sql - 'ItemSQLs' => Array ( '' => 'SELECT * FROM %s'), + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s' + ), - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( - 'Sorting' => Array ('Name' => 'asc'), - ) - ), + '' => Array ( + 'Sorting' => Array ('Name' => 'asc'), + ) + ), - 'Fields' => Array ( + 'Fields' => Array ( - 'ShippingID' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Code' => Array ('type' => 'string', 'not_null' => 1, 'default' => '', 'required' => 1, 'max_len' =>25, 'error_msgs' => Array ('required' => 'Please fill in')), - 'Name' => Array ('type' => 'string', 'not_null' => 1, 'default' => '', 'required' => 1, 'max_len' =>100, 'error_msgs' => Array ('required' => 'Please fill in')), - 'SpeedCode' => Array ('type' => 'string', 'not_null' => 1, 'default' => '', 'required' => 1, 'max_len' => 25), - 'LocationFrom' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( - 1 => 'Riga', - 2 => 'Salaspils', - 3 => 'Chicago', - 4 => 'Dublin' - ), - 'not_null' => 1, 'default' => 1 - ), - 'Type' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, - 'options' => Array (1 => 'la_ByWeight', 2 => 'la_ByItem', 3 => 'la_ByAmount', 4 => 'la_Handling'), - 'not_null' => 1, 'default' => 1), - 'BaseFee' => Array ('type' => 'float', 'min_value_inc' =>0, 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => 0, 'not_null' => 1), - 'CODFlatSurcharge' => Array ('type' => 'float', 'min_value_inc' =>0, 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => 0, 'not_null' => 1), - 'CODPercentSurcharge' => Array ('type' => 'float', 'min_value_inc' =>0, 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => 0, 'not_null' => 1), - 'Status' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( 1 => 'la_Active', 0 => 'la_Disabled', 2 => 'la_SelectedOnly' ), 'use_phrases' => 1, - 'default' => 1, 'not_null' => 1, - ), - 'CostType' => Array ('type' => 'int', 'options' => Array ( 1 => 'la_Flat', 2 => 'la_PerUnit', 3 => 'la_Combined' ), 'use_phrases' => 1, 'default' => 1, 'not_null' => 1 ), - 'ZeroIfEmpty' => Array ('type' => 'int', 'options' => Array ( 1 => 'la_Zeros', 0 => 'la_NoShipments' ), 'use_phrases' => 1, 'default' => 1, 'not_null' => 1 ), - 'PrecisionBeforeSep' => Array ('type' => 'int', 'options' => Array ( 1 => '1 digit', 2 => '2 digits', 3 => '3 digits', 4 => '4 digits' ), 'default' => 2, 'not_null' => 1 ), - 'PrecisionAfterSep' => Array ('type' => 'int', 'options' => Array ( 0 => 'none', 1 => '1 digit', 2 => '2 digits' ), 'default' => 2, 'not_null' => 1 ), - 'PortalGroups' => Array ('type' => 'string', 'default' => null), + 'ShippingID' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Code' => Array ('type' => 'string', 'not_null' => 1, 'default' => '', 'required' => 1, 'max_len' =>25, 'error_msgs' => Array ('required' => 'Please fill in')), + 'Name' => Array ('type' => 'string', 'not_null' => 1, 'default' => '', 'required' => 1, 'max_len' =>100, 'error_msgs' => Array ('required' => 'Please fill in')), + 'SpeedCode' => Array ('type' => 'string', 'not_null' => 1, 'default' => '', 'required' => 1, 'max_len' => 25), + 'LocationFrom' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( + 1 => 'Riga', + 2 => 'Salaspils', + 3 => 'Chicago', + 4 => 'Dublin' + ), + 'not_null' => 1, 'default' => 1 + ), + 'Type' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, + 'options' => Array (1 => 'la_ByWeight', 2 => 'la_ByItem', 3 => 'la_ByAmount', 4 => 'la_Handling'), + 'not_null' => 1, 'default' => 1), + 'BaseFee' => Array ('type' => 'float', 'min_value_inc' =>0, 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => 0, 'not_null' => 1), + 'CODFlatSurcharge' => Array ('type' => 'float', 'min_value_inc' =>0, 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => 0, 'not_null' => 1), + 'CODPercentSurcharge' => Array ('type' => 'float', 'min_value_inc' =>0, 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => 0, 'not_null' => 1), + 'Status' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( 1 => 'la_Active', 0 => 'la_Disabled', 2 => 'la_SelectedOnly' ), 'use_phrases' => 1, + 'default' => 1, 'not_null' => 1, + ), + 'CostType' => Array ('type' => 'int', 'options' => Array ( 1 => 'la_Flat', 2 => 'la_PerUnit', 3 => 'la_Combined' ), 'use_phrases' => 1, 'default' => 1, 'not_null' => 1 ), + 'ZeroIfEmpty' => Array ('type' => 'int', 'options' => Array ( 1 => 'la_Zeros', 0 => 'la_NoShipments' ), 'use_phrases' => 1, 'default' => 1, 'not_null' => 1 ), + 'PrecisionBeforeSep' => Array ('type' => 'int', 'options' => Array ( 1 => '1 digit', 2 => '2 digits', 3 => '3 digits', 4 => '4 digits' ), 'default' => 2, 'not_null' => 1 ), + 'PrecisionAfterSep' => Array ('type' => 'int', 'options' => Array ( 0 => 'none', 1 => '1 digit', 2 => '2 digits' ), 'default' => 2, 'not_null' => 1 ), + 'PortalGroups' => Array ('type' => 'string', 'default' => null), - 'FreeShippingMinAmount' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'not_null' => 1, 'format' => '%.2f', 'default' => 0), + 'FreeShippingMinAmount' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'not_null' => 1, 'format' => '%.2f', 'default' => 0), - 'IsFreePromoShipping' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, - 'default' => 0, 'not_null' => 1, - ), - 'InsuranceFee' => Array ('type' => 'float', 'default' => null), - 'InsuranceType' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (2 => 'la_Percent', 1 => 'la_Flat',), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 2 - ), - ), + 'IsFreePromoShipping' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, + 'default' => 0, 'not_null' => 1, + ), + 'InsuranceFee' => Array ('type' => 'float', 'default' => null), + 'InsuranceType' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (2 => 'la_Percent', 1 => 'la_Flat',), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 2 + ), + ), - 'Grids' => Array ( + 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disabled.png', - 1 => 'icon16_item.png', - 'module' => 'core', - ), - 'Fields' => Array ( - 'ShippingID' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 50, ), - 'Name' => Array ( 'title' => 'column:la_fld_ShippingName', 'filter_block' => 'grid_range_filter', 'width' => 250, ), - 'Type' => Array ( 'title' => 'column:la_fld_ShippingType', 'filter_block' => 'grid_options_filter', 'width' => 100, ), - 'SpeedCode' => Array ( 'filter_block' => 'grid_like_filter', 'width' => 130, ), - 'BaseFee' => Array ( 'filter_block' => 'grid_range_filter', 'width' => 100, ), - 'IsFreePromoShipping' => Array ( 'filter_block' => 'grid_options_filter', 'width' => 70, ), - 'Status' => Array ( 'filter_block' => 'grid_options_filter', 'width' => 170, ), + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 0 => 'icon16_disabled.png', + 1 => 'icon16_item.png', + 'module' => 'core', + ), + 'Fields' => Array ( + 'ShippingID' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 50, ), + 'Name' => Array ( 'title' => 'column:la_fld_ShippingName', 'filter_block' => 'grid_range_filter', 'width' => 250, ), + 'Type' => Array ( 'title' => 'column:la_fld_ShippingType', 'filter_block' => 'grid_options_filter', 'width' => 100, ), + 'SpeedCode' => Array ( 'filter_block' => 'grid_like_filter', 'width' => 130, ), + 'BaseFee' => Array ( 'filter_block' => 'grid_range_filter', 'width' => 100, ), + 'IsFreePromoShipping' => Array ( 'filter_block' => 'grid_options_filter', 'width' => 70, ), + 'Status' => Array ( 'filter_block' => 'grid_options_filter', 'width' => 170, ), -// 'CODFlatSurcharge' => Array ( 'filter_block' => 'grid_range_filter'), +// 'CODFlatSurcharge' => Array ( 'filter_block' => 'grid_range_filter'), - ), + ), - - ), - ), - ); \ No newline at end of file + ), + ), +); \ No newline at end of file Index: modules/in-bulletin/units/private_message_body/private_message_body_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-bulletin/units/private_message_body/private_message_body_config.php (revision 15601) +++ modules/in-bulletin/units/private_message_body/private_message_body_config.php (revision ) @@ -12,49 +12,52 @@ * See http://www.in-portal.org/license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( - 'Prefix' => 'private-message-body', +$config = Array ( + 'Prefix' => 'private-message-body', - 'ItemClass' => Array('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class' => 'PrivateMessageBodyEventHandler', 'file' => 'private_message_body_eh.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'PrivateMessageBodyEventHandler', 'file' => 'private_message_body_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 'QueryString' => Array ( + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), - 'IDField' => 'PMBodyId', + 'IDField' => 'PMBodyId', - 'TitleField' => 'Subject', + 'TitleField' => 'Subject', - 'TableName' => TABLE_PREFIX.'PrivateMessageBody', + 'TableName' => TABLE_PREFIX.'PrivateMessageBody', - 'ForeignKey' => 'PMBodyId', - 'ParentTableKey' => 'PMBodyId', - 'ParentPrefix' => 'private-message', - 'AutoDelete' => true, - 'AutoClone' => true, + 'ForeignKey' => 'PMBodyId', + 'ParentTableKey' => 'PMBodyId', + 'ParentPrefix' => 'private-message', + 'AutoDelete' => true, + 'AutoClone' => true, - 'ListSQLs' => Array ('' => ' SELECT %1$s.* %2$s FROM %1$s',), - 'ItemSQLs' => Array ('' => ' SELECT %1$s.* %2$s FROM %1$s',), + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM %1$s', + ), - 'Fields' => Array ( - 'PMBodyId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Subject' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), - 'Body' => Array ('type' => 'string', 'default' => NULL), - 'Options' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ReferenceCount' => Array ('type' => 'int', 'not_null' => 1, 'default' => 2), - ), + 'Fields' => Array ( + 'PMBodyId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Subject' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), + 'Body' => Array ('type' => 'string', 'default' => NULL), + 'Options' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ReferenceCount' => Array ('type' => 'int', 'not_null' => 1, 'default' => 2), + ), - 'VirtualFields' => Array ( - 'DisableBBCodes' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), - 'DisableSmileys' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), - 'ShowSignatures' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, 'default' => 1), - ), - ); \ No newline at end of file + 'VirtualFields' => Array ( + 'DisableBBCodes' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), + 'DisableSmileys' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), + 'ShowSignatures' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, 'default' => 1), + ), +); \ No newline at end of file Index: modules/custom/units/sections/sections_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/custom/units/sections/sections_config.php (revision 15601) +++ modules/custom/units/sections/sections_config.php (revision ) @@ -1,108 +1,103 @@ 'custom-sections', + 'Prefix' => 'custom-sections', - 'ConfigPriority' => 2, + 'ConfigPriority' => 2, - # Event handler class used for HOOKing to existing events (ie. ) + # Event handler class used for HOOKing to existing events (ie. ) - 'EventHandlerClass' => Array ('class' => 'CustomEventHandler', 'file' => 'custom_eh.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'CustomEventHandler', 'file' => 'custom_eh.php', 'build_event' => 'OnBuild'), - # Defined to draw new sections (if any) in left nav. tree, normally each unit has it's own Tag Processor - 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + # Defined to draw new sections (if any) in left nav. tree, normally each unit has it's own Tag Processor + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), - # Extend/override already existing classes (ie. Event Handlers, Tag Processors, Helpers) - 'RegisterClasses' => Array ( + # Extend/override already existing classes (ie. Event Handlers, Tag Processors, Helpers) + 'RegisterClasses' => Array ( - # extend default User core/units/users/users_tag_processor.php / users_event_handler.php + # extend default User core/units/users/users_tag_processor.php / users_event_handler.php -// Array ('pseudo' => 'u_TagProcessor', 'class' => 'EUserTagProcessor', 'file' => 'users/e_user_tp.php'), +// Array ('pseudo' => 'u_TagProcessor', 'class' => 'EUserTagProcessor', 'file' => 'users/e_user_tp.php'), -// Array ('pseudo' => 'u_EventHandler', 'class' => 'EUserEventHandler', 'file' => 'users/e_user_eh.php'), +// Array ('pseudo' => 'u_EventHandler', 'class' => 'EUserEventHandler', 'file' => 'users/e_user_eh.php'), - # extend default Product classes /in-commerce/units/products/products_tag_processor.php / products_event_handler.php + # extend default Product classes /in-commerce/units/products/products_tag_processor.php / products_event_handler.php -// Array ('pseudo' => 'p_TagProcessor', 'class' => 'EProductTagProcessor', 'file' => 'products/e_product_tp.php'), +// Array ('pseudo' => 'p_TagProcessor', 'class' => 'EProductTagProcessor', 'file' => 'products/e_product_tp.php'), -// Array ('pseudo' => 'p_EventHandler', 'class' => 'EProductEventHandler', 'file' => 'products/e_product_eh.php'), +// Array ('pseudo' => 'p_EventHandler', 'class' => 'EProductEventHandler', 'file' => 'products/e_product_eh.php'), - # extend default Link /in-link/units/links/link_tag_processor.php / links_event_handler.php + # extend default Link /in-link/units/links/link_tag_processor.php / links_event_handler.php -// Array ('pseudo' => 'l_TagProcessor', 'class' => 'ELinkTagProcessor', 'file' => 'links/e_link_tp.php'), +// Array ('pseudo' => 'l_TagProcessor', 'class' => 'ELinkTagProcessor', 'file' => 'links/e_link_tp.php'), -// Array ('pseudo' => 'l_EventHandler', 'class' => 'ELinkEventHandler', 'file' => 'links/e_link_eh.php'), +// Array ('pseudo' => 'l_EventHandler', 'class' => 'ELinkEventHandler', 'file' => 'links/e_link_eh.php'), - # extend default Category /core/units/categories/categories_tag_processor.php / categories_event_handler.php + # extend default Category /core/units/categories/categories_tag_processor.php / categories_event_handler.php -// Array ('pseudo' => 'c_TagProcessor', 'class' => 'ECategoryTagProcessor', 'file' => 'categories/e_category_tp.php'), +// Array ('pseudo' => 'c_TagProcessor', 'class' => 'ECategoryTagProcessor', 'file' => 'categories/e_category_tp.php'), -// Array ('pseudo' => 'c_EventHandler', 'class' => 'ECategoryEventHandler', 'file' => 'categories/e_category_eh.php'), +// Array ('pseudo' => 'c_EventHandler', 'class' => 'ECategoryEventHandler', 'file' => 'categories/e_category_eh.php'), - # extend default Article /in-news/units/articles/article_tag_processor.php / articles_event_handler.php + # extend default Article /in-news/units/articles/article_tag_processor.php / articles_event_handler.php -// Array ('pseudo' => 'n_TagProcessor', 'class' => 'EArticleTagProcessor', 'file' => 'articles/e_article_tp.php'), +// Array ('pseudo' => 'n_TagProcessor', 'class' => 'EArticleTagProcessor', 'file' => 'articles/e_article_tp.php'), -// Array ('pseudo' => 'n_EventHandler', 'class' => 'EArticleEventHandler', 'file' => 'articles/e_article_eh.php'), +// Array ('pseudo' => 'n_EventHandler', 'class' => 'EArticleEventHandler', 'file' => 'articles/e_article_eh.php'), - - ), + ), - # Replace/substiture any admin default templates with custom ones + # Replace/substiture any admin default templates with custom ones - 'ReplacementTemplates' => Array ( + 'ReplacementTemplates' => Array ( - # replace default image block with custom template + # replace default image block with custom template -// 'incs/image_blocks' => 'custom/incs/image_blocks', +// 'incs/image_blocks' => 'custom/incs/image_blocks', - # replace default edit link template + # replace default edit link template -// 'in-links/links/links_edit' => 'custom/links/links_edit', +// 'in-links/links/links_edit' => 'custom/links/links_edit', - # replace default edit category template + # replace default edit category template -// 'categories/categories_edit' => 'custom/categories/categories_edit', +// 'categories/categories_edit' => 'custom/categories/categories_edit', - ), + ), - # Hooks to events that may call any other events - 'Hooks' => Array ( + # Hooks to events that may call any other events + 'Hooks' => Array ( - - # hook to OnAfterCacheRebuild event of "adm" prefix (tiggered when unit cache is rebuild and stored) called - # to override cloned sub-items (ie. register extended classes for cloned unit configs such as n-img, n-rev) - /*Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'adm', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterCacheRebuild'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnOverrideClonedSubItems', - ),*/ + # hook to OnAfterCacheRebuild event of "adm" prefix (tiggered when unit cache is rebuild and stored) called + # to override cloned sub-items (ie. register extended classes for cloned unit configs such as n-img, n-rev) + /*Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'adm', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterCacheRebuild'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnOverrideClonedSubItems', + ),*/ - # hook to category OnAfterConfigRead event called to customize category configuration settings - /*Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'c', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnModifyCategoriesConfig', - ),*/ - ), + # hook to category OnAfterConfigRead event called to customize category configuration settings + /*Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'c', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnModifyCategoriesConfig', + ),*/ + ), - 'PermSection' => Array ('main' => 'custom', 'email' => 'custom:configuration_email'), + 'PermSection' => Array ('main' => 'custom', 'email' => 'custom:configuration_email'), - # New sections in left navigation - 'Sections' => Array ( - 'custom' => Array ( + # New sections in left navigation + 'Sections' => Array ( + 'custom' => Array ( - 'parent' => 'in-portal:root', + 'parent' => 'in-portal:root', - 'icon' => 'conf_custom', + 'icon' => 'conf_custom', - 'label' => 'la_title_Custom', + 'label' => 'la_title_Custom', - 'url' => Array ('t' => 'index', 'pass' => 'm'), + 'url' => Array ('t' => 'index', 'pass' => 'm'), - 'permissions' => Array ('view'), + 'permissions' => Array ('view'), - 'priority' => 2.4, + 'priority' => 2.4, - 'container' => true, + 'container' => true, - 'show_mode' => smDEBUG, + 'show_mode' => smDEBUG, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - - ), + ), - - ); \ No newline at end of file +); \ No newline at end of file Index: modules/in-bulletin/units/helpers/helpers_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-bulletin/units/helpers/helpers_config.php (revision 15601) +++ modules/in-bulletin/units/helpers/helpers_config.php (revision ) @@ -12,13 +12,13 @@ * See http://www.in-portal.org/license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( - 'Prefix' => 'in-bulletin-helpers', +$config = Array ( + 'Prefix' => 'in-bulletin-helpers', - 'EventHandlerClass' => Array('class' => 'kEventHandler', 'file' => '', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'kEventHandler', 'file' => '', 'build_event' => 'OnBuild'), - 'RegisterClasses' => Array ( + 'RegisterClasses' => Array ( - Array('pseudo' => 'PostHelper', 'class' => 'PostHelper','file' => 'post_helper.php', 'build_event' => ''), + Array ('pseudo' => 'PostHelper', 'class' => 'PostHelper', 'file' => 'post_helper.php', 'build_event' => ''), - ), - ); \ No newline at end of file + ), +); \ No newline at end of file Index: modules/in-commerce/units/orders/orders_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/orders/orders_config.php (revision 15601) +++ modules/in-commerce/units/orders/orders_config.php (revision ) @@ -13,582 +13,577 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'ord', + 'Prefix' => 'ord', - 'ItemClass' => Array ('class' => 'OrdersItem', 'file' => 'orders_item.php', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'OrdersItem', 'file' => 'orders_item.php', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'OrdersEventHandler', 'file' => 'orders_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'OrdersEventHandler', 'file' => 'orders_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'OrdersTagProcessor', 'file' => 'orders_tag_processor.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'OrdersTagProcessor', 'file' => 'orders_tag_processor.php', 'build_event' => 'OnBuild'), - 'ValidatorClass' => 'OrderValidator', + 'ValidatorClass' => 'OrderValidator', - 'AutoLoad' => true, + 'AutoLoad' => true, - 'RegisterClasses' => Array ( - Array ('pseudo' => 'OrderCalculator', 'class' => 'OrderCalculator', 'file' => 'order_calculator.php', 'build_event' => ''), - Array ('pseudo' => 'OrderManager', 'class' => 'OrderManager', 'file' => 'order_manager.php', 'build_event' => ''), - Array ('pseudo' => 'OrderValidator', 'class' => 'OrderValidator', 'file' => 'order_validator.php', 'build_event' => ''), - ), + 'RegisterClasses' => Array ( + Array ('pseudo' => 'OrderCalculator', 'class' => 'OrderCalculator', 'file' => 'order_calculator.php', 'build_event' => ''), + Array ('pseudo' => 'OrderManager', 'class' => 'OrderManager', 'file' => 'order_manager.php', 'build_event' => ''), + Array ('pseudo' => 'OrderValidator', 'class' => 'OrderValidator', 'file' => 'order_validator.php', 'build_event' => ''), + ), - 'Hooks' => Array ( + 'Hooks' => Array ( - Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'ord', - 'HookToSpecial' => '', - 'HookToEvent' => Array ( 'OnPreSave' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnRecalculateItems', - ), + Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'ord', + 'HookToSpecial' => '', + 'HookToEvent' => Array ( 'OnPreSave' ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnRecalculateItems', + ), - Array( + Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => '', - 'HookToSpecial' => '', + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => '', + 'HookToSpecial' => '', - 'HookToEvent' => Array( 'OnUpdateCart', 'OnUpdateCartJSON', 'OnCheckout' ), + 'HookToEvent' => Array ( 'OnUpdateCart', 'OnUpdateCartJSON', 'OnCheckout' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnApplyCoupon', - ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnApplyCoupon', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => '', - 'HookToSpecial' => '', + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => '', + 'HookToSpecial' => '', - 'HookToEvent' => Array( 'OnUpdateCart', 'OnUpdateCartJSON', 'OnCheckout' ), + 'HookToEvent' => Array ( 'OnUpdateCart', 'OnUpdateCartJSON', 'OnCheckout' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnApplyGiftCertificate', - ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnApplyGiftCertificate', + ), - Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'u', - 'HookToSpecial' => '', - 'HookToEvent' => Array ( 'OnCreate' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnUserCreate', - ), + Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'u', + 'HookToSpecial' => '', + 'HookToEvent' => Array ( 'OnCreate' ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnUserCreate', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'u', - 'HookToSpecial' => '', - 'HookToEvent' => Array ('OnCheckExpiredMembership'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnCheckRecurringOrders', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'u', + 'HookToSpecial' => '', + 'HookToEvent' => Array ('OnCheckExpiredMembership'), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnCheckRecurringOrders', + ), - Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'u', - 'HookToSpecial' => '', - 'HookToEvent' => Array ( 'OnAfterLogin' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnUserLogin', - ), + Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'u', + 'HookToSpecial' => '', + 'HookToEvent' => Array ( 'OnAfterLogin' ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnUserLogin', + ), - Array ( - 'Mode' => hBEFORE, // before because OnInpLogin is called after real in-portal login and uses data from hooks - 'Conditional' => false, - 'HookToPrefix' => 'u', - 'HookToSpecial' => '', - 'HookToEvent' => Array ( 'OnInpLogin' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnUserLogin', - ), + Array ( + 'Mode' => hBEFORE, // before because OnInpLogin is called after real in-portal login and uses data from hooks + 'Conditional' => false, + 'HookToPrefix' => 'u', + 'HookToSpecial' => '', + 'HookToEvent' => Array ( 'OnInpLogin' ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnUserLogin', + ), - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'adm', - 'HookToSpecial' => '*', + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'adm', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnStartup'), + 'HookToEvent' => Array ('OnStartup'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnRestoreOrder', - ), - ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnRestoreOrder', + ), + ), + - 'AggregateTags' => Array ( - Array ( - 'AggregateTo' => 'orditems', - 'AggregatedTagName' => 'LinkRemoveFromCart', - 'LocalTagName' => 'Orditems_LinkRemoveFromCart', - ), - Array ( - 'AggregateTo' => 'orditems', - 'AggregatedTagName' => 'ProductLink', - 'LocalTagName' => 'Orderitems_ProductLink', - ), - Array ( - 'AggregateTo' => 'orditems', - 'AggregatedTagName' => 'ProductExists', - 'LocalTagName' => 'Orderitems_ProductExists', - ), - ), + 'AggregateTags' => Array ( + Array ( + 'AggregateTo' => 'orditems', + 'AggregatedTagName' => 'LinkRemoveFromCart', + 'LocalTagName' => 'Orditems_LinkRemoveFromCart', + ), + Array ( + 'AggregateTo' => 'orditems', + 'AggregatedTagName' => 'ProductLink', + 'LocalTagName' => 'Orderitems_ProductLink', + ), + Array ( + 'AggregateTo' => 'orditems', + 'AggregatedTagName' => 'ProductExists', + 'LocalTagName' => 'Orderitems_ProductExists', + ), + ), - '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' => 'OrderId', + 'IDField' => 'OrderId', - 'StatusField' => Array ('Status'), // field, that is affected by Approve/Decline events + 'StatusField' => Array ('Status'), // field, that is affected by Approve/Decline events - 'ViewMenuPhrase' => 'la_title_Orders', + 'ViewMenuPhrase' => 'la_title_Orders', - 'CatalogTabIcon' => 'icon16_item.png', + 'CatalogTabIcon' => 'icon16_item.png', - 'TitleField' => 'OrderNumber', + 'TitleField' => 'OrderNumber', + - 'TitlePresets' => Array ( + 'TitlePresets' => Array ( - 'default' => Array ( + 'default' => Array ( - 'new_status_labels' => Array ('ord' => '!la_title_Adding_Order!'), + 'new_status_labels' => Array ('ord' => '!la_title_Adding_Order!'), - 'edit_status_labels' => Array ('ord' => '!la_title_Editing_Order!'), + 'edit_status_labels' => Array ('ord' => '!la_title_Editing_Order!'), - 'new_titlefield' => Array ('ord' => '!la_title_New_Order!'), + 'new_titlefield' => Array ('ord' => '!la_title_New_Order!'), - ), + ), - 'orders_incomplete' => Array ( 'prefixes' => Array ('ord.incomplete_List'), - 'format' => "!la_title_IncompleteOrders!", + 'orders_incomplete' => Array ( + 'prefixes' => Array ('ord.incomplete_List'), 'format' => "!la_title_IncompleteOrders!", - ), + ), - 'orders_pending' => Array ( 'prefixes' => Array ('ord.pending_List'), - 'format' => "!la_title_PendingOrders!", + 'orders_pending' => Array ( + 'prefixes' => Array ('ord.pending_List'), 'format' => "!la_title_PendingOrders!", - ), + ), - 'orders_backorders' => Array ( 'prefixes' => Array ('ord.backorders_List'), - 'format' => "!la_title_BackOrders!", + 'orders_backorders' => Array ( + 'prefixes' => Array ('ord.backorders_List'), 'format' => "!la_title_BackOrders!", - ), + ), - 'orders_toship' => Array ( 'prefixes' => Array ('ord.toship_List'), - 'format' => "!la_title_OrdersToShip!", + 'orders_toship' => Array ( + 'prefixes' => Array ('ord.toship_List'), 'format' => "!la_title_OrdersToShip!", - ), + ), - 'orders_processed' => Array ( 'prefixes' => Array ('ord.processed_List'), - 'format' => "!la_title_OrdersProcessed!", + 'orders_processed' => Array ( + 'prefixes' => Array ('ord.processed_List'), 'format' => "!la_title_OrdersProcessed!", - ), + ), - 'orders_returns' => Array ( 'prefixes' => Array ('ord.returns_List'), - 'format' => "!la_title_OrdersReturns!", + 'orders_returns' => Array ( + 'prefixes' => Array ('ord.returns_List'), 'format' => "!la_title_OrdersReturns!", - ), + ), - 'orders_denied' => Array ( 'prefixes' => Array ('ord.denied_List'), - 'format' => "!la_title_OrdersDenied!", + 'orders_denied' => Array ( + 'prefixes' => Array ('ord.denied_List'), 'format' => "!la_title_OrdersDenied!", - ), + ), - 'orders_archived' => Array ( 'prefixes' => Array ('ord.archived_List'), - 'format' => "!la_title_OrdersArchived!", + + 'orders_archived' => Array ( + 'prefixes' => Array ('ord.archived_List'), 'format' => "!la_title_OrdersArchived!", - ), + ), - 'orders_search' => Array ( 'prefixes' => Array ('ord.search_List'), - 'format' => "!la_title_OrdersSearch!", + 'orders_search' => Array ( + 'prefixes' => Array ('ord.search_List'), 'format' => "!la_title_OrdersSearch!", - ), + ), - 'orders_edit_general' => Array ('prefixes' => Array ('ord'), 'format' => "#ord_status# '#ord_titlefield#' - !la_title_General!"), + 'orders_edit_general' => Array ('prefixes' => Array ('ord'), 'format' => "#ord_status# '#ord_titlefield#' - !la_title_General!"), - 'orders_edit_billing' => Array ('prefixes' => Array ('ord'), 'format' => "#ord_status# '#ord_titlefield#' - !la_title_OrderBilling!"), + 'orders_edit_billing' => Array ('prefixes' => Array ('ord'), 'format' => "#ord_status# '#ord_titlefield#' - !la_title_OrderBilling!"), - 'orders_edit_shipping' => Array ('prefixes' => Array ('ord'), 'format' => "#ord_status# '#ord_titlefield#' - !la_title_OrderShipping!"), + 'orders_edit_shipping' => Array ('prefixes' => Array ('ord'), 'format' => "#ord_status# '#ord_titlefield#' - !la_title_OrderShipping!"), - 'orders_edit_items' => Array ('prefixes' => Array ('ord', 'orditems_List'), 'format' => "#ord_status# '#ord_titlefield#' - !la_title_OrderItems!"), + 'orders_edit_items' => Array ('prefixes' => Array ('ord', 'orditems_List'), 'format' => "#ord_status# '#ord_titlefield#' - !la_title_OrderItems!"), - 'orders_edit_preview' => Array ('prefixes' => Array ('ord'), 'format' => "#ord_status# '#ord_titlefield#' - !la_title_OrderPreview!"), + 'orders_edit_preview' => Array ('prefixes' => Array ('ord'), 'format' => "#ord_status# '#ord_titlefield#' - !la_title_OrderPreview!"), - 'orders_gw_result' => Array ('prefixes' => Array ('ord'), 'format' => "!la_title_OrderGWResult!"), + 'orders_gw_result' => Array ('prefixes' => Array ('ord'), 'format' => "!la_title_OrderGWResult!"), - 'orders_export' => Array ('format' => '!la_title_OrdersExport!'), + 'orders_export' => Array ('format' => '!la_title_OrdersExport!'), - 'orders_product_edit' => Array ('format' => '!la_title_Editing_Order_Item!'), - ), + 'orders_product_edit' => Array ('format' => '!la_title_Editing_Order_Item!'), + ), - 'EditTabPresets' => Array ( - 'Default' => Array ( - 'general' => Array ('title' => 'la_tab_General', 't' => 'in-commerce/orders/orders_edit', 'priority' => 1), - 'items' => Array ('title' => 'la_tab_Items', 't' => 'in-commerce/orders/orders_edit_items', 'priority' => 2), - 'shipping' => Array ('title' => 'la_tab_Shipping', 't' => 'in-commerce/orders/orders_edit_shipping', 'priority' => 3), - 'billing' => Array ('title' => 'la_tab_Billing', 't' => 'in-commerce/orders/orders_edit_billing', 'priority' => 4), - 'preview' => Array ('title' => 'la_tab_Preview', 't' => 'in-commerce/orders/orders_edit_preview', 'priority' => 5), - ), - ), + 'EditTabPresets' => Array ( + 'Default' => Array ( + 'general' => Array ('title' => 'la_tab_General', 't' => 'in-commerce/orders/orders_edit', 'priority' => 1), + 'items' => Array ('title' => 'la_tab_Items', 't' => 'in-commerce/orders/orders_edit_items', 'priority' => 2), + 'shipping' => Array ('title' => 'la_tab_Shipping', 't' => 'in-commerce/orders/orders_edit_shipping', 'priority' => 3), + 'billing' => Array ('title' => 'la_tab_Billing', 't' => 'in-commerce/orders/orders_edit_billing', 'priority' => 4), + 'preview' => Array ('title' => 'la_tab_Preview', 't' => 'in-commerce/orders/orders_edit_preview', 'priority' => 5), + ), + ), - 'PermSection' => Array ('main' => 'in-commerce:orders'), + 'PermSection' => Array ('main' => 'in-commerce:orders'), - - 'Sections' => Array ( + 'Sections' => Array ( - 'in-commerce:orders' => Array ( + 'in-commerce:orders' => Array ( - 'parent' => 'in-commerce', + 'parent' => 'in-commerce', - 'icon' => 'in-commerce:orders', + 'icon' => 'in-commerce:orders', - 'label' => 'la_tab_Orders', + 'label' => 'la_tab_Orders', - 'url' => Array ('t' => 'in-commerce/orders/orders_pending_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-commerce/orders/orders_pending_list', 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit', 'delete', 'advanced:approve', 'advanced:deny', 'advanced:archive', 'advanced:place', 'advanced:process', 'advanced:ship', 'advanced:reset_to_pending'), + 'permissions' => Array ('view', 'add', 'edit', 'delete', 'advanced:approve', 'advanced:deny', 'advanced:archive', 'advanced:place', 'advanced:process', 'advanced:ship', 'advanced:reset_to_pending'), - 'priority' => 1, + 'priority' => 1, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - 'SectionAdjustments' => Array ( - 'in-portal:visits' => Array ( - 'url' => Array ('t' => 'in-commerce/visits/visits_list_incommerce', 'pass' => 'm'), - ), - ), + 'SectionAdjustments' => Array ( + 'in-portal:visits' => Array ( + 'url' => Array ('t' => 'in-commerce/visits/visits_list_incommerce', 'pass' => 'm'), + ), + ), - 'StatisticsInfo' => Array ( + 'StatisticsInfo' => Array ( - 'pending' => Array ( + 'pending' => Array ( - 'icon' => 'core:icon16_item.png', + 'icon' => 'core:icon16_item.png', - 'label' => 'la_title_Orders', + 'label' => 'la_title_Orders', - 'js_url' => "#url#", + 'js_url' => "#url#", - 'url' => Array ('t' => 'in-commerce/orders/orders_pending_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-commerce/orders/orders_pending_list', 'pass' => 'm'), - 'status' => ORDER_STATUS_PENDING, + 'status' => ORDER_STATUS_PENDING, - - ), - ), + ), + ), - 'TableName' => TABLE_PREFIX . 'Orders', + 'TableName' => TABLE_PREFIX . 'Orders', - 'CalculatedFields' => Array ( - '' => Array ( + 'CalculatedFields' => Array ( + '' => Array ( - 'CustomerName' => 'IF( ISNULL(u.Username), IF (%1$s.PortalUserId = ' . USER_ROOT . ', \'root\', IF (%1$s.PortalUserId = ' . USER_GUEST . ', \'Guest\', \'n/a\')), CONCAT(u.FirstName,\' \',u.LastName) )', + 'CustomerName' => 'IF( ISNULL(u.Username), IF (%1$s.PortalUserId = ' . USER_ROOT . ', \'root\', IF (%1$s.PortalUserId = ' . USER_GUEST . ', \'Guest\', \'n/a\')), CONCAT(u.FirstName,\' \',u.LastName) )', - 'Username' => 'IF( ISNULL(u.Username),\'root\',u.Username)', + 'Username' => 'IF( ISNULL(u.Username),\'root\',u.Username)', - 'OrderNumber' => 'CONCAT(LPAD(Number,6,"0"),\'-\',LPAD(SubNumber,3,"0") )', + 'OrderNumber' => 'CONCAT(LPAD(Number,6,"0"),\'-\',LPAD(SubNumber,3,"0") )', - 'SubtotalWithoutDiscount' => '(SubTotal + DiscountTotal)', + 'SubtotalWithoutDiscount' => '(SubTotal + DiscountTotal)', - 'SubtotalWithDiscount' => '(SubTotal)', + 'SubtotalWithDiscount' => '(SubTotal)', - 'AmountWithoutVAT' => '(SubTotal+IF(ShippingTaxable=1, ShippingCost, 0)+IF(ProcessingTaxable=1, ProcessingFee, 0)-IF(VATIncluded=1,VAT,0))', + 'AmountWithoutVAT' => '(SubTotal+IF(ShippingTaxable=1, ShippingCost, 0)+IF(ProcessingTaxable=1, ProcessingFee, 0)-IF(VATIncluded=1,VAT,0))', - 'TotalAmount' => 'SubTotal+ShippingCost+IF(VATIncluded=1,0,VAT)+ProcessingFee+InsuranceFee-GiftCertificateDiscount', + 'TotalAmount' => 'SubTotal+ShippingCost+IF(VATIncluded=1,0,VAT)+ProcessingFee+InsuranceFee-GiftCertificateDiscount', - 'CouponCode' => 'pc.Code', + 'CouponCode' => 'pc.Code', - 'CouponName' => 'pc.Name', + 'CouponName' => 'pc.Name', - 'AffiliateUser' => 'IF( LENGTH(au.Username),au.Username,\'!la_None!\')', + 'AffiliateUser' => 'IF( LENGTH(au.Username),au.Username,\'!la_None!\')', - 'AffiliatePortalUserId' => 'af.PortalUserId', + 'AffiliatePortalUserId' => 'af.PortalUserId', - 'GiftCertificateCode' => 'gc.Code', + 'GiftCertificateCode' => 'gc.Code', - 'GiftCertificateRecipient' => 'gc.Recipient', + 'GiftCertificateRecipient' => 'gc.Recipient', - 'ShippingSubTotal' => '%1$s.ShippingCost + %1$s.InsuranceFee', + 'ShippingSubTotal' => '%1$s.ShippingCost + %1$s.InsuranceFee', - ), + ), - 'myorders' => Array ( + 'myorders' => Array ( - 'OrderNumber' => 'CONCAT(LPAD(Number,6,"0"),\'-\',LPAD(SubNumber,3,"0") )', + 'OrderNumber' => 'CONCAT(LPAD(Number,6,"0"),\'-\',LPAD(SubNumber,3,"0") )', - 'SubtotalWithoutDiscount' => '(SubTotal + DiscountTotal)', + 'SubtotalWithoutDiscount' => '(SubTotal + DiscountTotal)', - 'SubtotalWithDiscount' => '(SubTotal)', + 'SubtotalWithDiscount' => '(SubTotal)', - 'AmountWithoutVAT' => '(SubTotal+IF(ShippingTaxable=1, ShippingCost, 0)+IF(ProcessingTaxable=1, ProcessingFee, 0)-IF(VATIncluded=1,VAT,0))', + 'AmountWithoutVAT' => '(SubTotal+IF(ShippingTaxable=1, ShippingCost, 0)+IF(ProcessingTaxable=1, ProcessingFee, 0)-IF(VATIncluded=1,VAT,0))', - 'TotalAmount' => 'SubTotal+ShippingCost+IF(VATIncluded=1,0,VAT)+ProcessingFee+InsuranceFee-GiftCertificateDiscount', + 'TotalAmount' => 'SubTotal+ShippingCost+IF(VATIncluded=1,0,VAT)+ProcessingFee+InsuranceFee-GiftCertificateDiscount', - /*'ItemsCount' => 'COUNT(%1$s.OrderId)',*/ + /*'ItemsCount' => 'COUNT(%1$s.OrderId)',*/ - 'ShippingSubTotal' => '%1$s.ShippingCost + %1$s.InsuranceFee', + 'ShippingSubTotal' => '%1$s.ShippingCost + %1$s.InsuranceFee', - ), - ), - // %1$s - table name of object - // %2$s - calculated fields - 'ListSQLs' => Array ( - '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.PortalUserId = u.PortalUserId - LEFT JOIN '.TABLE_PREFIX.'ProductsCoupons pc ON %1$s.CouponId = pc.CouponId - LEFT JOIN '.TABLE_PREFIX.'GiftCertificates gc ON %1$s.GiftCertificateId = gc.GiftCertificateId - LEFT JOIN '.TABLE_PREFIX.'Affiliates af ON %1$s.AffiliateId = af.AffiliateId - LEFT JOIN '.TABLE_PREFIX.'Users au ON af.PortalUserId = au.PortalUserId', + ), + ), + // %1$s - table name of object + // %2$s - calculated fields + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.PortalUserId = u.PortalUserId + LEFT JOIN '.TABLE_PREFIX.'ProductsCoupons pc ON %1$s.CouponId = pc.CouponId + LEFT JOIN '.TABLE_PREFIX.'GiftCertificates gc ON %1$s.GiftCertificateId = gc.GiftCertificateId + LEFT JOIN '.TABLE_PREFIX.'Affiliates af ON %1$s.AffiliateId = af.AffiliateId + LEFT JOIN '.TABLE_PREFIX.'Users au ON af.PortalUserId = au.PortalUserId', - 'myorders' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.PortalUserId = u.PortalUserId', + 'myorders' => ' SELECT %1$s.* %2$s + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.PortalUserId = u.PortalUserId', -// LEFT JOIN '.TABLE_PREFIX.'OrderItems ON %1$s.OrderId = '.TABLE_PREFIX.'OrderItems.OrderId', +// LEFT JOIN '.TABLE_PREFIX.'OrderItems ON %1$s.OrderId = '.TABLE_PREFIX.'OrderItems.OrderId', - ), + ), - 'ItemSQLs' => Array ( - '' => ' SELECT %1$s.* %2$s FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.PortalUserId = u.PortalUserId - LEFT JOIN '.TABLE_PREFIX.'ProductsCoupons pc ON %1$s.CouponId = pc.CouponId - LEFT JOIN '.TABLE_PREFIX.'GiftCertificates gc ON %1$s.GiftCertificateId = gc.GiftCertificateId - LEFT JOIN '.TABLE_PREFIX.'Affiliates af ON %1$s.AffiliateId = af.AffiliateId - LEFT JOIN '.TABLE_PREFIX.'Users au ON af.PortalUserId = au.PortalUserId', - ), - - 'SubItems' => Array ('orditems'), + 'SubItems' => Array ('orditems'), + - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( - 'Sorting' => Array ('OrderDate' => 'desc'), - ) - ), + '' => Array ( + 'Sorting' => Array ('OrderDate' => 'desc'), + ) + ), + - 'Fields' => Array ( - 'OrderId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, 'filter_type' => 'equals'), - 'Number' => Array ('type' => 'int', 'required' =>1, 'formatter' => 'kFormatter', 'unique' =>Array ('SubNumber'), 'format' => '%06d', 'max_value_inc'>999999, 'not_null' => 1, 'default' => 0), - 'SubNumber' => Array ('type' => 'int', 'required' =>1, 'formatter' => 'kFormatter', 'unique' =>Array ('Number'), 'format' => '%03d', 'max_value_inc'>999, 'not_null' => 1, 'default' => 0), - 'Status' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' =>Array (0=> 'la_Incomplete',1=> 'la_Pending',2=> 'la_BackOrders',3=> 'la_ToShip',4=> 'la_Processed',5=> 'la_Denied',6=> 'la_Archived'), 'use_phrases' =>1, 'not_null' => 1, 'default' => 0, 'filter_type' => 'equals'), - 'OnHold' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), - 'OrderDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'required' => 1, 'default' => '#NOW#'), - 'PortalUserId' =>Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' =>Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Username', 'required' =>1, 'not_null' =>1, 'default' =>-1), - 'OrderIP' => Array ('type' => 'string', 'not_null' => 1, 'default' => '', 'filter_type' => 'like'), - 'UserComment' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => NULL), - 'AdminComment' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => NULL), - 'BillingTo' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'BillingCompany' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'BillingPhone' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'BillingFax' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'BillingEmail' => Array ( - 'type' => 'string', - 'formatter' => 'kFormatter', - 'regexp' => '/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', - 'error_msgs' => Array ('invalid_format' => '!la_invalid_email!', 'unique' => '!lu_email_already_exist!'), - 'not_null' => 1, 'default' => '', - ), - 'BillingAddress1' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'BillingAddress2' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'BillingCity' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'BillingState' => Array ( - 'type' => 'string', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (), - 'option_key_field' => 'DestAbbr', - 'option_title_field' => 'Translation', - 'not_null' => 1, 'default' => '', - ), - 'BillingZip' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'Fields' => Array ( + 'OrderId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, 'filter_type' => 'equals'), + 'Number' => Array ('type' => 'int', 'required' =>1, 'formatter' => 'kFormatter', 'unique' =>Array ('SubNumber'), 'format' => '%06d', 'max_value_inc'>999999, 'not_null' => 1, 'default' => 0), + 'SubNumber' => Array ('type' => 'int', 'required' =>1, 'formatter' => 'kFormatter', 'unique' =>Array ('Number'), 'format' => '%03d', 'max_value_inc'>999, 'not_null' => 1, 'default' => 0), + 'Status' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' =>Array (0=> 'la_Incomplete',1=> 'la_Pending',2=> 'la_BackOrders',3=> 'la_ToShip',4=> 'la_Processed',5=> 'la_Denied',6=> 'la_Archived'), 'use_phrases' =>1, 'not_null' => 1, 'default' => 0, 'filter_type' => 'equals'), + 'OnHold' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), + 'OrderDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'required' => 1, 'default' => '#NOW#'), + 'PortalUserId' =>Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' =>Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Username', 'required' =>1, 'not_null' =>1, 'default' =>-1), + 'OrderIP' => Array ('type' => 'string', 'not_null' => 1, 'default' => '', 'filter_type' => 'like'), + 'UserComment' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => NULL), + 'AdminComment' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => NULL), + 'BillingTo' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'BillingCompany' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'BillingPhone' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'BillingFax' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'BillingEmail' => Array ( + 'type' => 'string', + 'formatter' => 'kFormatter', + 'regexp' => '/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', + 'error_msgs' => Array ('invalid_format' => '!la_invalid_email!', 'unique' => '!lu_email_already_exist!'), + 'not_null' => 1, 'default' => '', + ), + 'BillingAddress1' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'BillingAddress2' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'BillingCity' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'BillingState' => Array ( + 'type' => 'string', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (), + 'option_key_field' => 'DestAbbr', + 'option_title_field' => 'Translation', + 'not_null' => 1, 'default' => '', + ), + 'BillingZip' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'BillingCountry' => Array( + 'BillingCountry' => Array ( - 'type' => 'string', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => ' SELECT IF(l%2$s_Name = "", l%3$s_Name, l%2$s_Name) AS Name, IsoCode - FROM '.TABLE_PREFIX.'CountryStates - WHERE Type = ' . DESTINATION_TYPE_COUNTRY . ' - ORDER BY Name', - 'option_key_field' => 'IsoCode', 'option_title_field' => 'Name', - 'not_null' => 1, 'default' => 'USA' - ), - 'VAT' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'not_null' =>1, 'default' => '0', 'format' => '%01.2f'), - 'VATPercent' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'not_null' =>1, 'default' => '0', 'format' => '%01.3f'), - 'VATIncluded' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), - 'PaymentType' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT IF(l%2$s_Description <> "", l%2$s_Description, l%3$s_Description) AS Description, PaymentTypeId - FROM ' . TABLE_PREFIX . 'PaymentTypes - WHERE Status = 1 - ORDER BY Priority DESC, Name ASC', - 'option_key_field' => 'PaymentTypeId', 'option_title_field' => 'Description', - 'not_null' => 1, 'default' => 0 - ), + 'type' => 'string', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => ' SELECT IF(l%2$s_Name = "", l%3$s_Name, l%2$s_Name) AS Name, IsoCode + FROM '.TABLE_PREFIX.'CountryStates + WHERE Type = ' . DESTINATION_TYPE_COUNTRY . ' + ORDER BY Name', + 'option_key_field' => 'IsoCode', 'option_title_field' => 'Name', + 'not_null' => 1, 'default' => 'USA' + ), + 'VAT' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'not_null' =>1, 'default' => '0', 'format' => '%01.2f'), + 'VATPercent' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'not_null' =>1, 'default' => '0', 'format' => '%01.3f'), + 'VATIncluded' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), + 'PaymentType' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT IF(l%2$s_Description <> "", l%2$s_Description, l%3$s_Description) AS Description, PaymentTypeId + FROM ' . TABLE_PREFIX . 'PaymentTypes + WHERE Status = 1 + ORDER BY Priority DESC, Name ASC', + 'option_key_field' => 'PaymentTypeId', 'option_title_field' => 'Description', + 'not_null' => 1, 'default' => 0 + ), - 'PaymentAccount' => Array ('type' => 'string', 'not_null' => 1, 'cardtype_field' => 'PaymentCardType', 'default' => '', 'filter_type' => 'like'), - 'PaymentNameOnCard' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'PaymentCCExpDate' => Array ('type' => 'string', 'formatter' => 'kCCDateFormatter', 'month_field' => 'PaymentCCExpMonth', 'year_field' => 'PaymentCCExpYear', 'not_null' => 1, 'default' => ''), - 'PaymentCardType' => Array ('type' => 'string', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'options' => Array ('' => '', '1' => 'Visa', '2' => 'Mastercard', '3' => 'Amex', '4' => 'Discover', '5' => 'Diners Club', '6' => 'JBC'), 'default' => ''), - 'PaymentExpires' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'ShippingTo' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'ShippingCompany' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'ShippingPhone' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'ShippingFax' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'ShippingEmail' => Array ( - 'type' => 'string', - 'formatter' => 'kFormatter', - 'regexp' => '/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', - 'error_msgs' => Array ('invalid_format' => '!la_invalid_email!'), - 'not_null' => 1, 'default' => '', - ), - 'ShippingAddress1' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'ShippingAddress2' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'ShippingCity' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'ShippingState' => Array ( - 'type' => 'string', 'formatter' => 'kOptionsFormatter', - 'options' => Array (), - 'option_key_field' => 'DestAbbr', 'option_title_field' => 'Translation', - 'not_null' => 1, 'default' => ''), - 'ShippingZip' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'PaymentAccount' => Array ('type' => 'string', 'not_null' => 1, 'cardtype_field' => 'PaymentCardType', 'default' => '', 'filter_type' => 'like'), + 'PaymentNameOnCard' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'PaymentCCExpDate' => Array ('type' => 'string', 'formatter' => 'kCCDateFormatter', 'month_field' => 'PaymentCCExpMonth', 'year_field' => 'PaymentCCExpYear', 'not_null' => 1, 'default' => ''), + 'PaymentCardType' => Array ('type' => 'string', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'options' => Array ('' => '', '1' => 'Visa', '2' => 'Mastercard', '3' => 'Amex', '4' => 'Discover', '5' => 'Diners Club', '6' => 'JBC'), 'default' => ''), + 'PaymentExpires' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + 'ShippingTo' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'ShippingCompany' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'ShippingPhone' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'ShippingFax' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'ShippingEmail' => Array ( + 'type' => 'string', + 'formatter' => 'kFormatter', + 'regexp' => '/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', + 'error_msgs' => Array ('invalid_format' => '!la_invalid_email!'), + 'not_null' => 1, 'default' => '', + ), + 'ShippingAddress1' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'ShippingAddress2' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'ShippingCity' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'ShippingState' => Array ( + 'type' => 'string', 'formatter' => 'kOptionsFormatter', + 'options' => Array (), + 'option_key_field' => 'DestAbbr', 'option_title_field' => 'Translation', + 'not_null' => 1, 'default' => ''), + 'ShippingZip' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'ShippingCountry' => Array( + 'ShippingCountry' => Array ( - 'type' => 'string', 'formatter' => 'kOptionsFormatter', - 'options_sql' => ' SELECT IF(l%2$s_Name = "", l%3$s_Name, l%2$s_Name) AS Name, IsoCode - FROM '.TABLE_PREFIX.'CountryStates - WHERE Type = ' . DESTINATION_TYPE_COUNTRY . ' - ORDER BY Name', - 'option_key_field' => 'IsoCode', 'option_title_field' => 'Name', - 'not_null' => 1, 'default' => 'USA' - ), - 'ShippingType' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %s - FROM ' . TABLE_PREFIX . 'ShippingType - WHERE Status = 1', - 'option_key_field' => 'ShippingID', - 'option_title_field' => 'Name', - 'not_null' => 1, 'default' => 0, - ), - 'ShippingCost' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => '0.00'), - 'ShippingCustomerAccount' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'ShippingTracking' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'ShippingDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null), - 'SubTotal' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => '0.00'), - 'ReturnTotal' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => '0.00'), - 'CostTotal' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => '0.00'), + 'type' => 'string', 'formatter' => 'kOptionsFormatter', + 'options_sql' => ' SELECT IF(l%2$s_Name = "", l%3$s_Name, l%2$s_Name) AS Name, IsoCode + FROM '.TABLE_PREFIX.'CountryStates + WHERE Type = ' . DESTINATION_TYPE_COUNTRY . ' + ORDER BY Name', + 'option_key_field' => 'IsoCode', 'option_title_field' => 'Name', + 'not_null' => 1, 'default' => 'USA' + ), + 'ShippingType' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %s + FROM ' . TABLE_PREFIX . 'ShippingType + WHERE Status = 1', + 'option_key_field' => 'ShippingID', + 'option_title_field' => 'Name', + 'not_null' => 1, 'default' => 0, + ), + 'ShippingCost' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => '0.00'), + 'ShippingCustomerAccount' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'ShippingTracking' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'ShippingDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null), + 'SubTotal' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => '0.00'), + 'ReturnTotal' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => '0.00'), + 'CostTotal' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => '0.00'), - 'OriginalAmount' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => '0.00'), + 'OriginalAmount' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => '0.00'), - 'ShippingOption' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( - 0 => 'la_ship_all_together', 1 => 'la_ship_backorder_separately', 2 => 'la_ship_backorders_upon_avail', - ), - 'use_phrases' => 1, 'not_null' => 1, 'default' => 0, - ), - 'ShippingGroupOption' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, - 'options' => Array (0 => 'la_opt_AutoGroupShipments', 1 => 'la_opt_ManualGroupShipments'), - 'not_null' => 1, 'default' => 0, - ), - 'GiftCertificateId' => Array ('type' => 'int', 'default' => null), - 'GiftCertificateDiscount' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => '0.00',), - 'ShippingInfo' => Array ('type' => 'string', 'default' => NULL), - 'CouponId' => Array ('type' => 'int', 'default' => null), - 'CouponDiscount' => Array ('type' => 'float', 'not_null' => 1, 'default' => '0.00', 'formatter' => 'kFormatter', 'format' => '%01.2f'), - 'DiscountTotal' => Array ('type' => 'float', 'not_null' => 1, 'default' => '0.00', 'formatter' => 'kFormatter', 'format' => '%01.2f'), - 'TransactionStatus' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_opt_Invalid', 1 => 'la_opt_Verified', 2 => 'la_opt_Penging'), - 'use_phrases' =>1, 'not_null' => 1, 'default' => 2, - ), - 'GWResult1' => Array ('type' => 'string', 'formatter' => 'kSerializedFormatter', 'default' => NULL), - 'GWResult2' => Array ('type' => 'string', 'formatter' => 'kSerializedFormatter', 'default' => NULL), - 'AffiliateId' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' => Array (0 => 'lu_None'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Affiliates af LEFT JOIN '.TABLE_PREFIX.'Users pu ON pu.PortalUserId = af.PortalUserId WHERE `%s` = \'%s\'', 'left_key_field' => 'AffiliateId', 'left_title_field' => 'Username', 'not_null' =>1, 'default' =>0), - 'VisitId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'AffiliateCommission' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%.02f', 'not_null' => 1, 'default' => '0.0000'), - 'ProcessingFee' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%.02f', 'not_null' => '0', 'default' => '0.0000'), - 'InsuranceFee' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => '0.00'), + 'ShippingOption' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( + 0 => 'la_ship_all_together', 1 => 'la_ship_backorder_separately', 2 => 'la_ship_backorders_upon_avail', + ), + 'use_phrases' => 1, 'not_null' => 1, 'default' => 0, + ), + 'ShippingGroupOption' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, + 'options' => Array (0 => 'la_opt_AutoGroupShipments', 1 => 'la_opt_ManualGroupShipments'), + 'not_null' => 1, 'default' => 0, + ), + 'GiftCertificateId' => Array ('type' => 'int', 'default' => null), + 'GiftCertificateDiscount' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => '0.00',), + 'ShippingInfo' => Array ('type' => 'string', 'default' => NULL), + 'CouponId' => Array ('type' => 'int', 'default' => null), + 'CouponDiscount' => Array ('type' => 'float', 'not_null' => 1, 'default' => '0.00', 'formatter' => 'kFormatter', 'format' => '%01.2f'), + 'DiscountTotal' => Array ('type' => 'float', 'not_null' => 1, 'default' => '0.00', 'formatter' => 'kFormatter', 'format' => '%01.2f'), + 'TransactionStatus' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_opt_Invalid', 1 => 'la_opt_Verified', 2 => 'la_opt_Penging'), + 'use_phrases' =>1, 'not_null' => 1, 'default' => 2, + ), + 'GWResult1' => Array ('type' => 'string', 'formatter' => 'kSerializedFormatter', 'default' => NULL), + 'GWResult2' => Array ('type' => 'string', 'formatter' => 'kSerializedFormatter', 'default' => NULL), + 'AffiliateId' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' => Array (0 => 'lu_None'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Affiliates af LEFT JOIN '.TABLE_PREFIX.'Users pu ON pu.PortalUserId = af.PortalUserId WHERE `%s` = \'%s\'', 'left_key_field' => 'AffiliateId', 'left_title_field' => 'Username', 'not_null' =>1, 'default' =>0), + 'VisitId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'AffiliateCommission' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%.02f', 'not_null' => 1, 'default' => '0.0000'), + 'ProcessingFee' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%.02f', 'not_null' => '0', 'default' => '0.0000'), + 'InsuranceFee' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => '0.00'), - 'ShippingTaxable' => Array ('type' => 'int', 'not_null' => 0, 'default' => 0), + 'ShippingTaxable' => Array ('type' => 'int', 'not_null' => 0, 'default' => 0), - 'ProcessingTaxable' => Array ('type' => 'int', 'not_null' => 0, 'default' => 0), + 'ProcessingTaxable' => Array ('type' => 'int', 'not_null' => 0, 'default' => 0), - 'IsRecurringBilling' => Array ( + 'IsRecurringBilling' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, - 'default' => 0, 'not_null' => 1, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, + 'default' => 0, 'not_null' => 1, + ), - 'ChargeOnNextApprove' => Array ( + 'ChargeOnNextApprove' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, - 'default' => 0, 'not_null' => 1, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, + 'default' => 0, 'not_null' => 1, + ), - 'NextCharge' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null), + 'NextCharge' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null), - 'GroupId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'GroupId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'GoogleOrderNumber' => Array ('type' => 'string', 'default' => NULL), // MySQL BIGINT UNSIGNED = 8 Bytes, PHP int = 4 Bytes -> threat as string - ), + 'GoogleOrderNumber' => Array ('type' => 'string', 'default' => NULL), // MySQL BIGINT UNSIGNED = 8 Bytes, PHP int = 4 Bytes -> threat as string + ), - 'VirtualFields' => Array ( + 'VirtualFields' => Array ( - 'CustomerName' => Array ('type' => 'string', 'default' => '', 'filter_type' => 'like'), + 'CustomerName' => Array ('type' => 'string', 'default' => '', 'filter_type' => 'like'), - 'TotalAmount' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'default' => '0.00'), + 'TotalAmount' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'default' => '0.00'), - 'AmountWithoutVAT' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'default' => '0.00'), + 'AmountWithoutVAT' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'default' => '0.00'), - 'SubtotalWithDiscount' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'default' => '0.00'), + 'SubtotalWithDiscount' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'default' => '0.00'), - 'SubtotalWithoutDiscount' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'default' => '0.00'), + 'SubtotalWithoutDiscount' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'default' => '0.00'), - 'ShippingSubTotal' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'default' => '0.00'), + 'ShippingSubTotal' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'default' => '0.00'), - 'OrderNumber' => Array ('type' => 'string', 'default' => '', 'filter_type' => 'like'), + 'OrderNumber' => Array ('type' => 'string', 'default' => '', 'filter_type' => 'like'), - 'CouponCode' => Array ('type' => 'string', 'default' => ''), + 'CouponCode' => Array ('type' => 'string', 'default' => ''), - 'CouponName' => Array ('type' => 'string', 'default' => ''), + 'CouponName' => Array ('type' => 'string', 'default' => ''), - 'GiftCertificateCode' => Array ('type' => 'string', 'default' => ''), + 'GiftCertificateCode' => Array ('type' => 'string', 'default' => ''), - 'GiftCertificateRecipient' => Array ('type' => 'string', 'default' => ''), + 'GiftCertificateRecipient' => Array ('type' => 'string', 'default' => ''), - // for ResetToUser + // for ResetToUser - 'UserTo' => Array ('type' => 'string', 'default' => ''), + 'UserTo' => Array ('type' => 'string', 'default' => ''), - 'UserCompany' => Array ('type' => 'string', 'default' => ''), + 'UserCompany' => Array ('type' => 'string', 'default' => ''), - 'UserPhone' => Array ('type' => 'string', 'default' => ''), + 'UserPhone' => Array ('type' => 'string', 'default' => ''), - 'UserFax' => Array ('type' => 'string', 'default' => ''), + 'UserFax' => Array ('type' => 'string', 'default' => ''), - 'UserEmail' => Array ('type' => 'string', 'default' => ''), + 'UserEmail' => Array ('type' => 'string', 'default' => ''), - 'UserAddress1' => Array ('type' => 'string', 'default' => ''), + 'UserAddress1' => Array ('type' => 'string', 'default' => ''), - 'UserAddress2' => Array ('type' => 'string', 'default' => ''), + 'UserAddress2' => Array ('type' => 'string', 'default' => ''), - 'UserCity' => Array ('type' => 'string', 'default' => ''), + 'UserCity' => Array ('type' => 'string', 'default' => ''), - 'UserState' => Array ('type' => 'string', 'default' => ''), + 'UserState' => Array ('type' => 'string', 'default' => ''), - 'UserZip' => Array ('type' => 'string', 'default' => ''), + 'UserZip' => Array ('type' => 'string', 'default' => ''), - 'UserCountry' => Array ('type' => 'string', 'default' => ''), + 'UserCountry' => Array ('type' => 'string', 'default' => ''), - // for Search + // for Search - 'Username' => Array ('type' => 'string', 'filter_type' => 'like', 'default' => ''), + 'Username' => Array ('type' => 'string', 'filter_type' => 'like', 'default' => ''), - 'HasBackOrders' => Array ('type' => 'int', 'default' => 0), + 'HasBackOrders' => Array ('type' => 'int', 'default' => 0), - 'PaymentCVV2' => Array ('type' => 'string', 'default' => ''), + 'PaymentCVV2' => Array ('type' => 'string', 'default' => ''), - 'AffiliateUser' => Array ('type' => 'string', 'filter_type' => 'like', 'default' => ''), + 'AffiliateUser' => Array ('type' => 'string', 'filter_type' => 'like', 'default' => ''), - 'AffiliatePortalUserId' => Array ('type' => 'int', 'default' => 0), + 'AffiliatePortalUserId' => Array ('type' => 'int', 'default' => 0), - // export related fields: begin + // export related fields: begin - 'ExportFormat' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'CSV', /*2 => 'XML'*/), 'default' => 1), + 'ExportFormat' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'CSV', /*2 => 'XML'*/), 'default' => 1), - 'ExportFilename' => Array ('type' => 'string', 'default' => ''), + 'ExportFilename' => Array ('type' => 'string', 'default' => ''), - 'FieldsSeparatedBy' => Array ('type' => 'string', 'default' => ','), + 'FieldsSeparatedBy' => Array ('type' => 'string', 'default' => ', '), - 'FieldsEnclosedBy' => Array ('type' => 'string', 'default' => '"'), + 'FieldsEnclosedBy' => Array ('type' => 'string', 'default' => '"'), - 'LineEndings' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'Windows', 2 => 'UNIX'), 'default' => 1), + 'LineEndings' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'Windows', 2 => 'UNIX'), 'default' => 1), - 'LineEndingsInside' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'CRLF', 2 => 'LF'), 'default' => 2), + 'LineEndingsInside' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'CRLF', 2 => 'LF'), 'default' => 2), - 'IncludeFieldTitles' => Array ( + 'IncludeFieldTitles' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), - 'use_phrases' => 1, 'default' => 1, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), + 'use_phrases' => 1, 'default' => 1, + ), - 'ExportColumns' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => ''), + 'ExportColumns' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => ''), - 'AvailableColumns' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => ''), + 'AvailableColumns' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => ''), - 'ExportPresets' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => ''), - 'ExportSavePreset' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), - 'use_phrases' => 1, 'default' => 0, - ), + 'ExportPresets' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => ''), + 'ExportSavePreset' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), + 'use_phrases' => 1, 'default' => 0, + ), - 'ExportPresetName' => Array ('type' => 'string', 'default' => ''), + 'ExportPresetName' => Array ('type' => 'string', 'default' => ''), - // export related fields: end + // export related fields: end - // for "one step checkout" - 'UserPassword' => Array ( - 'type' => 'string', - 'formatter' => 'kPasswordFormatter', 'encryption_method' => 'md5', 'verify_field' => 'VerifyUserPassword', - 'skip_empty' => 1, 'default' => 'd41d8cd98f00b204e9800998ecf8427e' - ), + // for "one step checkout" + 'UserPassword' => Array ( + 'type' => 'string', + 'formatter' => 'kPasswordFormatter', 'encryption_method' => 'md5', 'verify_field' => 'VerifyUserPassword', + 'skip_empty' => 1, 'default' => 'd41d8cd98f00b204e9800998ecf8427e' + ), - // for "Shipping Info" step during Checkout - 'ShippingTypeId' => Array ('type' => 'array', 'default' => ''), - ), + // for "Shipping Info" step during Checkout + 'ShippingTypeId' => Array ('type' => 'array', 'default' => ''), + ), - 'Grids' => Array ( + 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 1 => 'icon16_pending.png', - 5 => 'icon16_disabled.png', - 'module' => 'core', - ), + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 1 => 'icon16_pending.png', + 5 => 'icon16_disabled.png', + 'module' => 'core', + ), - 'Fields' => Array ( + 'Fields' => Array ( - 'OrderId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 70, ), + 'OrderId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 70, ), - 'OrderNumber' => Array ( 'data_block' => 'grid_ordernumber_td', 'filter_block' => 'grid_like_filter', 'width' => 100, ), + 'OrderNumber' => Array ( 'data_block' => 'grid_ordernumber_td', 'filter_block' => 'grid_like_filter', 'width' => 100, ), - 'OrderDate' => Array ( 'title' => 'la_col_OrderDate', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), + 'OrderDate' => Array ( 'title' => 'la_col_OrderDate', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), - 'CustomerName' => Array ( 'title' => 'la_col_CustomerName', 'data_block' => 'grid_userlink_td', 'user_field' => 'PortalUserId', 'filter_block' => 'grid_like_filter', 'width' => 140, ), + 'CustomerName' => Array ( 'title' => 'la_col_CustomerName', 'data_block' => 'grid_userlink_td', 'user_field' => 'PortalUserId', 'filter_block' => 'grid_like_filter', 'width' => 140, ), - 'PaymentType' => Array ( 'data_block' => 'grid_billinglink_td', 'filter_block' => 'grid_options_filter', 'width' => 140, ), + 'PaymentType' => Array ( 'data_block' => 'grid_billinglink_td', 'filter_block' => 'grid_options_filter', 'width' => 140, ), - 'TotalAmount' => Array ( 'data_block' => 'grid_previewlink_td', 'filter_block' => 'grid_range_filter', 'width' => 140, ), + 'TotalAmount' => Array ( 'data_block' => 'grid_previewlink_td', 'filter_block' => 'grid_range_filter', 'width' => 140, ), - 'AffiliateUser' => Array ( 'data_block' => 'grid_userlink_td', 'user_field' => 'AffiliatePortalUserId', 'filter_block' => 'grid_like_filter', 'width' => 140, ), + 'AffiliateUser' => Array ( 'data_block' => 'grid_userlink_td', 'user_field' => 'AffiliatePortalUserId', 'filter_block' => 'grid_like_filter', 'width' => 140, ), - 'OnHold' => Array ('filter_block' => 'grid_options_filter', 'width' => 100, ), - ), - ), + 'OnHold' => Array ('filter_block' => 'grid_options_filter', 'width' => 100, ), + ), + ), - 'Search' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 1 => 'icon16_pending.png', - 5 => 'icon16_disabled.png', - 'module' => 'core', - ), - 'Fields' => Array ( + 'Search' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 1 => 'icon16_pending.png', + 5 => 'icon16_disabled.png', + 'module' => 'core', + ), + 'Fields' => Array ( - 'OrderId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 70, ), + 'OrderId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 70, ), - 'OrderNumber' => Array ('data_block' => 'grid_ordernumber_td', 'filter_block' => 'grid_like_filter', 'width' => 100, ), + 'OrderNumber' => Array ('data_block' => 'grid_ordernumber_td', 'filter_block' => 'grid_like_filter', 'width' => 100, ), - 'Status' => Array ('filter_block' => 'grid_options_filter', 'filter_block' => 'grid_options_filter', 'width' => 100, ), + 'Status' => Array ('filter_block' => 'grid_options_filter', 'filter_block' => 'grid_options_filter', 'width' => 100, ), - 'OrderDate' => Array ('title' => 'la_col_OrderDate', 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), + 'OrderDate' => Array ('title' => 'la_col_OrderDate', 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), - 'CustomerName' => Array ('title' => 'la_col_CustomerName', 'data_block' => 'grid_userlink_td', 'user_field' => 'PortalUserId', 'filter_block' => 'grid_like_filter'), + 'CustomerName' => Array ('title' => 'la_col_CustomerName', 'data_block' => 'grid_userlink_td', 'user_field' => 'PortalUserId', 'filter_block' => 'grid_like_filter'), - 'PaymentType' => Array ('data_block' => 'grid_billinglink_td', 'filter_block' => 'grid_options_filter'), + 'PaymentType' => Array ('data_block' => 'grid_billinglink_td', 'filter_block' => 'grid_options_filter'), - 'TotalAmount' => Array ('data_block' => 'grid_previewlink_td', 'filter_block' => 'grid_range_filter'), + 'TotalAmount' => Array ('data_block' => 'grid_previewlink_td', 'filter_block' => 'grid_range_filter'), - 'AffiliateUser' => Array ('data_block' => 'grid_userlink_td', 'user_field' => 'AffiliatePortalUserId', 'filter_block' => 'grid_user_like_filter'), + 'AffiliateUser' => Array ('data_block' => 'grid_userlink_td', 'user_field' => 'AffiliatePortalUserId', 'filter_block' => 'grid_user_like_filter'), - 'OrderIP' => Array ('filter_block' => 'grid_like_filter'), + 'OrderIP' => Array ('filter_block' => 'grid_like_filter'), - 'Username' => Array ('filter_block' => 'grid_user_like_filter'), + 'Username' => Array ('filter_block' => 'grid_user_like_filter'), - 'PaymentAccount' => Array ('title' => 'column:la_fld_CreditCardNumber', 'filter_block' => 'grid_like_filter'), + 'PaymentAccount' => Array ('title' => 'column:la_fld_CreditCardNumber', 'filter_block' => 'grid_like_filter'), - ), - ), - ), - ); \ No newline at end of file + ), + ), + ), +); \ No newline at end of file Index: modules/in-auction/units/shipping/shipping_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-auction/units/shipping/shipping_config.php (revision 15601) +++ modules/in-auction/units/shipping/shipping_config.php (revision ) @@ -13,194 +13,171 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => '#s-ebay', + 'Prefix' => '#s-ebay', + - 'Clones' => Array( + 'Clones' => Array ( - 's-ebay' => Array('ParentPrefix' => 'p'), + 's-ebay' => Array ('ParentPrefix' => 'p'), - 'c-s-ebay' => Array('ParentPrefix' => 'c'), + 'c-s-ebay' => Array ('ParentPrefix' => 'c'), - 'shipping-ebay' => Array(), + 'shipping-ebay' => Array (), - ), + ), - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'EbayShippingEventHandler','file'=>'shipping_eh.php','build_event'=>'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'EbayShippingEventHandler', 'file' => 'shipping_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class'=>'EbayShippingTagProcessor','file'=>'shipping_tp.php','build_event'=>'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'EbayShippingTagProcessor', 'file' => 'shipping_tp.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'Hooks' => Array( + 'Hooks' => Array ( - Array( + Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '*', + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnAfterItemLoad'), + 'HookToEvent' => Array ('OnAfterItemLoad'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnAfterParentLoad', - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnAfterParentLoad', + ), - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => true, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '*', + 'Mode' => hAFTER, + 'Conditional' => true, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnPreSave'), + 'HookToEvent' => Array ('OnPreSave'), - 'DoPrefix' => 'c-s-ebay', - 'DoSpecial' => 'domestic', - 'DoEvent' => 'OnParentPreSave', - ), + 'DoPrefix' => 'c-s-ebay', + 'DoSpecial' => 'domestic', + 'DoEvent' => 'OnParentPreSave', + ), - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => true, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '*', + 'Mode' => hAFTER, + 'Conditional' => true, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnPreSave'), + 'HookToEvent' => Array ('OnPreSave'), - 'DoPrefix' => '', - 'DoSpecial' => 'domestic', - 'DoEvent' => 'OnParentPreSave', - ), + 'DoPrefix' => '', + 'DoSpecial' => 'domestic', + 'DoEvent' => 'OnParentPreSave', + ), - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => true, - 'HookToPrefix' => 'conf', - 'HookToSpecial' => '*', + 'Mode' => hAFTER, + 'Conditional' => true, + 'HookToPrefix' => 'conf', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnUpdate'), + 'HookToEvent' => Array ('OnUpdate'), - 'DoPrefix' => '', - 'DoSpecial' => 'domestic', - 'DoEvent' => 'OnConfigUpdate', - ), - ), + 'DoPrefix' => '', + 'DoSpecial' => 'domestic', + 'DoEvent' => 'OnConfigUpdate', + ), + ), + - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', + 1 => 'id', - 2 => 'Page', + 2 => 'Page', - 3 => 'PerPage', + 3 => 'PerPage', - 4 => 'event', + 4 => 'event', - 5 => 'type', + 5 => 'type', - 6 => 'mode', + 6 => 'mode', - ), + ), - - 'IDField' => 'ShippingId', + 'IDField' => 'ShippingId', -// 'TitleField' => 'ProductId', // field, used in bluebar when editing existing item - -// 'TitlePhrase' => 'la_title_eBay', - -// 'TitlePresets' => Array( -// 'default' => Array( 'new_status_labels' => Array('c-ebay'=>'!la_title_adding_eBay!'), -// 'edit_status_labels' => Array('c-ebay'=>'!la_title_Editing_eBay!'), -// 'new_titlefield' => Array('c-ebay'=>''), -// 'categories_ebay' => Array('c-ebay'=>'!la_eBay!'), -// ), -//// 'custom_fields_list'=>Array( 'prefixes' => Array('cebay_List'), -//// 'format' => "!la_tab_ConfigCustom!", -//// ), -//// -// 'categories_ebay'=>Array( 'prefixes' => Array('c-ebay'), -// 'new_titlefield' => Array('c-ebay'=>'!la_eBay!'), -// 'format' => "#cf_status# '#cf_titlefield#'"//, -// ), -// ), - - 'TableName' => TABLE_PREFIX.'eBayShipping', + 'TableName' => TABLE_PREFIX.'eBayShipping', - 'ForeignKey' => 'ResourceId', + 'ForeignKey' => 'ResourceId', - 'ParentTableKey' => 'ResourceId', + 'ParentTableKey' => 'ResourceId', -// 'ParentPrefix' => 'p', +// 'ParentPrefix' => 'p', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - 'ListSQLs' => Array( + 'ListSQLs' => Array ( - ''=>'SELECT * FROM %s', - ), // key - special, value - list select sql + '' => ' SELECT * + FROM %s', + ), - 'ListSortings' => Array( + 'ListSortings' => Array ( - '' => Array( + '' => Array ( - 'Sorting' => Array('ShippingId' => 'asc'), + 'Sorting' => Array ('ShippingId' => 'asc'), - ), - ), + ), + ), - - - - - 'ItemSQLs' => Array( ''=>'SELECT * FROM %s', - ), - 'Fields' => Array( + 'Fields' => Array ( - 'ShippingId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ShippingId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ItemType' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), 'ResourceId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ItemType' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ResourceId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Service' => Array( + 'Service' => Array ( - 'type' => 'string', + 'type' => 'string', - 'formatter'=>'kOptionsFormatter', + 'formatter' => 'kOptionsFormatter', - 'options' => Array( + 'options' => Array ( - '' => '-', - ), + '' => '-', + ), - 'options_sql'=>'SELECT %1$s + 'options_sql' => 'SELECT %1$s - FROM '.TABLE_PREFIX.'eBayFieldOptions - WHERE FieldName = "ShippingService" - ', + FROM '.TABLE_PREFIX.'eBayFieldOptions + WHERE FieldName = "ShippingService" + ', - 'option_key_field'=>'FieldOptionKey', + 'option_key_field' => 'FieldOptionKey', - 'option_title_field'=>'FieldOptionTitle', + 'option_title_field' => 'FieldOptionTitle', - 'not_null' => 1, - 'default' => '' - ), + 'not_null' => 1, + 'default' => '' + ), - 'ServiceInternational' => Array( + 'ServiceInternational' => Array ( - 'type' => 'string', + 'type' => 'string', - 'formatter'=>'kOptionsFormatter', + 'formatter' => 'kOptionsFormatter', - 'options' => Array( + 'options' => Array ( - '' => '-', - ), + '' => '-', + ), - 'options_sql'=>'SELECT %1$s + 'options_sql' => 'SELECT %1$s - FROM '.TABLE_PREFIX.'eBayFieldOptions - WHERE FieldName = "ShippingServiceInternational" - ', + FROM '.TABLE_PREFIX.'eBayFieldOptions + WHERE FieldName = "ShippingServiceInternational" + ', - 'option_key_field'=>'FieldOptionKey', + 'option_key_field' => 'FieldOptionKey', - 'option_title_field'=>'FieldOptionTitle', + 'option_title_field' => 'FieldOptionTitle', - 'not_null' => 1, - 'default' => '' - ), + 'not_null' => 1, + 'default' => '' + ), - 'ServiceType' => Array( + 'ServiceType' => Array ( - 'type' => 'int', + 'type' => 'int', - 'formatter'=>'kOptionsFormatter', + 'formatter' => 'kOptionsFormatter', - 'options' => Array( + 'options' => Array ( - EBAY_SHIPPING_DOMESTIC => 'Domestic', - EBAY_SHIPPING_INTERNATIONAL => 'International', - ), - 'not_null' => 1, - 'default' => 0 - ), + EBAY_SHIPPING_DOMESTIC => 'Domestic', + EBAY_SHIPPING_INTERNATIONAL => 'International', + ), + 'not_null' => 1, + 'default' => 0 + ), - 'Location' => Array( + 'Location' => Array ( - 'type' => 'string', + 'type' => 'string', - 'formatter'=>'kOptionsFormatter', + 'formatter' => 'kOptionsFormatter', - 'options' => Array( + 'options' => Array ( - '' => '-', - ), + '' => '-', + ), - 'options_sql'=>'SELECT %1$s + 'options_sql' => 'SELECT %1$s - FROM '.TABLE_PREFIX.'eBayFieldOptions - WHERE FieldName = "ShippingLocation" - ', + FROM '.TABLE_PREFIX.'eBayFieldOptions + WHERE FieldName = "ShippingLocation" + ', - 'option_key_field'=>'FieldOptionKey', + 'option_key_field' => 'FieldOptionKey', - 'option_title_field'=>'FieldOptionTitle', + 'option_title_field' => 'FieldOptionTitle', - 'not_null' => 1, - 'default' => '' - ), + 'not_null' => 1, + 'default' => '' + ), - 'LocationCustom' => Array( + 'LocationCustom' => Array ( - 'type' => 'string', + 'type' => 'string', - 'formatter'=>'kOptionsFormatter', + 'formatter' => 'kOptionsFormatter', - 'options_sql'=>'SELECT %1$s + 'options_sql' => 'SELECT %1$s - FROM '.TABLE_PREFIX.'eBayFieldOptions - WHERE FieldName = "ShippingLocationCustom" - ', + FROM '.TABLE_PREFIX.'eBayFieldOptions + WHERE FieldName = "ShippingLocationCustom" + ', - 'option_key_field'=>'FieldOptionKey', + 'option_key_field' => 'FieldOptionKey', - 'option_title_field'=>'FieldOptionTitle', + 'option_title_field' => 'FieldOptionTitle', - 'not_null' => 1, - 'default' => '' - ), + 'not_null' => 1, + 'default' => '' + ), - 'Cost' => Array('type'=>'float', 'min_value_inc'=>0, 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => null), + 'Cost' => Array ('type' => 'float', 'min_value_inc'=>0, 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => null), - 'AddCost' => Array('type'=>'float', 'min_value_inc'=>0, 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => null), + 'AddCost' => Array ('type' => 'float', 'min_value_inc'=>0, 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => null), - - ), - ); \ No newline at end of file + ), +); \ No newline at end of file Index: modules/in-auction/units/category_listing/category_listing_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-auction/units/category_listing/category_listing_config.php (revision 15601) +++ modules/in-auction/units/category_listing/category_listing_config.php (revision ) @@ -13,321 +13,290 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'c-ebay', + 'Prefix' => 'c-ebay', - 'ItemClass' => Array('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class' => 'CategoryListingEventHandler', 'file' => 'category_listing_eh.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'CategoryListingEventHandler', 'file' => 'category_listing_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class' => 'CategoryListingTagProcessor', 'file' => 'category_listing_tp.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'CategoryListingTagProcessor', 'file' => 'category_listing_tp.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'Hooks' => Array( + 'Hooks' => Array ( - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '*', + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnAfterConfigRead'), + 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnModifyCategoriesConfig', - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnModifyCategoriesConfig', + ), - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => true, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '*', + 'Mode' => hAFTER, + 'Conditional' => true, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnPreSave'), + 'HookToEvent' => Array ('OnPreSave'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCategoriesPreSave', - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCategoriesPreSave', + ), - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => true, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '*', + 'Mode' => hAFTER, + 'Conditional' => true, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnSave'), + 'HookToEvent' => Array ('OnSave'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnAfterCategorySave', - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnAfterCategorySave', + ), - Array( + Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'p', - 'HookToSpecial' => '*', + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'p', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnAfterItemValidate'), + 'HookToEvent' => Array ('OnAfterItemValidate'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnAfterProductValidate', - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnAfterProductValidate', + ), - - ), + ), + - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', + 1 => 'id', - 2 => 'Page', + 2 => 'Page', - 3 => 'PerPage', + 3 => 'PerPage', - 4 => 'event', + 4 => 'event', - 5 => 'type', + 5 => 'type', - 6 => 'mode', + 6 => 'mode', - ), + ), - - 'IDField' => 'CategoryListingId', + 'IDField' => 'CategoryListingId', - 'TitleField' => 'CategoryId', // field, used in bluebar when editing existing item + 'TitleField' => 'CategoryId', // field, used in bluebar when editing existing item - 'TitlePhrase' => 'la_title_eBay', + 'TitlePhrase' => 'la_title_eBay', -/* - 'TitlePresets' => Array( - 'default' => Array( 'new_status_labels' => Array('c-ebay' => '!la_title_adding_eBay!'), - 'edit_status_labels' => Array('c-ebay' => '!la_title_Editing_eBay!'), - 'new_titlefield' => Array('c-ebay' => ''), - 'categories_ebay' => Array('c-ebay' => '!la_eBay!'), - ), - 'custom_fields_list' =>Array( 'prefixes' => Array('cebay_List'), - 'format' => "!la_tab_ConfigCustom!", - ), - 'categories_ebay' =>Array( 'prefixes' => Array('c-ebay'), - 'new_titlefield' => Array('c-ebay' => '!la_eBay!'), - 'format' => "#cf_status# '#cf_titlefield#'"//, - ), - ), -*/ - 'TableName' => TABLE_PREFIX.'eBayCategoryListings', + 'TableName' => TABLE_PREFIX.'eBayCategoryListings', - 'ForeignKey' => 'CategoryId', + 'ForeignKey' => 'CategoryId', - 'ParentTableKey' => 'CategoryId', - 'ParentPrefix' => 'c', + 'ParentTableKey' => 'CategoryId', + 'ParentPrefix' => 'c', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - -// 'ListSQLs' => Array( '' => 'SELECT * FROM %s', -// ), // key - special, value - list select sql -// -// 'ListSortings' => Array( -// '' => Array( -// 'Sorting' => Array('FieldName' => 'asc'), -// ), -// -// 'general' => Array( -// 'Sorting' => Array('DisplayOrder' => 'asc') -// ), -// -// ), - - 'ItemSQLs' => Array( '' => 'SELECT * FROM %s', + 'ItemSQLs' => Array ( + '' => ' SELECT * + FROM %s', - ), + ), -// 'SubItems' => Array('confs-cf'), - 'Fields' => Array ( + 'Fields' => Array ( - 'CategoryListingId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'CategoryListingId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'CategoryId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'CategoryId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'SubTitle' => Array('type' => 'string', 'default' => null), + 'SubTitle' => Array ('type' => 'string', 'default' => null), - 'DetailTemplateId' => Array( + 'DetailTemplateId' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayListingDetailTemplates - ORDER BY TemplateName', - 'option_key_field' => 'DetailTemplateId', - 'option_title_field' => 'TemplateName', - 'default' => null, - ), - 'UseGallery' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'default' => null - ), - 'UseGalleryPlus' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => null), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayListingDetailTemplates + ORDER BY TemplateName', + 'option_key_field' => 'DetailTemplateId', + 'option_title_field' => 'TemplateName', + 'default' => null, + ), + 'UseGallery' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'default' => null + ), + 'UseGalleryPlus' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => null), - 'HitCounter' => Array( + 'HitCounter' => Array ( - 'type' => 'string', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayFieldOptions - WHERE FieldName = "HitCounter" - ORDER BY FieldOptionTitle', - 'option_key_field' => 'FieldOptionKey', - 'option_title_field' => 'FieldOptionTitle', - 'default' => null - ), + 'type' => 'string', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayFieldOptions + WHERE FieldName = "HitCounter" + ORDER BY FieldOptionTitle', + 'option_key_field' => 'FieldOptionKey', + 'option_title_field' => 'FieldOptionTitle', + 'default' => null + ), - 'AuctionPrimaryCategoryId' => Array('type' => 'int', 'default' => null), + 'AuctionPrimaryCategoryId' => Array ('type' => 'int', 'default' => null), - 'AuctionSecondaryCategoryId' => Array('type' => 'int', 'default' => null), + 'AuctionSecondaryCategoryId' => Array ('type' => 'int', 'default' => null), - 'AuctionListingDuration' => Array( + 'AuctionListingDuration' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayFieldOptions - WHERE FieldName = "AuctionListingDuration" - ORDER BY ROUND(FieldOptionKey)', - 'option_key_field' => 'FieldOptionKey', - 'option_title_field' => 'FieldOptionTitle', - 'default' => null, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayFieldOptions + WHERE FieldName = "AuctionListingDuration" + ORDER BY ROUND(FieldOptionKey)', + 'option_key_field' => 'FieldOptionKey', + 'option_title_field' => 'FieldOptionTitle', + 'default' => null, + ), - 'StorePrimaryCategoryId' => Array( + 'StorePrimaryCategoryId' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayStoreCategories sc - WHERE - NOT EXISTS ( - SELECT * - FROM ' . TABLE_PREFIX . 'eBayStoreCategories sc2 - WHERE sc2.ParentId = sc.CategoryId - ) - ORDER BY CategoryName', - 'option_key_field' => 'CategoryId', - 'option_title_field' => 'CategoryName', - 'default' => null, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayStoreCategories sc + WHERE + NOT EXISTS ( + SELECT * + FROM ' . TABLE_PREFIX . 'eBayStoreCategories sc2 + WHERE sc2.ParentId = sc.CategoryId + ) + ORDER BY CategoryName', + 'option_key_field' => 'CategoryId', + 'option_title_field' => 'CategoryName', + 'default' => null, + ), - 'StoreSecondaryCategoryId' => Array( + 'StoreSecondaryCategoryId' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayStoreCategories sc - WHERE - NOT EXISTS ( - SELECT * - FROM ' . TABLE_PREFIX . 'eBayStoreCategories sc2 - WHERE sc2.ParentId = sc.CategoryId - ) - ORDER BY CategoryName', - 'option_key_field' => 'CategoryId', - 'option_title_field' => 'CategoryName', - 'default' => null, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayStoreCategories sc + WHERE + NOT EXISTS ( + SELECT * + FROM ' . TABLE_PREFIX . 'eBayStoreCategories sc2 + WHERE sc2.ParentId = sc.CategoryId + ) + ORDER BY CategoryName', + 'option_key_field' => 'CategoryId', + 'option_title_field' => 'CategoryName', + 'default' => null, + ), - 'StoreListingDuration' => Array( + 'StoreListingDuration' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayFieldOptions - WHERE FieldName = "StoreListingDuration" - ORDER BY ROUND(FieldOptionKey)', - 'option_key_field' => 'FieldOptionKey', - 'option_title_field' => 'FieldOptionTitle', - 'default' => null, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayFieldOptions + WHERE FieldName = "StoreListingDuration" + ORDER BY ROUND(FieldOptionKey)', + 'option_key_field' => 'FieldOptionKey', + 'option_title_field' => 'FieldOptionTitle', + 'default' => null, + ), - 'PaymentMethod' => Array( + 'PaymentMethod' => Array ( - 'type' => 'string', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayFieldOptions - WHERE FieldName = "PaymentMethod" - ORDER BY FieldOptionTitle', - 'option_key_field' => 'FieldOptionKey', - 'option_title_field' => 'FieldOptionTitle', - 'default' => null, - ), + 'type' => 'string', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayFieldOptions + WHERE FieldName = "PaymentMethod" + ORDER BY FieldOptionTitle', + 'option_key_field' => 'FieldOptionKey', + 'option_title_field' => 'FieldOptionTitle', + 'default' => null, + ), - 'PayPalSellerEmail' => Array( + 'PayPalSellerEmail' => Array ( - 'type' => 'string', - 'formatter' => 'kFormatter', - 'regexp' => '/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', - 'sample_value' => 'email@domain.com', + 'type' => 'string', + 'formatter' => 'kFormatter', + 'regexp' => '/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', + 'sample_value' => 'email@domain.com', - 'error_msgs' => Array( + 'error_msgs' => Array ( - 'invalid_format' => '!la_invalid_email!', - 'unique' => '!lu_email_already_exist!' - ), - 'default' => null, - ), - 'HasReturnPolicy' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'default' => null, - ), + 'invalid_format' => '!la_invalid_email!', + 'unique' => '!lu_email_already_exist!' + ), + 'default' => null, + ), + 'HasReturnPolicy' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'default' => null, + ), - 'RefundType' => Array( + 'RefundType' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayFieldOptions - WHERE FieldName = "RefundType" - ORDER BY FieldOptionTitle', - 'option_key_field' => 'FieldOptionKey', - 'option_title_field' => 'FieldOptionTitle', - 'default' => null, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayFieldOptions + WHERE FieldName = "RefundType" + ORDER BY FieldOptionTitle', + 'option_key_field' => 'FieldOptionKey', + 'option_title_field' => 'FieldOptionTitle', + 'default' => null, + ), - 'ReturnRequestDays' => Array( + 'ReturnRequestDays' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayFieldOptions - WHERE FieldName = "ReturnRequestDays"', - 'option_key_field' => 'FieldOptionKey', - 'option_title_field' => 'FieldOptionTitle', - 'default' => null, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayFieldOptions + WHERE FieldName = "ReturnRequestDays"', + 'option_key_field' => 'FieldOptionKey', + 'option_title_field' => 'FieldOptionTitle', + 'default' => null, + ), - 'ReturnPolicyDetails' => Array( + 'ReturnPolicyDetails' => Array ( - 'type' => 'string', - 'formatter' => 'kFormatter', 'using_fck' => 1, - 'default' => null, - ), - 'AutoRelist' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'default' => null, - ), + 'type' => 'string', + 'formatter' => 'kFormatter', 'using_fck' => 1, + 'default' => null, + ), + 'AutoRelist' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'default' => null, + ), - 'PaymentInstructions' => Array( + 'PaymentInstructions' => Array ( - 'type' => 'string', - 'formatter' => 'kFormatter', 'using_fck' => 1, - 'default' => null, - ), - 'InsuranceType' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Percent', 2 => 'la_Flat'), 'use_phrases' => 1, - 'default' => null, - ), + 'type' => 'string', + 'formatter' => 'kFormatter', 'using_fck' => 1, + 'default' => null, + ), + 'InsuranceType' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Percent', 2 => 'la_Flat'), 'use_phrases' => 1, + 'default' => null, + ), - 'InsuranceAmount' => Array( + 'InsuranceAmount' => Array ( - 'type' => 'float', - 'formatter' => 'kFormatter', - 'format' => '%0.2f', - 'min_value_inc' => 0, - 'default' => null, - ), + 'type' => 'float', + 'formatter' => 'kFormatter', + 'format' => '%0.2f', + 'min_value_inc' => 0, + 'default' => null, + ), - 'UseInsurance' => Array( + 'UseInsurance' => Array ( - 'type' => 'string', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBayFieldOptions - WHERE FieldName = "InsuranceOption"', - 'option_key_field' => 'FieldOptionKey', - 'option_title_field' => 'FieldOptionTitle', - 'default' => null, - ), - 'ShippingAsParent' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 1, - ), - 'GetItFast' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'not_null' => 0, 'default' => null, - ), + 'type' => 'string', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBayFieldOptions + WHERE FieldName = "InsuranceOption"', + 'option_key_field' => 'FieldOptionKey', + 'option_title_field' => 'FieldOptionTitle', + 'default' => null, + ), + 'ShippingAsParent' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 1, + ), + 'GetItFast' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'not_null' => 0, 'default' => null, + ), - 'ItemSpecifics' => Array('type' => 'string', 'default' => null), + 'ItemSpecifics' => Array ('type' => 'string', 'default' => null), - 'CustomItemSpecifics' => Array('type' => 'string', 'default' => null), + 'CustomItemSpecifics' => Array ('type' => 'string', 'default' => null), - 'ScheduleId' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', + 'ScheduleId' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', - 'options' => Array( + 'options' => Array ( - 0 => '', - ), - 'options_sql' => 'SELECT %1$s - FROM ' . TABLE_PREFIX . 'eBaySchedules ', - 'option_key_field' => 'ScheduleId', - 'option_title_field' => 'ScheduleName', - 'default' => null, - ), + 0 => '', + ), + 'options_sql' => 'SELECT %1$s + FROM ' . TABLE_PREFIX . 'eBaySchedules ', + 'option_key_field' => 'ScheduleId', + 'option_title_field' => 'ScheduleName', + 'default' => null, + ), - - ), - ); \ No newline at end of file + ), +); \ No newline at end of file Index: modules/in-bulletin/units/posts/posts_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-bulletin/units/posts/posts_config.php (revision 15601) +++ modules/in-bulletin/units/posts/posts_config.php (revision ) @@ -12,106 +12,100 @@ * See http://www.in-portal.org/license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'bb-post', + 'Prefix' => 'bb-post', - 'ItemClass' => Array('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class' => 'PostEventHandler', 'file' => 'post_eh.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'PostEventHandler', 'file' => 'post_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class' => 'PostTagProcessor', 'file' => 'post_tp.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'PostTagProcessor', 'file' => 'post_tp.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 'QueryString' => Array ( + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), - 'IDField' => 'PostingId', + 'IDField' => 'PostingId', - 'StatusField' => Array('Pending'), + 'StatusField' => Array ('Pending'), - 'TitleField' => 'Subject', + 'TitleField' => 'Subject', - 'TableName' => TABLE_PREFIX.'Posting', + 'TableName' => TABLE_PREFIX.'Posting', - 'ForeignKey' => 'TopicId', - 'ParentTableKey' => 'TopicId', - 'ParentPrefix' => 'bb', - 'AutoDelete' => true, - 'AutoClone' => true, + 'ForeignKey' => 'TopicId', + 'ParentTableKey' => 'TopicId', + 'ParentPrefix' => 'bb', + 'AutoDelete' => true, + 'AutoClone' => true, - 'ListSQLs' => Array ( + 'ListSQLs' => Array ( - '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.CreatedById = u.PortalUserId - LEFT JOIN '.TABLE_PREFIX.'CatalogImages img ON (img.ResourceId = u.ResourceId) AND (img.DefaultImg = 1 OR img.Name = "avatar")', - ), - - 'ItemSQLs' => Array ( - '' => ' SELECT %1$s.* %2$s + '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.CreatedById = u.PortalUserId - LEFT JOIN '.TABLE_PREFIX.'CatalogImages img ON (img.ResourceId = u.ResourceId) AND (img.DefaultImg = 1 OR img.Name = "avatar")', - ), + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.CreatedById = u.PortalUserId + LEFT JOIN '.TABLE_PREFIX.'CatalogImages img ON (img.ResourceId = u.ResourceId) AND (img.DefaultImg = 1 OR img.Name = "avatar")', + ), - 'ListSortings' => Array ( - '' => Array ( - 'ForcedSorting' => Array ('CreatedOn' => 'asc',), - ), - ), + 'ListSortings' => Array ( + '' => Array ( + 'ForcedSorting' => Array ('CreatedOn' => 'asc',), + ), + ), - 'CalculatedFields' => Array ( - '' => Array ( - 'UserName' => 'IF (ISNULL(u.Username), IF (%1$s.CreatedById = ' . USER_ROOT . ', "root", IF (%1$s.CreatedById = ' . USER_GUEST . ', "Guest", "n/a")), u.Username)', + 'CalculatedFields' => Array ( + '' => Array ( + 'UserName' => 'IF (ISNULL(u.Username), IF (%1$s.CreatedById = ' . USER_ROOT . ', "root", IF (%1$s.CreatedById = ' . USER_GUEST . ', "Guest", "n/a")), u.Username)', - 'AltName' => 'img.AltName', + 'AltName' => 'img.AltName', - 'SameImages' => 'img.SameImages', + 'SameImages' => 'img.SameImages', - 'LocalThumb' => 'img.LocalThumb', + 'LocalThumb' => 'img.LocalThumb', - 'ThumbPath' => 'img.ThumbPath', + 'ThumbPath' => 'img.ThumbPath', - 'ThumbUrl' => 'img.ThumbUrl', + 'ThumbUrl' => 'img.ThumbUrl', - 'LocalImage' => 'img.LocalImage', + 'LocalImage' => 'img.LocalImage', - 'LocalPath' => 'img.LocalPath', + 'LocalPath' => 'img.LocalPath', - 'FullUrl' => 'img.Url', + 'FullUrl' => 'img.Url', - ), - ), + ), + ), - 'Fields' => Array ( - 'PostingId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'IPAddress' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), - 'PosterAlias' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), - 'Pending' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Subject' => Array ('type' => 'string', 'max_len' => 255, 'default' => NULL), - 'PostingText' => Array ('type' => 'string', 'allow_html' => 1, 'default' => NULL), - 'GraphicsUrl' => Array ('type' => 'string', 'max_len' => 255, 'default' => NULL), - 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'Modified' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), + 'Fields' => Array ( + 'PostingId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'IPAddress' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), + 'PosterAlias' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), + 'Pending' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Subject' => Array ('type' => 'string', 'max_len' => 255, 'default' => NULL), + 'PostingText' => Array ('type' => 'string', 'allow_html' => 1, 'default' => NULL), + 'GraphicsUrl' => Array ('type' => 'string', 'max_len' => 255, 'default' => NULL), + 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + 'Modified' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), - 'ModifiedById' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' => Array(USER_ROOT => 'root', USER_GUEST => 'Guest'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Username', 'default' => NULL), + 'ModifiedById' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Username', 'default' => NULL), - 'CreatedById' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' => Array(USER_ROOT => 'root', USER_GUEST => 'Guest'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Username', 'default' => NULL), + 'CreatedById' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Username', 'default' => NULL), - 'TopicId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ResourceId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ReplyTo' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Options' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - ), + 'TopicId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ResourceId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ReplyTo' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Options' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + ), - 'VirtualFields' => Array ( - 'DisableBBCodes' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), - 'DisableSmileys' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), - 'ShowSignatures' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, 'default' => 1), + 'VirtualFields' => Array ( + 'DisableBBCodes' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), + 'DisableSmileys' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), + 'ShowSignatures' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, 'default' => 1), - 'UserName' => Array ('type' => 'string', 'default' => ''), + 'UserName' => Array ('type' => 'string', 'default' => ''), - // for avatar image + // for avatar image - 'AltName' => Array('type' => 'string', 'default' => ''), + 'AltName' => Array ('type' => 'string', 'default' => ''), - 'SameImages' => Array('type' => 'string', 'default' => ''), + 'SameImages' => Array ('type' => 'string', 'default' => ''), - 'LocalThumb' => Array('type' => 'string', 'default' => ''), + 'LocalThumb' => Array ('type' => 'string', 'default' => ''), - 'ThumbPath' => Array('type' => 'string', 'default' => ''), + 'ThumbPath' => Array ('type' => 'string', 'default' => ''), - 'ThumbUrl' => Array('type' => 'string', 'default' => ''), + 'ThumbUrl' => Array ('type' => 'string', 'default' => ''), - 'LocalImage' => Array('type' => 'string', 'default' => ''), + 'LocalImage' => Array ('type' => 'string', 'default' => ''), - 'LocalPath' => Array('type' => 'string', 'default' => ''), + 'LocalPath' => Array ('type' => 'string', 'default' => ''), - 'FullUrl' => Array('type' => 'string', 'default' => ''), + 'FullUrl' => Array ('type' => 'string', 'default' => ''), - ), + ), - 'ConfigMapping' => Array ( - 'PerPage' => 'Perpage_Postings', - ), - ); \ No newline at end of file + 'ConfigMapping' => Array ( + 'PerPage' => 'Perpage_Postings', + ), +); \ No newline at end of file Index: modules/in-commerce/units/files/files_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/files/files_config.php (revision 15601) +++ modules/in-commerce/units/files/files_config.php (revision ) @@ -13,128 +13,129 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'file', + 'Prefix' => 'file', - 'ItemClass' => Array ('class' => 'FilesItem', 'file' => 'files.php', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'FilesItem', 'file' => 'files.php', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'FilesEventHandler', 'file' => 'files_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'FilesEventHandler', 'file' => 'files_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, + - 'AggregateTags' => Array ( - Array ( - 'AggregateTo' => '#PARENT#', - 'AggregatedTagName' => 'ListFiles', - 'LocalTagName' => 'PrintList', - 'LocalSpecial' => 'downl', - ), - ), + 'AggregateTags' => Array ( + Array ( + 'AggregateTo' => '#PARENT#', + 'AggregatedTagName' => 'ListFiles', + 'LocalTagName' => 'PrintList', + 'LocalSpecial' => 'downl', + ), + ), - 'Hooks' => Array ( - /*Array ( + + /*'Hooks' => Array ( + Array ( - 'Mode' => hBEFORE, - 'Conditional' => true, - 'HookToPrefix' => 'p', - 'HookToSpecial' => '', - 'HookToEvent' => Array ( 'onPreSave' ), - 'DoPrefix' => 'pr', - 'DoSpecial' => 'tang', - 'DoEvent' => 'OnArrange', + 'Mode' => hBEFORE, + 'Conditional' => true, + 'HookToPrefix' => 'p', + 'HookToSpecial' => '', + 'HookToEvent' => Array ( 'onPreSave' ), + 'DoPrefix' => 'pr', + 'DoSpecial' => 'tang', + 'DoEvent' => 'OnArrange', - ),*/ - ), + ), + ),*/ + - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), + - 'StatusField' => Array ('Status', 'IsPrimary'), + 'StatusField' => Array ('Status', 'IsPrimary'), - 'IDField' => 'FileId', + 'IDField' => 'FileId', - 'TitleField' => 'Name', + 'TitleField' => 'Name', - 'TableName' => TABLE_PREFIX.'ProductFiles', + 'TableName' => TABLE_PREFIX.'ProductFiles', - 'ForeignKey' => 'ProductId', + 'ForeignKey' => 'ProductId', - 'ParentTableKey' => 'ProductId', - 'ParentPrefix' => 'p', + 'ParentTableKey' => 'ProductId', + 'ParentPrefix' => 'p', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - 'ListSQLs' => Array ( '' => 'SELECT * FROM %s'), - 'ItemSQLs' => Array ( '' => 'SELECT * FROM %s'), + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s' + ), - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( - 'ForcedSorting' => Array ('IsPrimary' => 'desc', 'Priority' => 'desc'), - 'Sorting' => Array ('AddedOn' => 'desc', 'Version' => 'desc'), - ) - ), + '' => Array ( + 'ForcedSorting' => Array ('IsPrimary' => 'desc', 'Priority' => 'desc'), + 'Sorting' => Array ('AddedOn' => 'desc', 'Version' => 'desc'), + ) + ), - 'Fields' => Array ( + 'Fields' => Array ( - 'FileId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'ProductId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'Name' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), - 'Version' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), - 'FilePath' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), - 'RealPath' => Array ( - 'type' => 'string', - 'formatter' => 'kUploadFormatter', - 'upload_dir' => ITEM_FILES_PATH, 'include_path' => 0, - 'size_field' => 'Size', 'max_size' => 50000000, - 'orig_name_field' => 'FilePath', - 'content_type_field' => 'MIMEType', - 'not_null' => 1, 'skip_empty' =>1, 'default' => '', - 'required' => 1, - 'error_msgs' => Array ( - 'bad_file_format' => '!la_error_InvalidFileFormat!', + 'FileId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'ProductId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'Name' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), + 'Version' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), + 'FilePath' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), + 'RealPath' => Array ( + 'type' => 'string', + 'formatter' => 'kUploadFormatter', + 'upload_dir' => ITEM_FILES_PATH, 'include_path' => 0, + 'size_field' => 'Size', 'max_size' => 50000000, + 'orig_name_field' => 'FilePath', + 'content_type_field' => 'MIMEType', + 'not_null' => 1, 'skip_empty' =>1, 'default' => '', + 'required' => 1, + 'error_msgs' => Array ( + 'bad_file_format' => '!la_error_InvalidFileFormat!', - 'bad_file_size' => '!la_error_FileTooLarge!', + 'bad_file_size' => '!la_error_FileTooLarge!', - 'cant_save_file' => '!la_error_cant_save_file!', + 'cant_save_file' => '!la_error_cant_save_file!', - ), - ), - 'Size' => Array ( - 'type' => 'int', - 'formatter' => 'kFilesizeFormatter', - 'not_null' => 1, 'default' => 0, - ), - 'Status' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( 0 => 'la_Disabled', 1 => 'la_Active', ), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), - 'IsPrimary' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), - 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'AddedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'AddedById' => Array ('type' => 'int', 'default' => NULL), - 'MIMEType' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), - ), + ), + ), + 'Size' => Array ( + 'type' => 'int', + 'formatter' => 'kFilesizeFormatter', + 'not_null' => 1, 'default' => 0, + ), + 'Status' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( 0 => 'la_Disabled', 1 => 'la_Active', ), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), + 'IsPrimary' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), + 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'AddedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + 'AddedById' => Array ('type' => 'int', 'default' => NULL), + 'MIMEType' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), + ), - 'VirtualFields' => Array ( - - ), - - 'Grids' => Array ( + 'Grids' => Array ( - - 'Default' => Array ( + 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - '0_0' => 'icon16_disabled.png', - '0_1' => 'icon16_disabled.png', - '1_0' => 'icon16_item.png', - '1_1' => 'icon16_primary.png', - 'module' => 'core', - ), - 'Fields' => Array ( - 'FileId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'module' => 'In-Portal', 'filter_block' => 'grid_range_filter'), - 'Name' => Array ( 'title' => 'column:la_fld_FileName', 'data_block' => 'file_caption_td', 'filter_block' => 'grid_like_filter'), - 'FilePath' => Array ( 'filter_block' => 'grid_like_filter'), - 'Version' => Array ( 'filter_block' => 'grid_like_filter'), - 'Size' => Array ( 'title' => 'la_col_Size', 'filter_block' => 'grid_range_filter'), - 'AddedOn' => Array ( 'format' => '_regional_DateFormat', 'filter_block' => 'grid_date_range_filter'), - 'Status' => Array ( 'filter_block' => 'grid_options_filter'), - ), - ), - ), + 'Icons' => Array ( + 'default' => 'icon16_item.png', + '0_0' => 'icon16_disabled.png', + '0_1' => 'icon16_disabled.png', + '1_0' => 'icon16_item.png', + '1_1' => 'icon16_primary.png', + 'module' => 'core', + ), + 'Fields' => Array ( + 'FileId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'module' => 'In-Portal', 'filter_block' => 'grid_range_filter'), + 'Name' => Array ( 'title' => 'column:la_fld_FileName', 'data_block' => 'file_caption_td', 'filter_block' => 'grid_like_filter'), + 'FilePath' => Array ( 'filter_block' => 'grid_like_filter'), + 'Version' => Array ( 'filter_block' => 'grid_like_filter'), + 'Size' => Array ( 'title' => 'la_col_Size', 'filter_block' => 'grid_range_filter'), + 'AddedOn' => Array ( 'format' => '_regional_DateFormat', 'filter_block' => 'grid_date_range_filter'), + 'Status' => Array ( 'filter_block' => 'grid_options_filter'), + ), + ), + ), - - ); \ No newline at end of file +); \ No newline at end of file Index: modules/in-bulletin/units/topics/topics_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-bulletin/units/topics/topics_config.php (revision 15601) +++ modules/in-bulletin/units/topics/topics_config.php (revision ) @@ -12,558 +12,570 @@ * See http://www.in-portal.org/license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'bb', + 'Prefix' => 'bb', - 'ItemClass' => Array ('class' => 'kCatDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kCatDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kCatDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kCatDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'TopicsEventHandler', 'file' => 'topics_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'TopicsEventHandler', 'file' => 'topics_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'TopicsTagProcessor', 'file' => 'topics_tag_processor.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'TopicsTagProcessor', 'file' => 'topics_tag_processor.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, + - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), - 'ConfigPriority' => 0, + 'ConfigPriority' => 0, - 'RewritePriority' => 103, - 'RewriteListener' => 'CategoryItemRewrite:RewriteListener', + 'RewritePriority' => 103, + 'RewriteListener' => 'CategoryItemRewrite:RewriteListener', - 'Hooks' => Array ( - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => '', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => 'cdata', - 'DoSpecial' => '*', - 'DoEvent' => 'OnDefineCustomFields', - ), + 'Hooks' => Array ( + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => '', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => 'cdata', + 'DoSpecial' => '*', + 'DoEvent' => 'OnDefineCustomFields', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'rev', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'rev', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'fav', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'fav', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'rel', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'rel', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'img', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'img', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'ci', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'ci', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), + ), - 'CatalogItem' => true, + 'CatalogItem' => true, - 'AdminTemplatePath' => 'topics', + 'AdminTemplatePath' => 'topics', - 'AdminTemplatePrefix' => 'topics_', + 'AdminTemplatePrefix' => 'topics_', - 'SearchConfigPostfix' => 'topics', + 'SearchConfigPostfix' => 'topics', - 'IDField' => 'TopicId', + 'IDField' => 'TopicId', - 'StatusField' => Array ('Status'), // field, that is affected by Approve/Decline events + 'StatusField' => Array ('Status'), // field, that is affected by Approve/Decline events - 'TitleField' => 'TopicText', // field, used in bluebar when editing existing item + 'TitleField' => 'TopicText', // field, used in bluebar when editing existing item - 'TitlePhrase' => 'la_Text_Topic', // phrase used to specify item type in relationship list + 'TitlePhrase' => 'la_Text_Topic', // phrase used to specify item type in relationship list - 'OwnerField' => 'OwnerId', // usually it is CreatedById + 'OwnerField' => 'OwnerId', // usually it is CreatedById - 'TitlePresets' => Array ( + 'TitlePresets' => Array ( - 'default' => Array ( 'new_status_labels' => Array ('bb' => '!la_title_AddingTopic!'), + 'default' => Array ( + 'new_status_labels' => Array ('bb' => '!la_title_AddingTopic!'), - 'edit_status_labels' => Array ('bb' => '!la_title_EditingTopic!'), + 'edit_status_labels' => Array ('bb' => '!la_title_EditingTopic!'), - 'new_titlefield' => Array ('bb' => '!la_title_NewTopic!'), + 'new_titlefield' => Array ('bb' => '!la_title_NewTopic!'), - ), + ), - 'topics_edit' => Array ('prefixes' => Array ('bb'), 'format' => "#bb_status# '#bb_titlefield#' - !la_title_General!"), + 'topics_edit' => Array ('prefixes' => Array ('bb'), 'format' => "#bb_status# '#bb_titlefield#' - !la_title_General!"), - 'topics_categories' => Array ('prefixes' => Array ('bb', 'bb-ci_List'), 'format' => "#bb_status# '#bb_titlefield#' - !la_title_Categories!"), + 'topics_categories' => Array ('prefixes' => Array ('bb', 'bb-ci_List'), 'format' => "#bb_status# '#bb_titlefield#' - !la_title_Categories!"), - 'topics_relations' => Array ('prefixes' => Array ('bb'), 'format' => "#bb_status# '#bb_titlefield#' - !la_title_Relations!"), + 'topics_relations' => Array ('prefixes' => Array ('bb'), 'format' => "#bb_status# '#bb_titlefield#' - !la_title_Relations!"), - 'topics_images' => Array ('prefixes' => Array ('bb'), 'format' => "#bb_status# '#bb_titlefield#' - !la_title_Images!"), + 'topics_images' => Array ('prefixes' => Array ('bb'), 'format' => "#bb_status# '#bb_titlefield#' - !la_title_Images!"), - 'topics_reviews' => Array ('prefixes' => Array ('bb'), 'format' => "#bb_status# '#bb_titlefield#' - !la_title_Reviews!"), + 'topics_reviews' => Array ('prefixes' => Array ('bb'), 'format' => "#bb_status# '#bb_titlefield#' - !la_title_Reviews!"), - 'topics_custom' => Array ('prefixes' => Array ('bb'), 'format' => "#bb_status# '#bb_titlefield#' - !la_title_Custom!"), + 'topics_custom' => Array ('prefixes' => Array ('bb'), 'format' => "#bb_status# '#bb_titlefield#' - !la_title_Custom!"), - 'images_edit' => Array ( 'prefixes' => Array ('bb', 'bb-img'), + 'images_edit' => Array ( + 'prefixes' => Array ('bb', 'bb-img'), - 'new_status_labels' => Array ('bb-img' => '!la_title_Adding_Image!'), + 'new_status_labels' => Array ('bb-img' => '!la_title_Adding_Image!'), - 'edit_status_labels' => Array ('bb-img' => '!la_title_Editing_Image!'), + 'edit_status_labels' => Array ('bb-img' => '!la_title_Editing_Image!'), - 'new_titlefield' => Array ('bb-img' => '!la_title_New_Image!'), + 'new_titlefield' => Array ('bb-img' => '!la_title_New_Image!'), - 'format' => "#bb_status# '#bb_titlefield#' - #bb-img_status# '#bb-img_titlefield#'", + 'format' => "#bb_status# '#bb_titlefield#' - #bb-img_status# '#bb-img_titlefield#'", - ), + ), - 'reviews_edit' => Array ( 'prefixes' => Array ('bb', 'bb-rev'), + 'reviews_edit' => Array ( + 'prefixes' => Array ('bb', 'bb-rev'), - 'new_status_labels' => Array ('bb-rev' =>"!la_title_Adding_Review! '!la_title_New_Review!'"), + 'new_status_labels' => Array ('bb-rev' =>"!la_title_Adding_Review! '!la_title_New_Review!'"), - 'edit_status_labels' => Array ('bb-rev' => '!la_title_Editing_Review!'), + 'edit_status_labels' => Array ('bb-rev' => '!la_title_Editing_Review!'), - 'format' => "#bb_status# '#bb_titlefield#' - #bb-rev_status#", + 'format' => "#bb_status# '#bb_titlefield#' - #bb-rev_status#", - ), + ), - 'relations_edit' => Array ( 'prefixes' => Array ('bb', 'bb-rel'), + 'relations_edit' => Array ( + 'prefixes' => Array ('bb', 'bb-rel'), - 'new_status_labels' => Array ('bb-rel' =>"!la_title_Adding_Relationship! '!la_title_New_Relationship!'"), + 'new_status_labels' => Array ('bb-rel' =>"!la_title_Adding_Relationship! '!la_title_New_Relationship!'"), - 'edit_status_labels' => Array ('bb-rel' => '!la_title_Editing_Relationship!'), + 'edit_status_labels' => Array ('bb-rel' => '!la_title_Editing_Relationship!'), - 'format' => "#bb_status# '#bb_titlefield#' - #bb-rel_status#", + 'format' => "#bb_status# '#bb_titlefield#' - #bb-rel_status#", - ), + ), - 'tree_in-bulletin' => Array ('format' => '!la_Text_Version! '.$this->Application->findModule('Name', 'In-Bulletin', 'Version')), + 'tree_in-bulletin' => Array ('format' => '!la_Text_Version! '.$this->Application->findModule('Name', 'In-Bulletin', 'Version')), - ), + ), - 'EditTabPresets' => Array ( - 'Default' => Array ( - 'general' => Array ('title' => 'la_tab_General', 't' => 'in-bulletin/topics/topics_edit', 'priority' => 1), - 'categories' => Array ('title' => 'la_tab_Categories', 't' => 'in-bulletin/topics/topics_categories', 'priority' => 2), - 'relations' => Array ('title' => 'la_tab_Relations', 't' => 'in-bulletin/topics/topics_relations', 'priority' => 3), - 'images' => Array ('title' => 'la_tab_Images', 't' => 'in-bulletin/topics/topics_images', 'priority' => 4), - 'reviews' => Array ('title' => 'la_tab_Reviews', 't' => 'in-bulletin/topics/topics_reviews', 'priority' => 5), - 'custom' => Array ('title' => 'la_tab_Custom', 't' => 'in-bulletin/topics/topics_custom', 'priority' => 6), - ), - ), + 'EditTabPresets' => Array ( + 'Default' => Array ( + 'general' => Array ('title' => 'la_tab_General', 't' => 'in-bulletin/topics/topics_edit', 'priority' => 1), + 'categories' => Array ('title' => 'la_tab_Categories', 't' => 'in-bulletin/topics/topics_categories', 'priority' => 2), + 'relations' => Array ('title' => 'la_tab_Relations', 't' => 'in-bulletin/topics/topics_relations', 'priority' => 3), + 'images' => Array ('title' => 'la_tab_Images', 't' => 'in-bulletin/topics/topics_images', 'priority' => 4), + 'reviews' => Array ('title' => 'la_tab_Reviews', 't' => 'in-bulletin/topics/topics_reviews', 'priority' => 5), + 'custom' => Array ('title' => 'la_tab_Custom', 't' => 'in-bulletin/topics/topics_custom', 'priority' => 6), + ), + ), - 'PermItemPrefix' => 'TOPIC', + 'PermItemPrefix' => 'TOPIC', - 'PermTabText' => 'In-Bulletin', + 'PermTabText' => 'In-Bulletin', - 'PermSection' => Array ('main' => 'CATEGORY:in-bulletin:topics_list', 'search' => 'in-bulletin:configuration_search', 'custom' => 'in-bulletin:configuration_custom'), + 'PermSection' => Array ('main' => 'CATEGORY:in-bulletin:topics_list', 'search' => 'in-bulletin:configuration_search', 'custom' => 'in-bulletin:configuration_custom'), - 'Sections' => Array ( + 'Sections' => Array ( - /*'in-bulletin' => Array ( + /*'in-bulletin' => Array ( - 'parent' => 'in-portal:root', + 'parent' => 'in-portal:root', - 'icon' => 'settings_in-bulletin', + 'icon' => 'settings_in-bulletin', - 'label' => 'la_title_In-Bulletin', + 'label' => 'la_title_In-Bulletin', - 'url' => Array ('t' => 'index', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'index', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view'), + 'permissions' => Array ('view'), - 'priority' => 3.3, + 'priority' => 3.3, - 'container' => true, + 'container' => true, - 'type' => stTREE, + 'type' => stTREE, - ),*/ + ),*/ - 'in-bulletin:topics' => Array ( + 'in-bulletin:topics' => Array ( - 'parent' => 'in-portal:site', + 'parent' => 'in-portal:site', - 'icon' => 'topics', + 'icon' => 'topics', - 'label' => 'la_tab_Topics', + 'label' => 'la_tab_Topics', - 'url' => Array ('t' => 'catalog/advanced_view', 'anchor' => 'tab-bb.showall', 'pass' => 'm'), + 'url' => Array ('t' => 'catalog/advanced_view', 'anchor' => 'tab-bb.showall', 'pass' => 'm'), - 'onclick' => 'setCatalogTab(\'bb.showall\')', + 'onclick' => 'setCatalogTab(\'bb.showall\')', - 'permissions' => Array ('view'), + 'permissions' => Array ('view'), - 'priority' => 3.4, + 'priority' => 3.4, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - // topic settings - 'in-bulletin:setting_folder' => Array ( + // topic settings + 'in-bulletin:setting_folder' => Array ( - 'parent' => 'in-portal:system', + 'parent' => 'in-portal:system', - 'icon' => 'conf_topics', + 'icon' => 'conf_topics', - 'label' => 'la_title_In-Bulletin', + 'label' => 'la_title_In-Bulletin', - 'use_parent_header' => 1, + 'use_parent_header' => 1, - 'url' => Array ('t' => 'index', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'index', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view'), + 'permissions' => Array ('view'), - 'priority' => 3.5, + 'priority' => 3.5, - 'container' => true, + 'container' => true, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - /*'in-bulletin:inbulletin_general' => Array ( + /*'in-bulletin:inbulletin_general' => Array ( - 'parent' => 'in-bulletin:setting_folder', + 'parent' => 'in-bulletin:setting_folder', - 'icon' => 'core:settings_general', + 'icon' => 'core:settings_general', - 'label' => 'la_tab_GeneralSettings', + 'label' => 'la_tab_GeneralSettings', - 'url' => Array ('t' => 'config/config_general', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'config/config_general', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit'), + 'permissions' => Array ('view', 'add', 'edit'), - 'priority' => 2.9, + 'priority' => 2.9, - 'type' => stTREE, + 'type' => stTREE, - ),*/ + ),*/ - 'in-bulletin:configuration_output' => Array ( + 'in-bulletin:configuration_output' => Array ( - 'parent' => 'in-bulletin:setting_folder', + 'parent' => 'in-bulletin:setting_folder', - 'icon' => 'core:conf_output', + 'icon' => 'core:conf_output', - 'label' => 'la_tab_ConfigOutput', + 'label' => 'la_tab_ConfigOutput', - 'url' => Array ('t' => 'config/config_general', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'config/config_general', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit'), + 'permissions' => Array ('view', 'add', 'edit'), - 'priority' => 3, + 'priority' => 3, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'in-bulletin:configuration_search' => Array ( + 'in-bulletin:configuration_search' => Array ( - 'parent' => 'in-bulletin:setting_folder', + 'parent' => 'in-bulletin:setting_folder', - 'icon' => 'core:conf_search', + 'icon' => 'core:conf_search', - 'label' => 'la_tab_ConfigSearch', + 'label' => 'la_tab_ConfigSearch', - 'url' => Array ('t' => 'config/config_search', 'module_key' => 'topics', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'config/config_search', 'module_key' => 'topics', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view', 'edit'), + 'permissions' => Array ('view', 'edit'), - 'priority' => 4, + 'priority' => 4, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'in-bulletin:configuration_custom' => Array ( + 'in-bulletin:configuration_custom' => Array ( - 'parent' => 'in-bulletin:setting_folder', + 'parent' => 'in-bulletin:setting_folder', - 'icon' => 'core:conf_customfields', + 'icon' => 'core:conf_customfields', - 'label' => 'la_tab_ConfigCustom', + 'label' => 'la_tab_ConfigCustom', - 'url' => Array ('t' => 'custom_fields/custom_fields_list', 'cf_type' => 3, 'pass_section' => true, 'pass' => 'm,cf'), + 'url' => Array ('t' => 'custom_fields/custom_fields_list', 'cf_type' => 3, 'pass_section' => true, 'pass' => 'm,cf'), - 'permissions' => Array ('view', 'add', 'edit', 'delete'), + 'permissions' => Array ('view', 'add', 'edit', 'delete'), - 'priority' => 5, + 'priority' => 5, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - 'FilterMenu' => Array ( + 'FilterMenu' => Array ( - 'Groups' => Array ( - Array ('mode' => 'AND', 'filters' => Array ('show_new'), 'type' => kDBList::HAVING_FILTER), - Array ('mode' => 'AND', 'filters' => Array ('show_hot'), 'type' => kDBList::HAVING_FILTER), - Array ('mode' => 'AND', 'filters' => Array ('show_pop'), 'type' => kDBList::HAVING_FILTER), - Array ('mode' => 'AND', 'filters' => Array ('show_pick'), 'type' => kDBList::WHERE_FILTER), - ), - 'Filters' => Array ( + 'Groups' => Array ( + Array ('mode' => 'AND', 'filters' => Array ('show_new'), 'type' => kDBList::HAVING_FILTER), + Array ('mode' => 'AND', 'filters' => Array ('show_hot'), 'type' => kDBList::HAVING_FILTER), + Array ('mode' => 'AND', 'filters' => Array ('show_pop'), 'type' => kDBList::HAVING_FILTER), + Array ('mode' => 'AND', 'filters' => Array ('show_pick'), 'type' => kDBList::WHERE_FILTER), + ), + 'Filters' => Array ( - 'show_new' => Array ('label' => 'la_Text_New', 'on_sql' => '', 'off_sql' => '`IsNew` != 1' ), + 'show_new' => Array ('label' => 'la_Text_New', 'on_sql' => '', 'off_sql' => '`IsNew` != 1' ), - 'show_hot' => Array ('label' => 'la_Text_Hot', 'on_sql' => '', 'off_sql' => '`IsHot` != 1' ), + 'show_hot' => Array ('label' => 'la_Text_Hot', 'on_sql' => '', 'off_sql' => '`IsHot` != 1' ), - 'show_pop' => Array ('label' => 'la_Text_Pop', 'on_sql' => '', 'off_sql' => '`IsPop` != 1' ), + 'show_pop' => Array ('label' => 'la_Text_Pop', 'on_sql' => '', 'off_sql' => '`IsPop` != 1' ), - 'show_pick' => Array ('label' => 'la_prompt_EditorsPick', 'on_sql' => '', 'off_sql' => '%1$s.`EditorsPick` != 1' ), + 'show_pick' => Array ('label' => 'la_prompt_EditorsPick', 'on_sql' => '', 'off_sql' => '%1$s.`EditorsPick` != 1' ), - ), - ), + ), + ), - 'CatalogSelectorName' => 'topiclist', + 'CatalogSelectorName' => 'topiclist', - 'ItemPropertyMappings' => Array ( + 'ItemPropertyMappings' => Array ( - 'NewDays' => 'Topic_NewDays', // number of days item to be NEW + 'NewDays' => 'Topic_NewDays', // number of days item to be NEW - 'MinPopVotes' => 'Topic_MinPopVotes', // minimum number of votes for an item to be POP + 'MinPopVotes' => 'Topic_MinPopVotes', // minimum number of votes for an item to be POP - 'MinPopRating' => 'Topic_MinPopRating', // minimum rating for an item to be POP + 'MinPopRating' => 'Topic_MinPopRating', // minimum rating for an item to be POP - 'MaxHotNumber' => 'Topic_MaxHotNumber', // maximum number of HOT items + 'MaxHotNumber' => 'Topic_MaxHotNumber', // maximum number of HOT items - 'HotLimit' => 'Topic_HotLimit', // variable name in inp_Cache table + 'HotLimit' => 'Topic_HotLimit', // variable name in inp_Cache table - 'ClickField' => 'Views', // item click count is stored here (in item table) + 'ClickField' => 'Views', // item click count is stored here (in item table) - ), + ), - 'ItemType' => 3, // this is used when relation to product is added from in-portal and via-versa + 'ItemType' => 3, // this is used when relation to product is added from in-portal and via-versa - 'ViewMenuPhrase' => 'la_title_Topics', + 'ViewMenuPhrase' => 'la_title_Topics', - 'CatalogTabIcon' => 'in-bulletin:icon16_topics.png', + 'CatalogTabIcon' => 'in-bulletin:icon16_topics.png', - 'UsePendingEditing' => true, // item editing is controlled by TOPIC.ADD/EDIT, TOPIC.ADD/EDIT.PENDING permissions + 'UsePendingEditing' => true, // item editing is controlled by TOPIC.ADD/EDIT, TOPIC.ADD/EDIT.PENDING permissions - 'StatisticsInfo' => Array ( + 'StatisticsInfo' => Array ( - 'pending' => Array ( + 'pending' => Array ( - 'icon' => 'icon16_topic_pending.gif', + 'icon' => 'icon16_topic_pending.gif', - 'label' => 'la_Text_Topics', + 'label' => 'la_Text_Topics', - 'js_url' => '#url#', + 'js_url' => '#url#', - 'url' => Array ('t' => 'catalog/advanced_view', 'SetTab' => 'bb', 'pass' => 'm,bb.showall', 'bb.showall_event' => 'OnSetFilterPattern', 'bb.showall_filters' => 'show_active=0,show_pending=1,show_disabled=0,show_new=1,show_hot=1,show_pop=1,show_pick=1'), + 'url' => Array ('t' => 'catalog/advanced_view', 'SetTab' => 'bb', 'pass' => 'm,bb.showall', 'bb.showall_event' => 'OnSetFilterPattern', 'bb.showall_filters' => 'show_active=0,show_pending=1,show_disabled=0,show_new=1,show_hot=1,show_pop=1,show_pick=1'), - 'status' => STATUS_PENDING, + 'status' => STATUS_PENDING, - ), - ), + ), + ), - 'TableName' => TABLE_PREFIX.'Topic', + 'TableName' => TABLE_PREFIX.'Topic', - 'CustomDataTableName' => TABLE_PREFIX . 'TopicCustomData', + 'CustomDataTableName' => TABLE_PREFIX . 'TopicCustomData', - 'CalculatedFields' => Array ( - '' => Array ( + 'CalculatedFields' => Array ( + '' => Array ( - 'UserName' => 'IF (ISNULL(u.Username), IF (%1$s.OwnerId = ' . USER_ROOT . ', "root", IF (%1$s.OwnerId = ' . USER_GUEST . ', "Guest", "n/a")), u.Username)', + 'UserName' => 'IF (ISNULL(u.Username), IF (%1$s.OwnerId = ' . USER_ROOT . ', "root", IF (%1$s.OwnerId = ' . USER_GUEST . ', "Guest", "n/a")), u.Username)', - 'CategoryId' => TABLE_PREFIX.'%3$sCategoryItems.CategoryId', + 'CategoryId' => TABLE_PREFIX.'%3$sCategoryItems.CategoryId', - 'Filename' => TABLE_PREFIX.'%3$sCategoryItems.Filename', - 'CategoryFilename' => TABLE_PREFIX.'Categories.NamedParentPath', + 'Filename' => TABLE_PREFIX.'%3$sCategoryItems.Filename', + 'CategoryFilename' => TABLE_PREFIX.'Categories.NamedParentPath', - 'PrimaryCat' => TABLE_PREFIX.'%3$sCategoryItems.PrimaryCat', + 'PrimaryCat' => TABLE_PREFIX.'%3$sCategoryItems.PrimaryCat', - 'ParentPath' => TABLE_PREFIX.'Categories.ParentPath', + 'ParentPath' => TABLE_PREFIX.'Categories.ParentPath', - 'AltName' => 'img.AltName', + 'AltName' => 'img.AltName', - 'SameImages' => 'img.SameImages', + 'SameImages' => 'img.SameImages', - 'LocalThumb' => 'img.LocalThumb', + 'LocalThumb' => 'img.LocalThumb', - 'ThumbPath' => 'img.ThumbPath', + 'ThumbPath' => 'img.ThumbPath', - 'ThumbUrl' => 'img.ThumbUrl', + 'ThumbUrl' => 'img.ThumbUrl', - 'LocalImage' => 'img.LocalImage', + 'LocalImage' => 'img.LocalImage', - 'LocalPath' => 'img.LocalPath', + 'LocalPath' => 'img.LocalPath', - 'FullUrl' => 'img.Url', + 'FullUrl' => 'img.Url', - 'LastPoster' => 'IF (ISNULL(last_post.PosterAlias), "Guest", last_post.PosterAlias)', - 'LastPosterId' => 'last_post.CreatedById', - ), - ), + 'LastPoster' => 'IF (ISNULL(last_post.PosterAlias), "Guest", last_post.PosterAlias)', + 'LastPosterId' => 'last_post.CreatedById', + ), + ), - 'ListSQLs' => Array ( '' => ' SELECT %1$s.* %2$s + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId - LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId - LEFT JOIN '.TABLE_PREFIX.'%3$sCatalogImages img ON img.ResourceId = %1$s.ResourceId AND img.DefaultImg = 1 - LEFT JOIN '.TABLE_PREFIX.'CategoryPermissionsCache perm ON perm.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId - LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.OwnerId = u.PortalUserId - LEFT JOIN '.TABLE_PREFIX.'%3$sPosting last_post ON last_post.PostingId = %1$s.LastPostId - LEFT JOIN '.TABLE_PREFIX.'%3$sTopicCustomData cust ON %1$s.ResourceId = cust.ResourceId', + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId + LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId + LEFT JOIN '.TABLE_PREFIX.'%3$sCatalogImages img ON img.ResourceId = %1$s.ResourceId AND img.DefaultImg = 1 + LEFT JOIN '.TABLE_PREFIX.'CategoryPermissionsCache perm ON perm.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId + LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.OwnerId = u.PortalUserId + LEFT JOIN '.TABLE_PREFIX.'%3$sPosting last_post ON last_post.PostingId = %1$s.LastPostId + LEFT JOIN '.TABLE_PREFIX.'%3$sTopicCustomData cust ON %1$s.ResourceId = cust.ResourceId', - ), // key - special, value - list select sql + ), - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( - 'ForcedSorting' => Array ('EditorsPick' => 'desc', 'Priority' => 'desc'), - 'Sorting' => Array ('TopicText' => 'asc'), - ) - ), + '' => Array ( + 'ForcedSorting' => Array ('EditorsPick' => 'desc', 'Priority' => 'desc'), + 'Sorting' => Array ('TopicText' => 'asc'), + ) + ), - 'ItemSQLs' => Array ( '' => ' SELECT %1$s.* %2$s + + 'ItemSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId - LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId - LEFT JOIN '.TABLE_PREFIX.'%3$sCatalogImages img ON img.ResourceId = %1$s.ResourceId AND img.DefaultImg = 1 - LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.OwnerId = u.PortalUserId - LEFT JOIN '.TABLE_PREFIX.'%3$sPosting last_post ON last_post.PostingId = %1$s.LastPostId + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId + LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId + LEFT JOIN '.TABLE_PREFIX.'%3$sCatalogImages img ON img.ResourceId = %1$s.ResourceId AND img.DefaultImg = 1 + LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.OwnerId = u.PortalUserId + LEFT JOIN '.TABLE_PREFIX.'%3$sPosting last_post ON last_post.PostingId = %1$s.LastPostId - LEFT JOIN '.TABLE_PREFIX.'%3$sTopicCustomData cust ON %1$s.ResourceId = cust.ResourceId'), + LEFT JOIN '.TABLE_PREFIX.'%3$sTopicCustomData cust ON %1$s.ResourceId = cust.ResourceId' + ), - 'SubItems' => Array ('bb-rev', 'bb-ci', 'bb-rel', 'bb-img', 'bb-cdata', 'bb-fav', 'bb-post'), + 'SubItems' => Array ('bb-rev', 'bb-ci', 'bb-rel', 'bb-img', 'bb-cdata', 'bb-fav', 'bb-post'), - 'Fields' => Array ( + 'Fields' => Array ( - 'TopicId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'TopicId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'NotifyOwnerOnChanges' => Array ( + 'NotifyOwnerOnChanges' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'lu_No', 1 => 'lu_Yes'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'lu_No', 1 => 'lu_Yes'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), - 'Modified' => Array ( + 'Modified' => Array ( - 'type' => 'int', - 'formatter' => 'kDateFormatter', - 'required' => 1, 'default' => '#NOW#', - ), + 'type' => 'int', + 'formatter' => 'kDateFormatter', + 'required' => 1, 'default' => '#NOW#', + ), - 'TopicText' => Array ( + 'TopicText' => Array ( - 'type' => 'string', - 'required' => 1, 'default' => '', 'not_null' => 1, - ), + 'type' => 'string', + 'required' => 1, 'default' => '', 'not_null' => 1, + ), - 'AutomaticFilename' => Array ('type' => 'int', 'not_null' => 1, 'default' => 1), + 'AutomaticFilename' => Array ('type' => 'int', 'not_null' => 1, 'default' => 1), - 'Posts' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Posts' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Views' => Array ( + 'Views' => Array ( - 'type' => 'double', - 'formatter' => 'kFormatter', - 'format' => '%d', - 'not_null' => 1, 'default' => 0, - ), + 'type' => 'double', + 'formatter' => 'kFormatter', + 'format' => '%d', + 'not_null' => 1, 'default' => 0, + ), - 'EditorsPick' => Array ( + 'EditorsPick' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), - 'Status' => Array ( + 'Status' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( - 0 => 'la_Disabled', - 1 => 'la_Active', - 2 => 'la_Pending', - ), - 'use_phrases' => 1, - 'not_null' => 1, 'default' => 2, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( + 0 => 'la_Disabled', + 1 => 'la_Active', + 2 => 'la_Pending', + ), + 'use_phrases' => 1, + 'not_null' => 1, 'default' => 2, + ), - 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'OwnerId' => Array ( + 'OwnerId' => Array ( - 'type' => 'int', - 'formatter' => 'kLEFTFormatter', - 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), - 'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users - WHERE `%s` = \'%s\' ', - 'left_key_field' => 'PortalUserId', - 'left_title_field' => 'Username', - 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), - 'sample_value' => 'Guest', 'required' => 1, 'default' => NULL, - ), + 'type' => 'int', + 'formatter' => 'kLEFTFormatter', + 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), + 'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users + WHERE `%s` = \'%s\' ', + 'left_key_field' => 'PortalUserId', + 'left_title_field' => 'Username', + 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), + 'sample_value' => 'Guest', 'required' => 1, 'default' => NULL, + ), - 'ModifiedById' => Array ( + 'ModifiedById' => Array ( - 'type' => 'int', - 'formatter' => 'kLEFTFormatter', - 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), - 'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users - WHERE `%s` = \'%s\' ', - 'left_key_field' => 'PortalUserId', - 'left_title_field' => 'Username', - 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), - 'default' => NULL, - ), + 'type' => 'int', + 'formatter' => 'kLEFTFormatter', + 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), + 'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users + WHERE `%s` = \'%s\' ', + 'left_key_field' => 'PortalUserId', + 'left_title_field' => 'Username', + 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), + 'default' => NULL, + ), - 'ResourceId' => Array ('type' => 'int', 'default' => null), + 'ResourceId' => Array ('type' => 'int', 'default' => null), - 'TopicType' => Array ( + 'TopicType' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_Yes', 1 => 'la_No'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 1, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_Yes', 1 => 'la_No'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 1, + ), - 'CreatedOn' => Array ( + 'CreatedOn' => Array ( - 'type' => 'double', - 'formatter' => 'kDateFormatter', - 'required' => 1, 'default' => '#NOW#', - ), + 'type' => 'double', + 'formatter' => 'kDateFormatter', + 'required' => 1, 'default' => '#NOW#', + ), - 'CachedReviewsQty' => Array ('type' => 'int' , 'not_null' => 1, 'default' => 0), + 'CachedReviewsQty' => Array ('type' => 'int' , 'not_null' => 1, 'default' => 0), - 'CachedRating' => Array ('type' => 'string', 'not_null' => 1, 'default' => 0), + 'CachedRating' => Array ('type' => 'string', 'not_null' => 1, 'default' => 0), - 'CachedVotesQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'CachedVotesQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'NewItem' => Array ( + 'NewItem' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, - 'options' => Array ( - 2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never', - ), - 'default' => 2, 'not_null' => 1, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, + 'options' => Array ( + 2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never', + ), + 'default' => 2, 'not_null' => 1, + ), - 'PopItem' => Array ( + 'PopItem' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, - 'options' => Array ( - 2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never', - ), - 'default' => 2, 'not_null' => 1, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, + 'options' => Array ( + 2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never', + ), + 'default' => 2, 'not_null' => 1, + ), - 'HotItem' => Array ( + 'HotItem' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, - 'options' => Array ( - 2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never', - ), - 'default' => 2, 'not_null' => 1, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, + 'options' => Array ( + 2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never', + ), + 'default' => 2, 'not_null' => 1, + ), - 'PostedBy' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'PostedBy' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'OrgId' => Array ('type' => 'int', 'default' => null), + 'OrgId' => Array ('type' => 'int', 'default' => null), - 'LastPostId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'LastPostId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'LastPostDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null), + 'LastPostDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null), - 'TodayDate' => Array ('type' => 'string', 'default' => null), + 'TodayDate' => Array ('type' => 'string', 'default' => null), - 'TodayPosts' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'TodayPosts' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'MetaKeywords' => Array ('type' => 'string', 'default' => null), + 'MetaKeywords' => Array ('type' => 'string', 'default' => null), - 'MetaDescription' => Array ( + 'MetaDescription' => Array ( - 'type' => 'string', + 'type' => 'string', - 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => null), + 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => null - ), + ), + ), - 'VirtualFields' => Array ( - 'Relevance' => Array ('type' => 'float', 'default' => 0), - 'UserName' => Array ('type' => 'string', 'default' => ''), - 'CategoryId' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (), - 'default' => 0, - ), - 'Filename' => Array ('type' => 'string', 'default' => ''), - 'CategoryFilename' => Array ('type' => 'string', 'default' => ''), - 'PrimaryCat' => Array ('type' => 'int', 'default' => 0), - 'IsHot' => Array ('type' => 'int', 'default' => 0), - 'IsNew' => Array ('type' => 'int', 'default' => 0), - 'IsPop' => Array ('type' => 'int', 'default' => 0), - 'CachedNavbar' => Array ('type' => 'string', 'default' => ''), - 'ParentPath' => Array ('type' => 'string', 'default' => ''), + 'VirtualFields' => Array ( + 'Relevance' => Array ('type' => 'float', 'default' => 0), + 'UserName' => Array ('type' => 'string', 'default' => ''), + 'CategoryId' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (), + 'default' => 0, + ), + 'Filename' => Array ('type' => 'string', 'default' => ''), + 'CategoryFilename' => Array ('type' => 'string', 'default' => ''), + 'PrimaryCat' => Array ('type' => 'int', 'default' => 0), + 'IsHot' => Array ('type' => 'int', 'default' => 0), + 'IsNew' => Array ('type' => 'int', 'default' => 0), + 'IsPop' => Array ('type' => 'int', 'default' => 0), + 'CachedNavbar' => Array ('type' => 'string', 'default' => ''), + 'ParentPath' => Array ('type' => 'string', 'default' => ''), - 'LastPoster' => Array ('type' => 'string', 'default' => ''), - 'LastPosterId' => Array ('type' => 'int', 'default' => USER_GUEST), - 'PostingText' => Array ( - 'type' => 'string', - 'formatter' => 'kFormatter', 'using_fck' => 1, - 'required' => 1, 'allow_html' => 1, 'default' => '', - ), - 'DisableBBCodes' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, - 'default' => 0, - ), - 'DisableSmileys' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, - 'default' => 0, - ), - 'ShowSignatures' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, - 'default' => 1, - ), + 'LastPoster' => Array ('type' => 'string', 'default' => ''), + 'LastPosterId' => Array ('type' => 'int', 'default' => USER_GUEST), + 'PostingText' => Array ( + 'type' => 'string', + 'formatter' => 'kFormatter', 'using_fck' => 1, + 'required' => 1, 'allow_html' => 1, 'default' => '', + ), + 'DisableBBCodes' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, + 'default' => 0, + ), + 'DisableSmileys' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, + 'default' => 0, + ), + 'ShowSignatures' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, + 'default' => 1, + ), - // for primary image + // for primary image - 'AltName' => Array ('type' => 'string', 'default' => ''), + 'AltName' => Array ('type' => 'string', 'default' => ''), - 'SameImages' => Array ('type' => 'string', 'default' => ''), + 'SameImages' => Array ('type' => 'string', 'default' => ''), - 'LocalThumb' => Array ('type' => 'string', 'default' => ''), + 'LocalThumb' => Array ('type' => 'string', 'default' => ''), - 'ThumbPath' => Array ('type' => 'string', 'default' => ''), + 'ThumbPath' => Array ('type' => 'string', 'default' => ''), - 'ThumbUrl' => Array ('type' => 'string', 'default' => ''), + 'ThumbUrl' => Array ('type' => 'string', 'default' => ''), - 'LocalImage' => Array ('type' => 'string', 'default' => ''), + 'LocalImage' => Array ('type' => 'string', 'default' => ''), - 'LocalPath' => Array ('type' => 'string', 'default' => ''), + 'LocalPath' => Array ('type' => 'string', 'default' => ''), - 'FullUrl' => Array ('type' => 'string', 'default' => ''), + 'FullUrl' => Array ('type' => 'string', 'default' => ''), - ), + ), - 'Grids' => Array ( + 'Grids' => Array ( - 'Default' => Array ( + 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_topic.png', - 0 => 'icon16_topic_disabled.png', - 1 => 'icon16_topic.png', - 2 => 'icon16_topic_pending.png', - 'NEW' => 'icon16_topic_new.png', - ), - 'Fields' => Array ( - 'TopicId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'TopicText' => Array ('title' => 'la_col_TopicText', 'data_block' => 'grid_catitem_td', 'filter_block' => 'grid_like_filter', 'width' => 300, 'first_chars' => 290, ), + 'Icons' => Array ( + 'default' => 'icon16_topic.png', + 0 => 'icon16_topic_disabled.png', + 1 => 'icon16_topic.png', + 2 => 'icon16_topic_pending.png', + 'NEW' => 'icon16_topic_new.png', + ), + 'Fields' => Array ( + 'TopicId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'TopicText' => Array ('title' => 'la_col_TopicText', 'data_block' => 'grid_catitem_td', 'filter_block' => 'grid_like_filter', 'width' => 300, 'first_chars' => 290, ), - 'Priority' => Array('filter_block' => 'grid_range_filter', 'width' => 65), + 'Priority' => Array ('filter_block' => 'grid_range_filter', 'width' => 65), - 'UserName' => Array ('title' => 'column:la_fld_PostedBy', 'filter_block' => 'grid_like_filter', 'width' => 150, ), - 'CreatedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), + 'UserName' => Array ('title' => 'column:la_fld_PostedBy', 'filter_block' => 'grid_like_filter', 'width' => 150, ), + 'CreatedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), - 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 70, ), + 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 70, ), - 'LastPostDate' => Array ('title' => 'la_col_LastPostOn', 'filter_block' => 'grid_date_range_filter', 'width' => 145, ), - 'Posts' => Array ('title' => 'la_col_Posts', 'filter_block' => 'grid_range_filter', 'width' => 70, ), + 'LastPostDate' => Array ('title' => 'la_col_LastPostOn', 'filter_block' => 'grid_date_range_filter', 'width' => 145, ), + 'Posts' => Array ('title' => 'la_col_Posts', 'filter_block' => 'grid_range_filter', 'width' => 70, ), - 'Views' => Array ('filter_block' => 'grid_range_filter', 'width' => 70, ), + 'Views' => Array ('filter_block' => 'grid_range_filter', 'width' => 70, ), - ), - ), + ), + ), - 'Radio' => Array ( + 'Radio' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_topic.png', - 0 => 'icon16_topic_disabled.png', - 1 => 'icon16_topic.png', - 2 => 'icon16_topic_pending.png', + 'Icons' => Array ( + 'default' => 'icon16_topic.png', + 0 => 'icon16_topic_disabled.png', + 1 => 'icon16_topic.png', + 2 => 'icon16_topic_pending.png', - 'NEW' => 'icon16_topic_new.png', ), + 'NEW' => 'icon16_topic_new.png', + ), - 'Selector' => 'radio', - 'Fields' => Array ( - 'TopicId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'TopicText' => Array ('title' => 'la_col_TopicText', 'data_block' => 'grid_catitem_td', 'filter_block' => 'grid_like_filter', 'width' => 300, 'first_chars' => 290, ), + 'Selector' => 'radio', + 'Fields' => Array ( + 'TopicId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'TopicText' => Array ('title' => 'la_col_TopicText', 'data_block' => 'grid_catitem_td', 'filter_block' => 'grid_like_filter', 'width' => 300, 'first_chars' => 290, ), - 'Priority' => Array('filter_block' => 'grid_range_filter', 'width' => 65), + 'Priority' => Array ('filter_block' => 'grid_range_filter', 'width' => 65), - 'UserName' => Array ('title' => 'column:la_fld_PostedBy', 'filter_block' => 'grid_like_filter', 'width' => 150, ), - 'CreatedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), + 'UserName' => Array ('title' => 'column:la_fld_PostedBy', 'filter_block' => 'grid_like_filter', 'width' => 150, ), + 'CreatedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), - 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 70, ), + 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 70, ), - 'LastPostDate' => Array ('title' => 'la_col_LastPostOn', 'filter_block' => 'grid_date_range_filter', 'width' => 145, ), - 'Posts' => Array ('title' => 'la_col_Posts', 'filter_block' => 'grid_range_filter', 'width' => 70, ), + 'LastPostDate' => Array ('title' => 'la_col_LastPostOn', 'filter_block' => 'grid_date_range_filter', 'width' => 145, ), + 'Posts' => Array ('title' => 'la_col_Posts', 'filter_block' => 'grid_range_filter', 'width' => 70, ), - 'Views' => Array ('filter_block' => 'grid_range_filter', 'width' => 70, ), + 'Views' => Array ('filter_block' => 'grid_range_filter', 'width' => 70, ), - ), - ), - ), + ), + ), + ), - 'ConfigMapping' => Array ( + 'ConfigMapping' => Array ( - 'PerPage' => 'Perpage_Topics', + 'PerPage' => 'Perpage_Topics', - 'ShortListPerPage' => 'Perpage_Topics_Short', + 'ShortListPerPage' => 'Perpage_Topics_Short', - 'ForceEditorPick' => 'Topic_EditorPicksAbove', + 'ForceEditorPick' => 'Topic_EditorPicksAbove', - 'DefaultSorting1Field' => 'Topic_SortField', + 'DefaultSorting1Field' => 'Topic_SortField', - 'DefaultSorting2Field' => 'Topic_SortField2', + 'DefaultSorting2Field' => 'Topic_SortField2', - 'DefaultSorting1Dir' => 'Topic_SortOrder', + 'DefaultSorting1Dir' => 'Topic_SortOrder', - 'DefaultSorting2Dir' => 'Topic_SortOrder2', + 'DefaultSorting2Dir' => 'Topic_SortOrder2', - 'RatingDelayValue' => 'topic_RatingDelay_Value', + 'RatingDelayValue' => 'topic_RatingDelay_Value', - 'RatingDelayInterval' => 'topic_RatingDelay_Interval', + 'RatingDelayInterval' => 'topic_RatingDelay_Interval', - ), - ); \ No newline at end of file + ), +); \ No newline at end of file Index: modules/in-commerce/units/gift_certificates/gift_certificates_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/gift_certificates/gift_certificates_config.php (revision 15601) +++ modules/in-commerce/units/gift_certificates/gift_certificates_config.php (revision ) @@ -11,115 +11,118 @@ * See http://www.in-portal.org/commercial-license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( - 'Prefix' => 'gc', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'GiftCertificateEventHandler', 'file' => 'gift_certificates_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'GiftCertificateTagProcessor', 'file' => 'gift_certificates_tp.php', 'build_event' => 'OnBuild'), +$config = Array ( + 'Prefix' => 'gc', + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'EventHandlerClass' => Array ('class' => 'GiftCertificateEventHandler', 'file' => 'gift_certificates_eh.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'GiftCertificateTagProcessor', 'file' => 'gift_certificates_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' => 'GiftCertificateId', + 'IDField' => 'GiftCertificateId', - 'StatusField' => Array('Status'), + 'StatusField' => Array ('Status'), - 'TitleField' => 'Recipient', - 'TableName' => TABLE_PREFIX.'GiftCertificates', + 'TitleField' => 'Recipient', + 'TableName' => TABLE_PREFIX.'GiftCertificates', - 'TitlePresets' => Array ( - 'default' => Array ( - 'new_status_labels' => Array ('gc' => '!la_title_AddingGiftCertificate!'), - 'edit_status_labels' => Array ('gc' => '!la_title_EditingGiftCertificate!'), - 'new_titlefield' => Array ('gc' => '!la_title_NewGiftCertificate!'), - ), + 'TitlePresets' => Array ( + 'default' => Array ( + 'new_status_labels' => Array ('gc' => '!la_title_AddingGiftCertificate!'), + 'edit_status_labels' => Array ('gc' => '!la_title_EditingGiftCertificate!'), + 'new_titlefield' => Array ('gc' => '!la_title_NewGiftCertificate!'), + ), - 'gift_certificates_list' => Array ('prefixes' => Array ('gc_List'), 'format' => "!la_title_GiftCertificates!",), - 'gift_certificates_edit' => Array ('prefixes' => Array ('gc'), 'format' => "#gc_status# '#gc_titlefield#' - !la_title_General!",), - ), + 'gift_certificates_list' => Array ('prefixes' => Array ('gc_List'), 'format' => "!la_title_GiftCertificates!",), + 'gift_certificates_edit' => Array ('prefixes' => Array ('gc'), 'format' => "#gc_status# '#gc_titlefield#' - !la_title_General!",), + ), - 'PermSection' => Array ('main' => 'in-commerce:gift-certificates'), + 'PermSection' => Array ('main' => 'in-commerce:gift-certificates'), - 'Sections' => Array ( - 'in-commerce:gift-certificates' => Array ( + 'Sections' => Array ( + 'in-commerce:gift-certificates' => Array ( - 'parent' => 'in-commerce:discounts_folder', + 'parent' => 'in-commerce:discounts_folder', - 'icon' => 'discounts_coupons', + 'icon' => 'discounts_coupons', - 'label' => 'la_tab_GiftCertificates', + 'label' => 'la_tab_GiftCertificates', - 'url' => Array('t' => 'in-commerce/discounts/gift_certificate_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-commerce/discounts/gift_certificate_list', 'pass' => 'm'), - 'permissions' => Array('view', 'add', 'edit', 'delete', 'advanced:approve', 'advanced:decline'), + 'permissions' => Array ('view', 'add', 'edit', 'delete', 'advanced:approve', 'advanced:decline'), - 'priority' => 3.3, // ., because this section replaces parent in tree + 'priority' => 3.3, // ., because this section replaces parent in tree - 'type' => stTAB, + 'type' => stTAB, - ), - ), + ), + ), - 'ListSQLs' => Array ('' => 'SELECT %1$s.* %2$s FROM %1$s',), - 'ItemSQLs' => Array ('' => 'SELECT * FROM %1$s',), + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM %1$s', + ), - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array( + '' => Array ( - 'Sorting' => Array('Recipient' => 'asc'), + 'Sorting' => Array ('Recipient' => 'asc'), - ) - ), + ) + ), - 'Fields' => Array ( + 'Fields' => Array ( - 'GiftCertificateId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'GiftCertificateId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'OrderId' => Array ('type' => 'int', 'default' => 0), + 'OrderId' => Array ('type' => 'int', 'default' => 0), - 'Status' => Array('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array ( 1 => 'la_Enabled', 2 => 'la_Used', 0 => 'la_Disabled' ), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2 ), + 'Status' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array ( 1 => 'la_Enabled', 2 => 'la_Used', 0 => 'la_Disabled' ), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2 ), - 'SendVia' => Array('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array ( 0 => 'la_opt_Email', 1 => 'la_opt_PostalMail'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 0 ), + 'SendVia' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array ( 0 => 'la_opt_Email', 1 => 'la_opt_PostalMail'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 0 ), - 'Purchaser' => Array('type'=>'string','required'=>1,'default'=>null, 'max_len'=>255), + 'Purchaser' => Array ('type' => 'string', 'required'=>1,'default'=>null, 'max_len'=>255), - 'Recipient' => Array('type'=>'string','required'=>1,'default'=>null, 'max_len'=>255), + 'Recipient' => Array ('type' => 'string', 'required'=>1,'default'=>null, 'max_len'=>255), - 'RecipientEmail' => Array('type' => 'string', 'formatter'=>'kFormatter', 'regexp'=>'/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', 'sample_value' => 'email@domain.com', 'not_null' => '1', 'required'=>1, 'default' => '', 'error_msgs' => Array('invalid_format'=>'!la_invalid_email!') ), + 'RecipientEmail' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'regexp' => '/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', 'sample_value' => 'email@domain.com', 'not_null' => '1', 'required'=>1, 'default' => '', 'error_msgs' => Array ('invalid_format' => '!la_invalid_email!') ), - 'RecipientFirstname' => Array('type'=>'string','required'=>1,'default'=>null, 'max_len'=>255), + 'RecipientFirstname' => Array ('type' => 'string', 'required'=>1,'default'=>null, 'max_len'=>255), - 'RecipientLastname' => Array('type'=>'string','required'=>1,'default'=>null, 'max_len'=>255), + 'RecipientLastname' => Array ('type' => 'string', 'required'=>1,'default'=>null, 'max_len'=>255), - 'RecipientAddress1' => Array('type'=>'string','required'=>1,'default'=>null, 'max_len'=>255), + 'RecipientAddress1' => Array ('type' => 'string', 'required'=>1,'default'=>null, 'max_len'=>255), - 'RecipientAddress2' => Array('type'=>'string', 'default'=>null, 'max_len'=>255), + 'RecipientAddress2' => Array ('type' => 'string', 'default'=>null, 'max_len'=>255), - 'RecipientCity' => Array('type'=>'string','required'=>1,'default'=>null, 'max_len'=>255), + 'RecipientCity' => Array ('type' => 'string', 'required'=>1,'default'=>null, 'max_len'=>255), - 'RecipientState' => Array('type'=>'string','required'=>1,'default'=>null, 'max_len'=>255), + 'RecipientState' => Array ('type' => 'string', 'required'=>1,'default'=>null, 'max_len'=>255), - 'RecipientZipcode' => Array('type'=>'string','required'=>1,'default'=>null, 'max_len'=>255), + 'RecipientZipcode' => Array ('type' => 'string', 'required'=>1,'default'=>null, 'max_len'=>255), - 'RecipientCountry' => Array( + 'RecipientCountry' => Array ( - 'type' => 'string', - 'formatter' => 'kOptionsFormatter', - 'options_sql' => ' SELECT IF(l%2$s_Name = "", l%3$s_Name, l%2$s_Name) AS Name, IsoCode - FROM '.TABLE_PREFIX.'CountryStates - WHERE Type = ' . DESTINATION_TYPE_COUNTRY . ' - ORDER BY Name', - 'option_key_field' => 'IsoCode', 'option_title_field' => 'Name', - 'not_null' => 1, 'required' => 1, 'default' => 'USA' - ), + 'type' => 'string', + 'formatter' => 'kOptionsFormatter', + 'options_sql' => ' SELECT IF(l%2$s_Name = "", l%3$s_Name, l%2$s_Name) AS Name, IsoCode + FROM '.TABLE_PREFIX.'CountryStates + WHERE Type = ' . DESTINATION_TYPE_COUNTRY . ' + ORDER BY Name', + 'option_key_field' => 'IsoCode', 'option_title_field' => 'Name', + 'not_null' => 1, 'required' => 1, 'default' => 'USA' + ), - 'RecipientPhone' => Array('type'=>'string','default'=>null, 'max_len'=>255), + 'RecipientPhone' => Array ('type' => 'string', 'default'=>null, 'max_len'=>255), - 'Message' => Array('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => null), + 'Message' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => null), - 'Code' => Array('type'=>'string','required'=>1,'default'=>null, 'max_len'=>255, 'unique'=>Array('Code')), + 'Code' => Array ('type' => 'string', 'required'=>1,'default'=>null, 'max_len'=>255, 'unique'=>Array ('Code')), - 'AddDate' => Array('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#',), + 'AddDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#',), - 'Expiration' => Array('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null,), + 'Expiration' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null,), - 'Amount' => Array('type'=>'double', 'default' => null, 'required' => 1, 'min_value_exc' => 0), + 'Amount' => Array ('type' => 'double', 'default' => null, 'required' => 1, 'min_value_exc' => 0), - 'Debit' => Array('type'=>'double', 'default' => null), + 'Debit' => Array ('type' => 'double', 'default' => null), - ), + ), - 'Grids' => Array ( - 'Default' => Array ( + 'Grids' => Array ( + 'Default' => Array ( - 'Icons' => Array( + 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disabled.png', - 1 => 'icon16_item.png', - 2 => 'icon16_pending.png', - 'module' => 'core', - ), - 'Fields' => Array ( + 'default' => 'icon16_item.png', + 0 => 'icon16_disabled.png', + 1 => 'icon16_item.png', + 2 => 'icon16_pending.png', + 'module' => 'core', + ), + 'Fields' => Array ( - 'GiftCertificateId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'GiftCertificateId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'Code' => Array ('filter_block' => 'grid_like_filter', 'width' => 100, ), - 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 100, ), - 'Debit' => Array ('title' => 'column:la_fld_RemainingAmount', 'filter_block' => 'grid_range_filter', 'width' => 160, ), - 'Amount' => Array ('filter_block' => 'grid_range_filter', 'width' => 100, ), - 'Expiration' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), - ), - ), - ), - ); \ No newline at end of file + 'Code' => Array ('filter_block' => 'grid_like_filter', 'width' => 100, ), + 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 100, ), + 'Debit' => Array ('title' => 'column:la_fld_RemainingAmount', 'filter_block' => 'grid_range_filter', 'width' => 160, ), + 'Amount' => Array ('filter_block' => 'grid_range_filter', 'width' => 100, ), + 'Expiration' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ), + ), + ), + ), +); \ No newline at end of file Index: modules/in-commerce/units/taxes/taxes_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/taxes/taxes_config.php (revision 15601) +++ modules/in-commerce/units/taxes/taxes_config.php (revision ) @@ -11,119 +11,110 @@ * See http://www.in-portal.org/commercial-license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'tax', + 'Prefix' => 'tax', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'TaxesEventHandler', 'file' => 'taxes_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'TaxesEventHandler', 'file' => 'taxes_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'TaxesTagProcessor', 'file' => 'taxes_tag_processor.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'TaxesTagProcessor', 'file' => 'taxes_tag_processor.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'hooks' => Array (), + - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), - /*'Hooks' => Array ( - Array ( - 'Mode' => hBEFORE, - 'Conditional' => true, - 'HookToPrefix' => 'tax', - 'HookToSpecial' => '', - 'HookToEvent' => Array ( 'onEdit' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnLoadZoneForm', - ), - ),*/ - 'IDField' => 'TaxZoneId', + 'IDField' => 'TaxZoneId', - 'TitleField' => 'Name', + 'TitleField' => 'Name', - 'TitlePresets' => Array ( + 'TitlePresets' => Array ( - 'default' => Array ( + 'default' => Array ( - 'new_status_labels' => Array ('tax' => '!la_title_AddingTaxZone!'), - 'edit_status_labels' => Array ('tax' => '!la_title_EditingTaxZone!'), - ), - 'taxes_list' => Array ( - 'prefixes' => Array ('tax_List'), 'format' => "!la_title_Taxes!", - ), - 'taxes_edit' => Array ( - 'prefixes' => Array ('tax'), - 'new_titlefield' => Array ('tax' => '!la_title_NewTax!'), - 'format' => "#tax_status# '#tax_titlefield#' - !la_title_General!", - ), - ), + 'new_status_labels' => Array ('tax' => '!la_title_AddingTaxZone!'), + 'edit_status_labels' => Array ('tax' => '!la_title_EditingTaxZone!'), + ), + 'taxes_list' => Array ( + 'prefixes' => Array ('tax_List'), 'format' => "!la_title_Taxes!", + ), + 'taxes_edit' => Array ( + 'prefixes' => Array ('tax'), + 'new_titlefield' => Array ('tax' => '!la_title_NewTax!'), + 'format' => "#tax_status# '#tax_titlefield#' - !la_title_General!", + ), + ), - 'PermSection' => Array ('main' => 'in-commerce:taxes'), + 'PermSection' => Array ('main' => 'in-commerce:taxes'), - 'Sections' => Array ( + 'Sections' => Array ( - 'in-commerce:taxes' => Array ( + 'in-commerce:taxes' => Array ( - 'parent' => 'in-commerce:setting_folder', + 'parent' => 'in-commerce:setting_folder', - 'icon' => 'conf_taxes', + 'icon' => 'conf_taxes', - 'label' => 'la_tab_Taxes', + 'label' => 'la_tab_Taxes', - 'url' => Array ('t' => 'in-commerce/taxes/taxes_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-commerce/taxes/taxes_list', 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit', 'delete'), + 'permissions' => Array ('view', 'add', 'edit', 'delete'), - 'priority' => 6, + 'priority' => 6, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - 'TableName' => TABLE_PREFIX.'TaxZones', + 'TableName' => TABLE_PREFIX.'TaxZones', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - 'SubItems' => Array ('taxdst'), + 'SubItems' => Array ('taxdst'), - 'ListSQLs' => Array ( '' => 'SELECT %1$s.* %2$s FROM %s'), - // key - special, value - list select sql + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM %s' + ), - - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( - 'Sorting' => Array ('Name' => 'asc', 'TaxValue' => 'asc'), - ) - ), + '' => Array ( + 'Sorting' => Array ('Name' => 'asc', 'TaxValue' => 'asc'), + ) + ), + - 'Fields' => Array ( + 'Fields' => Array ( - 'TaxZoneId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'Name' => Array ('type' => 'string', 'not_null' => 1, 'default' => '', 'required' => 1, 'max_len' =>100, 'error_msgs' => Array ('required' => 'Please fill in')), - 'Type' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (1 => 'la_ByCountry', 2 => 'la_ByState', 3 => 'la_ByZIP'), 'not_null' => 1, 'default' => 1), - 'TaxValue' => Array ('type' => 'double', 'not_null' => 1, 'default' => 0), - 'ApplyToShipping' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' =>Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, - 'default' => 0, 'not_null' => 1, - ), - 'ApplyToProcessing' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' =>Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, - 'default' => 0, 'not_null' => 1, - ), - ), + 'TaxZoneId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'Name' => Array ('type' => 'string', 'not_null' => 1, 'default' => '', 'required' => 1, 'max_len' =>100, 'error_msgs' => Array ('required' => 'Please fill in')), + 'Type' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (1 => 'la_ByCountry', 2 => 'la_ByState', 3 => 'la_ByZIP'), 'not_null' => 1, 'default' => 1), + 'TaxValue' => Array ('type' => 'double', 'not_null' => 1, 'default' => 0), + 'ApplyToShipping' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' =>Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, + 'default' => 0, 'not_null' => 1, + ), + 'ApplyToProcessing' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' =>Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, + 'default' => 0, 'not_null' => 1, + ), + ), - 'Grids' => Array ( + 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 0 => 'icon16_disabled.png', - 1 => 'icon16_item.png', - 'module' => 'core', - 'module' => 'core', - ), - 'Fields' => Array ( - 'TaxZoneId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 50, ), - 'Name' => Array ( 'title' => 'column:la_fld_TaxZoneName', 'filter_block' => 'grid_like_filter', 'width' => 200, ), - 'TaxValue' => Array ( 'title' => 'column:la_fld_TaxValue', 'filter_block' => 'grid_range_filter', 'width' => 110, ), - 'Type' => Array ( 'title' => 'column:la_fld_ZoneType', 'filter_block' => 'grid_options_filter', 'width' => 90, ), - 'ApplyToShipping' => Array ( 'title' => 'column:la_fld_TaxApplyToShipping', 'filter_block' => 'grid_options_filter', 'width' => 140, ), - 'ApplyToProcessing' => Array ( 'title' => 'column:la_fld_TaxApplyToProcessing', 'filter_block' => 'grid_options_filter', 'width' => 150, ), - ), - ), - ), - ); \ No newline at end of file + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 0 => 'icon16_disabled.png', + 1 => 'icon16_item.png', + 'module' => 'core', + 'module' => 'core', + ), + 'Fields' => Array ( + 'TaxZoneId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 50, ), + 'Name' => Array ( 'title' => 'column:la_fld_TaxZoneName', 'filter_block' => 'grid_like_filter', 'width' => 200, ), + 'TaxValue' => Array ( 'title' => 'column:la_fld_TaxValue', 'filter_block' => 'grid_range_filter', 'width' => 110, ), + 'Type' => Array ( 'title' => 'column:la_fld_ZoneType', 'filter_block' => 'grid_options_filter', 'width' => 90, ), + 'ApplyToShipping' => Array ( 'title' => 'column:la_fld_TaxApplyToShipping', 'filter_block' => 'grid_options_filter', 'width' => 140, ), + 'ApplyToProcessing' => Array ( 'title' => 'column:la_fld_TaxApplyToProcessing', 'filter_block' => 'grid_options_filter', 'width' => 150, ), + ), + ), + ), +); \ No newline at end of file Index: modules/in-bulletin/units/private_messages/private_messages_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-bulletin/units/private_messages/private_messages_config.php (revision 15601) +++ modules/in-bulletin/units/private_messages/private_messages_config.php (revision ) @@ -12,101 +12,91 @@ * See http://www.in-portal.org/license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( - 'Prefix' => 'private-message', +$config = Array ( + 'Prefix' => 'private-message', - 'ItemClass' => Array('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class' => 'PrivateMessageEventHandler', 'file' => 'private_message_eh.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'PrivateMessageEventHandler', 'file' => 'private_message_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class' => 'PrivateMessageTagProcessor', 'file' => 'private_message_tp.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'PrivateMessageTagProcessor', 'file' => 'private_message_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' => 'PmId', - 'StatusField' => Array ('Status'), - 'TitleField' => 'Subject', + 'IDField' => 'PmId', + 'StatusField' => Array ('Status'), + 'TitleField' => 'Subject', - 'PermSection' => Array('main' => 'in-bulletin:private_messages',), + 'PermSection' => Array ('main' => 'in-bulletin:private_messages',), - 'TableName' => TABLE_PREFIX.'PrivateMessages', + 'TableName' => TABLE_PREFIX.'PrivateMessages', - 'CalculatedFields' => Array ( - '' => Array ( - 'Subject' => 'pmb.Subject', - 'Body' => 'pmb.Body', - ), - ), + 'CalculatedFields' => Array ( + '' => Array ( + 'Subject' => 'pmb.Subject', + 'Body' => 'pmb.Body', + ), + ), - 'ListSQLs' => Array ( - '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'%3$sPrivateMessageBody pmb ON pmb.PMBodyId = %1$s.PMBodyId - LEFT JOIN '.TABLE_PREFIX.'Users from_user ON from_user.PortalUserId = %1$s.FromId - LEFT JOIN '.TABLE_PREFIX.'Users to_user ON to_user.PortalUserId = %1$s.ToId', - ), + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'%3$sPrivateMessageBody pmb ON pmb.PMBodyId = %1$s.PMBodyId + LEFT JOIN '.TABLE_PREFIX.'Users from_user ON from_user.PortalUserId = %1$s.FromId + LEFT JOIN '.TABLE_PREFIX.'Users to_user ON to_user.PortalUserId = %1$s.ToId', + ), - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array( + '' => Array ( - 'ForcedSorting' => Array('CreatedOn' => 'desc'), + 'ForcedSorting' => Array ('CreatedOn' => 'desc'), - ), - ), + ), + ), - 'ItemSQLs' => Array ( - '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'%3$sPrivateMessageBody pmb ON pmb.PMBodyId = %1$s.PMBodyId - LEFT JOIN '.TABLE_PREFIX.'Users from_user ON from_user.PortalUserId = %1$s.FromId - LEFT JOIN '.TABLE_PREFIX.'Users to_user ON to_user.PortalUserId = %1$s.ToId', - ), - - 'SubItems' => Array('private-message-body'), + 'SubItems' => Array ('private-message-body'), - 'CalculatedFields' => Array ( - '' => Array ( - 'Subject' => 'pmb.Subject', - 'Body' => 'pmb.Body', - 'Options' => 'pmb.Options', + 'CalculatedFields' => Array ( + '' => Array ( + 'Subject' => 'pmb.Subject', + 'Body' => 'pmb.Body', + 'Options' => 'pmb.Options', - 'FromName' => 'IF (ISNULL(from_user.Username), IF (%1$s.FromId = ' . USER_ROOT . ', "root", IF (%1$s.FromId = ' . USER_GUEST . ', "Guest", "n/a")), from_user.Username)', - 'ToName' => 'IF (ISNULL(to_user.Username), IF (%1$s.ToId = ' . USER_ROOT . ', "root", IF (%1$s.ToId = ' . USER_GUEST . ', "Guest", "n/a")), to_user.Username)', + 'FromName' => 'IF (ISNULL(from_user.Username), IF (%1$s.FromId = ' . USER_ROOT . ', "root", IF (%1$s.FromId = ' . USER_GUEST . ', "Guest", "n/a")), from_user.Username)', + 'ToName' => 'IF (ISNULL(to_user.Username), IF (%1$s.ToId = ' . USER_ROOT . ', "root", IF (%1$s.ToId = ' . USER_GUEST . ', "Guest", "n/a")), to_user.Username)', - 'FromFullName' => 'TRIM(CONCAT(from_user.FirstName, " ", from_user.LastName))', - 'ToFullName' => 'TRIM(CONCAT(to_user.FirstName, " ", to_user.LastName))', - ), - ), + 'FromFullName' => 'TRIM(CONCAT(from_user.FirstName, " ", from_user.LastName))', + 'ToFullName' => 'TRIM(CONCAT(to_user.FirstName, " ", to_user.LastName))', + ), + ), - 'Fields' => Array ( - 'PmId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Fields' => Array ( + 'PmId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'FromId' => Array('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!lu_error_UserNotFound!'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Username', 'required' => 1, 'default' => null), + 'FromId' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!lu_error_UserNotFound!'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Username', 'required' => 1, 'default' => null), - 'ToId' => Array('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!lu_error_UserNotFound!'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Username', 'required' => 1, 'default' => null), + 'ToId' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!lu_error_UserNotFound!'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Username', 'required' => 1, 'default' => null), - 'FolderId' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'lu_Inbox', 1 => 'lu_Sent'), 'use_phrases' => 1, 'not_null' => 1, 'default' => PM_FOLDER_SENT), - 'Status' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'lu_opt_MessageUnread', 1 => 'lu_opt_MessageViewed', 2 => 'lu_opt_MessageRead', 3 => 'lu_opt_MessageReplied', 4 => 'lu_opt_MessageSent'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 0), - 'PMBodyId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - ), + 'FolderId' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'lu_Inbox', 1 => 'lu_Sent'), 'use_phrases' => 1, 'not_null' => 1, 'default' => PM_FOLDER_SENT), + 'Status' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'lu_opt_MessageUnread', 1 => 'lu_opt_MessageViewed', 2 => 'lu_opt_MessageRead', 3 => 'lu_opt_MessageReplied', 4 => 'lu_opt_MessageSent'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 0), + 'PMBodyId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + ), - 'VirtualFields' => Array ( - 'FromName' => Array ('type' => 'string', 'default' => ''), - 'FromFullName' => Array ('type' => 'string', 'default' => ''), - 'ToName' => Array ('type' => 'string', 'default' => ''), - 'ToFullName' => Array ('type' => 'string', 'default' => ''), - 'Subject' => Array ('type' => 'string', 'default' => ''), - 'Body' => Array ('type' => 'string', 'required' => 1, 'default' => ''), - 'Options' => Array ('type' => 'string', 'default' => 0), + 'VirtualFields' => Array ( + 'FromName' => Array ('type' => 'string', 'default' => ''), + 'FromFullName' => Array ('type' => 'string', 'default' => ''), + 'ToName' => Array ('type' => 'string', 'default' => ''), + 'ToFullName' => Array ('type' => 'string', 'default' => ''), + 'Subject' => Array ('type' => 'string', 'default' => ''), + 'Body' => Array ('type' => 'string', 'required' => 1, 'default' => ''), + 'Options' => Array ('type' => 'string', 'default' => 0), - 'DisableBBCodes' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), - 'DisableSmileys' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), - 'ShowSignatures' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, 'default' => 1), - ), + 'DisableBBCodes' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), + 'DisableSmileys' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 0), + 'ShowSignatures' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, 'default' => 1), + ), - - - ); \ No newline at end of file +); \ No newline at end of file Index: modules/in-commerce/units/product_options/product_options_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/product_options/product_options_config.php (revision 15601) +++ modules/in-commerce/units/product_options/product_options_config.php (revision ) @@ -13,94 +13,92 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'po', + 'Prefix' => 'po', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'ProductOptionsEventHandler', 'file' => 'product_options_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'ProductOptionsEventHandler', 'file' => 'product_options_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'ProductOptionsTagProcessor', 'file' => 'product_options_tag_processor.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'ProductOptionsTagProcessor', 'file' => 'product_options_tag_processor.php', 'build_event' => 'OnBuild'), + - 'RegisterClasses' => Array ( + 'RegisterClasses' => Array ( - Array ('pseudo' => 'kProductOptionsHelper', 'class' => 'kProductOptionsHelper', 'file' => 'product_options_helper.php', 'build_event' => ''), - ), + Array ('pseudo' => 'kProductOptionsHelper', 'class' => 'kProductOptionsHelper', 'file' => 'product_options_helper.php', 'build_event' => ''), + ), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'Hooks' => Array ( - ), - 'AggregateTags' => Array ( - Array ( - 'AggregateTo' => '#PARENT#', - 'AggregatedTagName' => 'ListOptions', - 'LocalTagName' => 'ListOptions', - ), - ), + 'AggregateTags' => Array ( + Array ( + 'AggregateTo' => '#PARENT#', + 'AggregatedTagName' => 'ListOptions', + 'LocalTagName' => 'ListOptions', + ), + ), - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), + - 'TitleField' => 'Name', + 'TitleField' => 'Name', - 'IDField' => 'ProductOptionId', + 'IDField' => 'ProductOptionId', - 'TableName' => TABLE_PREFIX.'ProductOptions', + 'TableName' => TABLE_PREFIX.'ProductOptions', - 'ForeignKey' => 'ProductId', + 'ForeignKey' => 'ProductId', - 'ParentTableKey' => 'ProductId', - 'ParentPrefix' => 'p', + 'ParentTableKey' => 'ProductId', + 'ParentPrefix' => 'p', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - 'SubItems' => Array ('poc'), + 'SubItems' => Array ('poc'), - 'ListSQLs' => Array ( '' => 'SELECT * FROM %s', - ), // key - special, value - list select sql - 'ItemSQLs' => Array ( '' => 'SELECT * FROM %s', + + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s', - ), + ), + - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( - 'Sorting' => Array ('Name' => 'asc'), - 'ForcedSorting' => Array ('Priority' => 'desc'), - ) - ), + '' => Array ( + 'Sorting' => Array ('Name' => 'asc'), + 'ForcedSorting' => Array ('Priority' => 'desc'), + ) + ), + - 'Fields' => Array ( - 'ProductOptionId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ProductId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Name' => Array ('type' => 'string', 'required' => 1, 'max_len' => 255, 'not_null' => 1, 'default' => '',), - 'OptionType' => Array ('type' => 'int', 'required' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' =>Array (1 => '!la_type_select!', 5 => '!la_type_text!', 4 => '!la_type_textarea!', 3 => '!la_type_radio!', 6 => '!la_type_checkbox!' /*, 2 => '!la_type_password!' */), 'not_null' => 1, 'default' => 0), - 'Required' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), - 'Listable' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), - 'Priority' => Array ('type' => 'int', 'not_null' =>1, 'default' =>0), - 'Values' => Array ('type' => 'string', 'default' => NULL), - 'Prices' => Array ('type' => 'string', 'default' => NULL), - 'PriceTypes' => Array ('type' => 'string', 'default' => NULL), - ), + 'Fields' => Array ( + 'ProductOptionId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ProductId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Name' => Array ('type' => 'string', 'required' => 1, 'max_len' => 255, 'not_null' => 1, 'default' => '',), + 'OptionType' => Array ('type' => 'int', 'required' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' =>Array (1 => '!la_type_select!', 5 => '!la_type_text!', 4 => '!la_type_textarea!', 3 => '!la_type_radio!', 6 => '!la_type_checkbox!' /*, 2 => '!la_type_password!' */), 'not_null' => 1, 'default' => 0), + 'Required' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), + 'Listable' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), + 'Priority' => Array ('type' => 'int', 'not_null' =>1, 'default' =>0), + 'Values' => Array ('type' => 'string', 'default' => NULL), + 'Prices' => Array ('type' => 'string', 'default' => NULL), + 'PriceTypes' => Array ('type' => 'string', 'default' => NULL), + ), - 'VirtualFields' => Array ( - ), - - 'Grids' => Array ( + 'Grids' => Array ( - - 'Default' => Array ( + 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 'module' => 'core', - ), // icons for each StatusField values, if no matches or no statusfield selected, then "default" icon is used - 'Fields' => Array ( - 'ProductOptionId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter'), - 'Name' => Array ( 'data_block' => 'option_name_td', 'filter_block' => 'grid_like_filter'), - 'OptionType' => Array ( 'filter_block' => 'grid_options_filter'), - 'Required' => Array ( 'filter_block' => 'grid_options_filter'), + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 'module' => 'core', + ), // icons for each StatusField values, if no matches or no statusfield selected, then "default" icon is used + 'Fields' => Array ( + 'ProductOptionId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter'), + 'Name' => Array ( 'data_block' => 'option_name_td', 'filter_block' => 'grid_like_filter'), + 'OptionType' => Array ( 'filter_block' => 'grid_options_filter'), + 'Required' => Array ( 'filter_block' => 'grid_options_filter'), -// 'Listable' => Array ('filter_block' => 'grid_options_filter'), +// 'Listable' => Array ('filter_block' => 'grid_options_filter'), - ), + ), - - ), - ), + ), + ), - - ); \ No newline at end of file +); \ No newline at end of file Index: modules/in-commerce/units/brackets/brackets_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/brackets/brackets_config.php (revision 15601) +++ modules/in-commerce/units/brackets/brackets_config.php (revision ) @@ -13,49 +13,54 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array( +$config = Array ( - 'Prefix' => 'br', + 'Prefix' => 'br', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'BracketsEventHandler','file'=>'brackets_event_handler.php','build_event'=>'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'BracketsEventHandler', 'file' => 'brackets_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class'=>'BracketsTagProcessor','file'=>'brackets_tag_processor.php','build_event'=>'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'BracketsTagProcessor', 'file' => 'brackets_tag_processor.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, + - 'Hooks' => Array( + 'Hooks' => Array ( - Array( + Array ( - 'Mode' => hBEFORE, - 'Conditional' => true, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '', + 'Mode' => hBEFORE, + 'Conditional' => true, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '', - 'HookToEvent' => Array('OnPreSave'), + 'HookToEvent' => Array ('OnPreSave'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnArrange', - ), - ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnArrange', + ), + ), + - 'QueryString' => Array( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), + - 'IDField' => 'BracketId', + 'IDField' => 'BracketId', - 'TableName' => TABLE_PREFIX.'ShippingBrackets', + 'TableName' => TABLE_PREFIX.'ShippingBrackets', - 'ForeignKey' => 'ShippingTypeID', + 'ForeignKey' => 'ShippingTypeID', - 'ParentTableKey' => 'ShippingID', + 'ParentTableKey' => 'ShippingID', - 'ParentPrefix' => 's', + 'ParentPrefix' => 's', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - 'SubItems' => Array('sc'), + 'SubItems' => Array ('sc'), - 'ListSQLs' => Array( ''=> 'SELECT * FROM %s'), - // key - special, value - list select sql - 'ItemSQLs' => Array( ''=> 'SELECT * FROM %s'), + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s' + ), - 'Fields' => Array ( + 'Fields' => Array ( - 'BracketId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'BracketId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'ShippingTypeID' => Array('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'ShippingTypeID' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'Start' => Array('type' => 'double', 'formatter'=>'kFormatter', 'not_null' => true, 'default' => 0), + 'Start' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'not_null' => true, 'default' => 0), - 'End' => Array('type' => 'double', 'formatter'=>'kFormatter', 'not_null' => true, 'default' => 0), + 'End' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'not_null' => true, 'default' => 0), - ), - ); \ No newline at end of file + ), +); \ No newline at end of file Index: modules/in-link/units/link_validation/link_validation_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-link/units/link_validation/link_validation_config.php (revision 15601) +++ modules/in-link/units/link_validation/link_validation_config.php (revision ) @@ -14,158 +14,158 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array ( - 'Prefix' => 'link-validation', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'LinkValidationEventHandler', 'file' => 'link_validation_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'LinkValidationTagProcessor', 'file' => 'link_validation_tp.php', 'build_event' => 'OnBuild'), +$config = Array ( + 'Prefix' => 'link-validation', + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'EventHandlerClass' => Array ('class' => 'LinkValidationEventHandler', 'file' => 'link_validation_eh.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'LinkValidationTagProcessor', 'file' => 'link_validation_tp.php', 'build_event' => 'OnBuild'), - 'AutoLoad' => true, + 'AutoLoad' => true, - 'Hooks' => Array ( - Array ( - 'Mode' => hAFTER, - 'Conditional' => true, - 'HookToPrefix' => 'l', - 'HookToSpecial' => '*', + 'Hooks' => Array ( + Array ( + 'Mode' => hAFTER, + 'Conditional' => true, + 'HookToPrefix' => 'l', + 'HookToSpecial' => '*', - 'HookToEvent' => Array('OnAfterConfigRead'), + 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnPrepareLinkEditing', - ), - ), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnPrepareLinkEditing', + ), + ), - 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 'QueryString' => Array ( + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), - 'ScheduledTasks' => Array ( - 'link_validation' => Array ('EventName' => 'OnCronValidation', 'RunSchedule' => '0 0 * * *'), - ), + 'ScheduledTasks' => Array ( + 'link_validation' => Array ('EventName' => 'OnCronValidation', 'RunSchedule' => '0 0 * * *'), + ), - 'IDField' => 'LinkValidationId', + 'IDField' => 'LinkValidationId', - 'TableName' => TABLE_PREFIX.'LinkValidation', + 'TableName' => TABLE_PREFIX.'LinkValidation', - 'StatusField' => Array ('ValidationStatus', 'LinkStatus'), + 'StatusField' => Array ('ValidationStatus', 'LinkStatus'), - 'TitlePresets' => Array ( - 'link_validation_list' => Array ('prefixes' => Array ('link-validation_List'), 'format' => "!la_tab_LinkValidation!"), - 'link_validation_progress' => Array ('format' => '!la_tab_ValidatingLinks!'), - ), + 'TitlePresets' => Array ( + 'link_validation_list' => Array ('prefixes' => Array ('link-validation_List'), 'format' => "!la_tab_LinkValidation!"), + 'link_validation_progress' => Array ('format' => '!la_tab_ValidatingLinks!'), + ), - 'PermSection' => Array('main' => 'in-link:link_validation'), + 'PermSection' => Array ('main' => 'in-link:link_validation'), - 'Sections' => Array ( - 'in-link:link_validation' => Array ( + 'Sections' => Array ( + 'in-link:link_validation' => Array ( - 'parent' => 'in-link', + 'parent' => 'in-link', - 'icon' => 'in-link:validate', + 'icon' => 'in-link:validate', - 'label' => 'la_tab_LinkValidation', + 'label' => 'la_tab_LinkValidation', - 'url' => Array('t' => 'in-link/link_validation/link_validation_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-link/link_validation/link_validation_list', 'pass' => 'm'), - 'permissions' => Array('view', 'advanced:continue', 'advanced:restart', 'advanced:validate', 'advanced:reset'), + 'permissions' => Array ('view', 'advanced:continue', 'advanced:restart', 'advanced:validate', 'advanced:reset'), - 'priority' => 3, + 'priority' => 3, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - 'ListSQLs' => Array ( - '' => ' SELECT %1$s.* %2$s - FROM ' . TABLE_PREFIX . 'Link l - LEFT JOIN %1$s ON %1$s.LinkId = l.LinkId - LEFT JOIN ' . TABLE_PREFIX . 'CategoryItems ci ON ci.ItemResourceId = l.ResourceId - LEFT JOIN '.TABLE_PREFIX.'Categories c ON c.CategoryId = ci.CategoryId', - ), + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM ' . TABLE_PREFIX . 'Link l + LEFT JOIN %1$s ON %1$s.LinkId = l.LinkId + LEFT JOIN ' . TABLE_PREFIX . 'CategoryItems ci ON ci.ItemResourceId = l.ResourceId + LEFT JOIN '.TABLE_PREFIX.'Categories c ON c.CategoryId = ci.CategoryId', + ), - 'ListSortings' => Array ( - '' => Array ( - 'Sorting' => Array ('LinkValidationId' => 'desc'), - ) - ), + 'ListSortings' => Array ( + '' => Array ( + 'Sorting' => Array ('LinkValidationId' => 'desc'), + ) + ), - 'CalculatedFields' => Array ( - '' => Array ( - 'ForeignLinkId' => 'l.LinkId', - 'LinkName' => 'l.Name', - 'LinkUrl' => 'l.Url', - 'LinkCreatedOn' => 'l.CreatedOn', - 'LinkStatus' => 'l.Status', - 'LinkValidationStatus' => 'IF(%1$s.ValidationStatus IS NULL, ' . LINK_VALIDATION_NOT_VALIDATED . ', %1$s.ValidationStatus)', + 'CalculatedFields' => Array ( + '' => Array ( + 'ForeignLinkId' => 'l.LinkId', + 'LinkName' => 'l.Name', + 'LinkUrl' => 'l.Url', + 'LinkCreatedOn' => 'l.CreatedOn', + 'LinkStatus' => 'l.Status', + 'LinkValidationStatus' => 'IF(%1$s.ValidationStatus IS NULL, ' . LINK_VALIDATION_NOT_VALIDATED . ', %1$s.ValidationStatus)', - 'CategoryId' => 'ci.CategoryId', - ), - ), + 'CategoryId' => 'ci.CategoryId', + ), + ), - 'Fields' => Array ( - 'LinkValidationId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'LinkId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ValidationTime' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), - 'ValidationCode' => Array ( - 'type' => 'string', - 'formatter' => 'kOptionsFormatter', 'options' => Array (200 => '200 OK', 301 => '301 Moved Permanently', 302 => '302 Found', 400 => '400 Bad Request', 403 => '403 Forbidden', 404 => '404 Not Found', 500 => '500 Internal Server Error'), - 'max_len' => 50, 'default' => NULL - ), - 'ValidationStatus' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'lc_Text_Not_Validated', 1 => 'lc_Text_Valid', 2 => 'lc_Text_Invalid'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0 - ), - ), + 'Fields' => Array ( + 'LinkValidationId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'LinkId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ValidationTime' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), + 'ValidationCode' => Array ( + 'type' => 'string', + 'formatter' => 'kOptionsFormatter', 'options' => Array (200 => '200 OK', 301 => '301 Moved Permanently', 302 => '302 Found', 400 => '400 Bad Request', 403 => '403 Forbidden', 404 => '404 Not Found', 500 => '500 Internal Server Error'), + 'max_len' => 50, 'default' => NULL + ), + 'ValidationStatus' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'lc_Text_Not_Validated', 1 => 'lc_Text_Valid', 2 => 'lc_Text_Invalid'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0 + ), + ), - 'VirtualFields' => Array ( - 'ForeignLinkId' => Array ('type' => 'int', 'default' => 0), + 'VirtualFields' => Array ( + 'ForeignLinkId' => Array ('type' => 'int', 'default' => 0), - 'LinkName' => Array('type' => 'string', /*'formatter' => 'kMultiLanguage',*/ 'max_len' => 255, 'default' => ''), + 'LinkName' => Array ('type' => 'string', /*'formatter' => 'kMultiLanguage',*/ 'max_len' => 255, 'default' => ''), - 'LinkUrl' => Array ('type' => 'string', 'default' => ''), + 'LinkUrl' => Array ('type' => 'string', 'default' => ''), - 'LinkCreatedOn' => Array('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + 'LinkCreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'LinkStatus' => Array('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, 'default' => 2), + 'LinkStatus' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, 'default' => 2), - 'LinkValidationStatus' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'lc_Text_Not_Validated', 1 => 'lc_Text_Valid', 2 => 'lc_Text_Invalid'), 'use_phrases' => 1, - 'default' => 0 - ), + 'LinkValidationStatus' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'lc_Text_Not_Validated', 1 => 'lc_Text_Valid', 2 => 'lc_Text_Invalid'), 'use_phrases' => 1, + 'default' => 0 + ), - // for category path drawing - 'CategoryId' => Array ('type' => 'int', 'default' => 0), - 'CachedNavbar' => Array ('type' => 'string', 'default' => ''), - ), + // for category path drawing + 'CategoryId' => Array ('type' => 'int', 'default' => 0), + 'CachedNavbar' => Array ('type' => 'string', 'default' => ''), + ), - 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_link.png', - // for valid links - LINK_VALIDATION_VALID . '_' . STATUS_DISABLED => 'icon16_valid_disabled.gif', - LINK_VALIDATION_VALID . '_' . STATUS_ACTIVE => 'icon16_valid.gif', - LINK_VALIDATION_VALID . '_' . STATUS_PENDING => 'icon16_valid_pend.gif', + 'Grids' => Array ( + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_link.png', + // for valid links + LINK_VALIDATION_VALID . '_' . STATUS_DISABLED => 'icon16_valid_disabled.gif', + LINK_VALIDATION_VALID . '_' . STATUS_ACTIVE => 'icon16_valid.gif', + LINK_VALIDATION_VALID . '_' . STATUS_PENDING => 'icon16_valid_pend.gif', - // for invalid links - LINK_VALIDATION_INVALID . '_' . STATUS_DISABLED => 'icon16_invalid_disabled.gif', - LINK_VALIDATION_INVALID . '_' . STATUS_ACTIVE => 'icon16_invalid.gif', - LINK_VALIDATION_INVALID . '_' . STATUS_PENDING => 'icon16_invalid_pend.gif', + // for invalid links + LINK_VALIDATION_INVALID . '_' . STATUS_DISABLED => 'icon16_invalid_disabled.gif', + LINK_VALIDATION_INVALID . '_' . STATUS_ACTIVE => 'icon16_invalid.gif', + LINK_VALIDATION_INVALID . '_' . STATUS_PENDING => 'icon16_invalid_pend.gif', - // for not validated links - LINK_VALIDATION_NOT_VALIDATED . '_' . STATUS_DISABLED => 'icon16_not_validated_disabled.gif', - LINK_VALIDATION_NOT_VALIDATED . '_' . STATUS_ACTIVE => 'icon16_not_validated.gif', - LINK_VALIDATION_NOT_VALIDATED . '_' . STATUS_PENDING => 'icon16_not_validated_pend.gif', + // for not validated links + LINK_VALIDATION_NOT_VALIDATED . '_' . STATUS_DISABLED => 'icon16_not_validated_disabled.gif', + LINK_VALIDATION_NOT_VALIDATED . '_' . STATUS_ACTIVE => 'icon16_not_validated.gif', + LINK_VALIDATION_NOT_VALIDATED . '_' . STATUS_PENDING => 'icon16_not_validated_pend.gif', - '_' . STATUS_DISABLED => 'icon16_not_validated_disabled.gif', - '_' . STATUS_ACTIVE => 'icon16_not_validated.gif', - '_' . STATUS_PENDING => 'icon16_not_validated_pend.gif', - ), + '_' . STATUS_DISABLED => 'icon16_not_validated_disabled.gif', + '_' . STATUS_ACTIVE => 'icon16_not_validated.gif', + '_' . STATUS_PENDING => 'icon16_not_validated_pend.gif', + ), - 'Fields' => Array ( - 'ForeignLinkId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'module' => 'In-Link', 'width' => 60, ), - 'LinkName' => Array ('data_block' => 'grid_link_name_td', 'filter_block' => 'grid_like_filter', 'first_chars' => 30, 'width' => 180, ), - 'LinkUrl' => Array ('title' => 'la_col_LinkUrl', 'data_block' => 'grid_url_td', 'filter_block' => 'grid_like_filter', 'width' => 200, ), - 'LinkValidationStatus' => Array ('title' => 'column:la_fld_Status', 'filter_block' => 'grid_options_filter', 'width' => 87, ), - 'ValidationCode' => Array ('title' => 'la_col_ValidationCode', 'filter_block' => 'grid_options_filter', 'width' => 155, ), - 'ValidationTime' => Array ('title' => 'la_col_ValidatedOn', 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), - 'LinkCreatedOn' => Array ('title' => 'column:la_fld_CreatedOn', 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), - ), - ), - ), - ); \ No newline at end of file + 'Fields' => Array ( + 'ForeignLinkId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'module' => 'In-Link', 'width' => 60, ), + 'LinkName' => Array ('data_block' => 'grid_link_name_td', 'filter_block' => 'grid_like_filter', 'first_chars' => 30, 'width' => 180, ), + 'LinkUrl' => Array ('title' => 'la_col_LinkUrl', 'data_block' => 'grid_url_td', 'filter_block' => 'grid_like_filter', 'width' => 200, ), + 'LinkValidationStatus' => Array ('title' => 'column:la_fld_Status', 'filter_block' => 'grid_options_filter', 'width' => 87, ), + 'ValidationCode' => Array ('title' => 'la_col_ValidationCode', 'filter_block' => 'grid_options_filter', 'width' => 155, ), + 'ValidationTime' => Array ('title' => 'la_col_ValidatedOn', 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), + 'LinkCreatedOn' => Array ('title' => 'column:la_fld_CreatedOn', 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), + ), + ), + ), +); \ No newline at end of file Index: modules/in-news/units/articles/articles_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-news/units/articles/articles_config.php (revision 15601) +++ modules/in-news/units/articles/articles_config.php (revision ) @@ -12,563 +12,570 @@ * See http://www.in-portal.org/license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'n', + 'Prefix' => 'n', - 'ItemClass' => Array ('class' => 'kCatDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kCatDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kCatDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kCatDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'ArticlesEventHandler', 'file' => 'articles_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'ArticlesEventHandler', 'file' => 'articles_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'ArticlesTagProcessor', 'file' => 'articles_tag_processor.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'ArticlesTagProcessor', 'file' => 'articles_tag_processor.php', 'build_event' => 'OnBuild'), - 'AutoLoad' => true, + 'AutoLoad' => true, - 'ConfigPriority' => 0, + 'ConfigPriority' => 0, - 'RewritePriority' => 102, - 'RewriteListener' => 'CategoryItemRewrite:RewriteListener', + 'RewritePriority' => 102, + 'RewriteListener' => 'CategoryItemRewrite:RewriteListener', - 'Hooks' => Array ( - Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'c', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnUpdateCategoryCustomFields', - ), + 'Hooks' => Array ( + Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'c', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnUpdateCategoryCustomFields', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => '', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => 'cdata', - 'DoSpecial' => '*', - 'DoEvent' => 'OnDefineCustomFields', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => '', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => 'cdata', + 'DoSpecial' => '*', + 'DoEvent' => 'OnDefineCustomFields', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => '#file', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => '#file', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'rev', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'rev', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'fav', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'fav', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'rel', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'rel', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'img', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'img', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'ci', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'ci', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), + ), - 'CatalogItem' => true, + 'CatalogItem' => true, - 'AdminTemplatePath' => 'articles', + 'AdminTemplatePath' => 'articles', - 'AdminTemplatePrefix' => 'articles_', + 'AdminTemplatePrefix' => 'articles_', - 'SearchConfigPostfix' => 'articles', + 'SearchConfigPostfix' => 'articles', - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', + 1 => 'id', - 2 => 'Page', + 2 => 'Page', - 3 => 'PerPage', + 3 => 'PerPage', - 4 => 'event', + 4 => 'event', - 5 => 'mode', + 5 => 'mode', - ), + ), - 'ScheduledTasks' => Array( + 'ScheduledTasks' => Array ( - 'update_rss_articles' => Array('EventName' => 'OnUpdateRSSArticles', 'RunSchedule' => '* * * * *'), + 'update_rss_articles' => Array ('EventName' => 'OnUpdateRSSArticles', 'RunSchedule' => '* * * * *'), - ), + ), + - 'IDField' => 'NewsId', + 'IDField' => 'NewsId', - 'StatusField' => Array ('Status'), // field, that is affected by Approve/Decline events + 'StatusField' => Array ('Status'), // field, that is affected by Approve/Decline events - 'TitleField' => 'Title', // field, used in bluebar when editing existing item + 'TitleField' => 'Title', // field, used in bluebar when editing existing item - 'TitlePhrase' => 'la_Text_Article', // phrase used to specify item type in relationship list + 'TitlePhrase' => 'la_Text_Article', // phrase used to specify item type in relationship list - 'TitlePresets' => Array ( + 'TitlePresets' => Array ( - 'default' => Array ( 'new_status_labels' => Array ('n' => '!la_title_AddingArticle!'), + 'default' => Array ( + 'new_status_labels' => Array ('n' => '!la_title_AddingArticle!'), - 'edit_status_labels' => Array ('n' => '!la_title_EditingArticle!'), + 'edit_status_labels' => Array ('n' => '!la_title_EditingArticle!'), - 'new_titlefield' => Array ('n' => '!la_title_NewArticle!'), + 'new_titlefield' => Array ('n' => '!la_title_NewArticle!'), - ), + ), - 'articles_edit' => Array ('prefixes' => Array ('n'), 'format' => "#n_status# '#n_titlefield#' - !la_title_General!"), + 'articles_edit' => Array ('prefixes' => Array ('n'), 'format' => "#n_status# '#n_titlefield#' - !la_title_General!"), - 'articles_categories' =>Array ('prefixes' => Array ('n', 'n-ci_List'), 'format' => "#n_status# '#n_titlefield#' - !la_title_Categories!"), + 'articles_categories' =>Array ('prefixes' => Array ('n', 'n-ci_List'), 'format' => "#n_status# '#n_titlefield#' - !la_title_Categories!"), - 'articles_relations' => Array ('prefixes' => Array ('n'), 'format' => "#n_status# '#n_titlefield#' - !la_title_Relations!"), + 'articles_relations' => Array ('prefixes' => Array ('n'), 'format' => "#n_status# '#n_titlefield#' - !la_title_Relations!"), - 'articles_images' => Array ('prefixes' => Array ('n'), 'format' => "#n_status# '#n_titlefield#' - !la_title_Images!"), + 'articles_images' => Array ('prefixes' => Array ('n'), 'format' => "#n_status# '#n_titlefield#' - !la_title_Images!"), - 'articles_files' => Array ('prefixes' => Array ('n'), 'format' => "#n_status# '#n_titlefield#' - !la_title_Files!"), + 'articles_files' => Array ('prefixes' => Array ('n'), 'format' => "#n_status# '#n_titlefield#' - !la_title_Files!"), - 'articles_reviews' => Array ('prefixes' => Array ('n'), 'format' => "#n_status# '#n_titlefield#' - !la_title_Reviews!"), + 'articles_reviews' => Array ('prefixes' => Array ('n'), 'format' => "#n_status# '#n_titlefield#' - !la_title_Reviews!"), - 'articles_custom' => Array ('prefixes' => Array ('n'), 'format' => "#n_status# '#n_titlefield#' - !la_title_Custom!"), + 'articles_custom' => Array ('prefixes' => Array ('n'), 'format' => "#n_status# '#n_titlefield#' - !la_title_Custom!"), - 'images_edit' => Array ( 'prefixes' => Array ('n', 'n-img'), + 'images_edit' => Array ( + 'prefixes' => Array ('n', 'n-img'), - 'new_status_labels' => Array ('n-img' => '!la_title_Adding_Image!'), + 'new_status_labels' => Array ('n-img' => '!la_title_Adding_Image!'), - 'edit_status_labels' => Array ('n-img' => '!la_title_Editing_Image!'), + 'edit_status_labels' => Array ('n-img' => '!la_title_Editing_Image!'), - 'new_titlefield' => Array ('n-img' => '!la_title_New_Image!'), + 'new_titlefield' => Array ('n-img' => '!la_title_New_Image!'), - 'format' => "#n_status# '#n_titlefield#' - #n-img_status# '#n-img_titlefield#'", + 'format' => "#n_status# '#n_titlefield#' - #n-img_status# '#n-img_titlefield#'", - ), + ), + - 'file_edit' => Array ( - 'prefixes' => Array ('n', 'n-file'), - 'new_status_labels' => Array ('n-file' => "!la_title_AddingFile!"), - 'edit_status_labels' => Array ('n-file' => '!la_title_EditingFile!'), - 'new_titlefield' => Array ('n-file' => '!la_title_NewFile!'), - 'format' => "#n_status# '#n_titlefield#' - #n-file_status# '#n-file_titlefield#'", - ), + 'file_edit' => Array ( + 'prefixes' => Array ('n', 'n-file'), + 'new_status_labels' => Array ('n-file' => "!la_title_AddingFile!"), + 'edit_status_labels' => Array ('n-file' => '!la_title_EditingFile!'), + 'new_titlefield' => Array ('n-file' => '!la_title_NewFile!'), + 'format' => "#n_status# '#n_titlefield#' - #n-file_status# '#n-file_titlefield#'", + ), - 'reviews_edit' => Array ( 'prefixes' => Array ('n', 'n-rev'), + 'reviews_edit' => Array ( + 'prefixes' => Array ('n', 'n-rev'), - 'new_status_labels' => Array ('n-rev' =>"!la_title_Adding_Review! '!la_title_New_Review!'"), + 'new_status_labels' => Array ('n-rev' =>"!la_title_Adding_Review! '!la_title_New_Review!'"), - 'edit_status_labels' => Array ('n-rev' => '!la_title_Editing_Review!'), + 'edit_status_labels' => Array ('n-rev' => '!la_title_Editing_Review!'), - 'format' => "#n_status# '#n_titlefield#' - #n-rev_status#", + 'format' => "#n_status# '#n_titlefield#' - #n-rev_status#", - ), + ), - 'relations_edit' => Array ( 'prefixes' => Array ('n', 'n-rel'), + 'relations_edit' => Array ( + 'prefixes' => Array ('n', 'n-rel'), - 'new_status_labels' => Array ('n-rel' =>"!la_title_Adding_Relationship! '!la_title_New_Relationship!'"), + 'new_status_labels' => Array ('n-rel' =>"!la_title_Adding_Relationship! '!la_title_New_Relationship!'"), - 'edit_status_labels' => Array ('n-rel' => '!la_title_Editing_Relationship!'), + 'edit_status_labels' => Array ('n-rel' => '!la_title_Editing_Relationship!'), - 'format' => "#n_status# '#n_titlefield#' - #n-rel_status#", + 'format' => "#n_status# '#n_titlefield#' - #n-rel_status#", - ), + ), - 'tree_in-news' => Array ('format' => '!la_Text_Version! '.$this->Application->findModule('Name', 'In-News', 'Version')), + 'tree_in-news' => Array ('format' => '!la_Text_Version! '.$this->Application->findModule('Name', 'In-News', 'Version')), - - 'articles_export' => Array ('format' => '!la_title_ArticlesExport!'), + 'articles_export' => Array ('format' => '!la_title_ArticlesExport!'), - - 'articles_import' => Array ('format' => '!la_title_ImportArticles!'), - ), + 'articles_import' => Array ('format' => '!la_title_ImportArticles!'), + ), - 'EditTabPresets' => Array ( - 'Default' => Array ( - Array ('title' => 'la_tab_General', 't' => 'in-news/articles/articles_edit', 'priority' => 1), - Array ('title' => 'la_tab_Categories', 't' => 'in-news/articles/articles_categories', 'priority' => 2), - Array ('title' => 'la_tab_Relations', 't' => 'in-news/articles/articles_relations', 'priority' => 3), - Array ('title' => 'la_tab_Images', 't' => 'in-news/articles/articles_images', 'priority' => 4), - Array ('title' => 'la_tab_Files', 't' => 'in-news/articles/articles_files', 'priority' => 5), - Array ('title' => 'la_tab_Reviews', 't' => 'in-news/articles/articles_reviews', 'priority' => 6), - Array ('title' => 'la_tab_Custom', 't' => 'in-news/articles/articles_custom', 'priority' => 7), - ), - ), + 'EditTabPresets' => Array ( + 'Default' => Array ( + Array ('title' => 'la_tab_General', 't' => 'in-news/articles/articles_edit', 'priority' => 1), + Array ('title' => 'la_tab_Categories', 't' => 'in-news/articles/articles_categories', 'priority' => 2), + Array ('title' => 'la_tab_Relations', 't' => 'in-news/articles/articles_relations', 'priority' => 3), + Array ('title' => 'la_tab_Images', 't' => 'in-news/articles/articles_images', 'priority' => 4), + Array ('title' => 'la_tab_Files', 't' => 'in-news/articles/articles_files', 'priority' => 5), + Array ('title' => 'la_tab_Reviews', 't' => 'in-news/articles/articles_reviews', 'priority' => 6), + Array ('title' => 'la_tab_Custom', 't' => 'in-news/articles/articles_custom', 'priority' => 7), + ), + ), - 'PermItemPrefix' => 'NEWS', + 'PermItemPrefix' => 'NEWS', - 'PermTabText' => 'In-News', + 'PermTabText' => 'In-News', - 'PermSection' => Array ('main' => 'CATEGORY:in-news:articles_list', 'search' => 'in-news:configuration_search', 'custom' => 'in-news:configuration_custom'), + 'PermSection' => Array ('main' => 'CATEGORY:in-news:articles_list', 'search' => 'in-news:configuration_search', 'custom' => 'in-news:configuration_custom'), - 'Sections' => Array ( + 'Sections' => Array ( - /*'in-news' => Array ( + /*'in-news' => Array ( - 'parent' => 'in-portal:root', + 'parent' => 'in-portal:root', - 'icon' => 'settings_in-newz', + 'icon' => 'settings_in-newz', - 'label' => 'la_title_In-News', + 'label' => 'la_title_In-News', - 'url' => Array ('t' => 'index', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'index', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view'), + 'permissions' => Array ('view'), - 'priority' => 3.2, + 'priority' => 3.2, - 'container' => true, + 'container' => true, - 'type' => stTREE, + 'type' => stTREE, - ),*/ + ),*/ - 'in-news:articles' => Array ( + 'in-news:articles' => Array ( - 'parent' => 'in-portal:site', + 'parent' => 'in-portal:site', - 'icon' => 'articles', + 'icon' => 'articles', - 'label' => 'la_tab_Articles', + 'label' => 'la_tab_Articles', - 'url' => Array ('t' => 'catalog/advanced_view', 'anchor' => 'tab-n.showall', 'pass' => 'm'), + 'url' => Array ('t' => 'catalog/advanced_view', 'anchor' => 'tab-n.showall', 'pass' => 'm'), - 'onclick' => 'setCatalogTab(\'n.showall\')', + 'onclick' => 'setCatalogTab(\'n.showall\')', - 'permissions' => Array ('view'), + 'permissions' => Array ('view'), - 'priority' => 3.3, + 'priority' => 3.3, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - // article settings - 'in-news:setting_folder' => Array ( + // article settings + 'in-news:setting_folder' => Array ( - 'parent' => 'in-portal:system', + 'parent' => 'in-portal:system', - 'icon' => 'conf_news', + 'icon' => 'conf_news', - 'label' => 'la_title_In-News', + 'label' => 'la_title_In-News', - 'use_parent_header' => 1, + 'use_parent_header' => 1, - 'url' => Array ('t' => 'index', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'index', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view'), + 'permissions' => Array ('view'), - 'priority' => 3.4, + 'priority' => 3.4, - 'container' => true, + 'container' => true, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - /*'in-news:innews_general' => Array ( + /*'in-news:innews_general' => Array ( - 'parent' => 'in-news:setting_folder', + 'parent' => 'in-news:setting_folder', - 'icon' => 'core:settings_general', + 'icon' => 'core:settings_general', - 'label' => 'la_tab_GeneralSettings', + 'label' => 'la_tab_GeneralSettings', - 'url' => Array ('t' => 'config/config_general', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'config/config_general', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit'), + 'permissions' => Array ('view', 'add', 'edit'), - 'priority' => 0.9, + 'priority' => 0.9, - 'type' => stTREE, + 'type' => stTREE, - ),*/ + ),*/ - 'in-news:configuration_output' => Array ( + 'in-news:configuration_output' => Array ( - 'parent' => 'in-news:setting_folder', + 'parent' => 'in-news:setting_folder', - 'icon' => 'core:conf_output', + 'icon' => 'core:conf_output', - 'label' => 'la_tab_ConfigOutput', + 'label' => 'la_tab_ConfigOutput', - 'url' => Array ('t' => 'config/config_general', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'config/config_general', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit'), + 'permissions' => Array ('view', 'add', 'edit'), - 'priority' => 1, + 'priority' => 1, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'in-news:configuration_search' => Array ( + 'in-news:configuration_search' => Array ( - 'parent' => 'in-news:setting_folder', + 'parent' => 'in-news:setting_folder', - 'icon' => 'core:conf_search', + 'icon' => 'core:conf_search', - 'label' => 'la_tab_ConfigSearch', + 'label' => 'la_tab_ConfigSearch', - 'url' => Array ('t' => 'config/config_search', 'module_key' => 'articles', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'config/config_search', 'module_key' => 'articles', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view', 'edit'), + 'permissions' => Array ('view', 'edit'), - 'priority' => 2, + 'priority' => 2, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'in-news:configuration_custom' => Array ( + 'in-news:configuration_custom' => Array ( - 'parent' => 'in-news:setting_folder', + 'parent' => 'in-news:setting_folder', - 'icon' => 'core:conf_customfields', + 'icon' => 'core:conf_customfields', - 'label' => 'la_tab_ConfigCustom', + 'label' => 'la_tab_ConfigCustom', - 'url' => Array ('t' => 'custom_fields/custom_fields_list', 'cf_type' => 2, 'pass_section' => true, 'pass' => 'm,cf'), + 'url' => Array ('t' => 'custom_fields/custom_fields_list', 'cf_type' => 2, 'pass_section' => true, 'pass' => 'm,cf'), - 'permissions' => Array ('view', 'add', 'edit', 'delete'), + 'permissions' => Array ('view', 'add', 'edit', 'delete'), - 'priority' => 3, + 'priority' => 3, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - - ), + ), - 'FilterMenu' => Array ( + 'FilterMenu' => Array ( - 'Groups' => Array ( - Array ('mode' => 'AND', 'filters' => Array ('show_new'), 'type' => kDBList::HAVING_FILTER), - Array ('mode' => 'AND', 'filters' => Array ('show_hot'), 'type' => kDBList::HAVING_FILTER), - Array ('mode' => 'AND', 'filters' => Array ('show_pop'), 'type' => kDBList::HAVING_FILTER), - Array ('mode' => 'AND', 'filters' => Array ('show_pick'), 'type' => kDBList::WHERE_FILTER), - ), - 'Filters' => Array ( + 'Groups' => Array ( + Array ('mode' => 'AND', 'filters' => Array ('show_new'), 'type' => kDBList::HAVING_FILTER), + Array ('mode' => 'AND', 'filters' => Array ('show_hot'), 'type' => kDBList::HAVING_FILTER), + Array ('mode' => 'AND', 'filters' => Array ('show_pop'), 'type' => kDBList::HAVING_FILTER), + Array ('mode' => 'AND', 'filters' => Array ('show_pick'), 'type' => kDBList::WHERE_FILTER), + ), + 'Filters' => Array ( - 'show_new' => Array ('label' => 'la_Text_New', 'on_sql' => '', 'off_sql' => '`IsNew` != 1' ), + 'show_new' => Array ('label' => 'la_Text_New', 'on_sql' => '', 'off_sql' => '`IsNew` != 1' ), - 'show_hot' => Array ('label' => 'la_Text_Hot', 'on_sql' => '', 'off_sql' => '`IsHot` != 1' ), + 'show_hot' => Array ('label' => 'la_Text_Hot', 'on_sql' => '', 'off_sql' => '`IsHot` != 1' ), - 'show_pop' => Array ('label' => 'la_Text_Pop', 'on_sql' => '', 'off_sql' => '`IsPop` != 1' ), + 'show_pop' => Array ('label' => 'la_Text_Pop', 'on_sql' => '', 'off_sql' => '`IsPop` != 1' ), - 'show_pick' => Array ('label' => 'la_prompt_EditorsPick', 'on_sql' => '', 'off_sql' => '%1$s.`EditorsPick` != 1' ), + 'show_pick' => Array ('label' => 'la_prompt_EditorsPick', 'on_sql' => '', 'off_sql' => '%1$s.`EditorsPick` != 1' ), - ), - ), + ), + ), - 'CatalogSelectorName' => 'newslist', + 'CatalogSelectorName' => 'newslist', - 'ItemPropertyMappings' => Array ( + 'ItemPropertyMappings' => Array ( - 'NewDays' => 'News_CatNewDays', // number of days item to be NEW + 'NewDays' => 'News_CatNewDays', // number of days item to be NEW - 'MinPopVotes' => 'News_MinPopVotes', // minimum number of votes for an item to be POP + 'MinPopVotes' => 'News_MinPopVotes', // minimum number of votes for an item to be POP - 'MinPopRating' => 'News_MinPopRating',// minimum rating for an item to be POP + 'MinPopRating' => 'News_MinPopRating', // minimum rating for an item to be POP - 'MaxHotNumber' => 'News_MaxHotNumber',// maximum number of HOT items + 'MaxHotNumber' => 'News_MaxHotNumber', // maximum number of HOT items - 'HotLimit' => 'News_HotLimit', // variable name in inp_Cache table + 'HotLimit' => 'News_HotLimit', // variable name in inp_Cache table - 'ClickField' => 'Hits', // item click count is stored here (in item table) + 'ClickField' => 'Hits', // item click count is stored here (in item table) - ), + ), - 'ItemType' => 2, // this is used when relation to product is added from in-portal and via-versa + 'ItemType' => 2, // this is used when relation to product is added from in-portal and via-versa - 'ViewMenuPhrase' => 'la_title_Articles', + 'ViewMenuPhrase' => 'la_title_Articles', - 'CatalogTabIcon' => 'in-news:icon16_articles.png', + 'CatalogTabIcon' => 'in-news:icon16_articles.png', - 'UsePendingEditing' => true, // item editing is controlled by NEWS.ADD/EDIT, NEWS.ADD/EDIT.PENDING permissions + 'UsePendingEditing' => true, // item editing is controlled by NEWS.ADD/EDIT, NEWS.ADD/EDIT.PENDING permissions - 'StatisticsInfo' => Array ( + 'StatisticsInfo' => Array ( - 'pending' => Array ( + 'pending' => Array ( - 'icon' => 'icon16_article_pending.gif', + 'icon' => 'icon16_article_pending.gif', - 'label' => 'la_Text_Articles', + 'label' => 'la_Text_Articles', - 'js_url' => '#url#', + 'js_url' => '#url#', - 'url' => Array ('t' => 'catalog/advanced_view', 'SetTab' => 'n', 'pass' => 'm,n.showall', 'n.showall_event' => 'OnSetFilterPattern', 'n.showall_filters' => 'show_active=0,show_pending=1,show_disabled=0,show_new=1,show_hot=1,show_pop=1,show_pick=1'), + 'url' => Array ('t' => 'catalog/advanced_view', 'SetTab' => 'n', 'pass' => 'm,n.showall', 'n.showall_event' => 'OnSetFilterPattern', 'n.showall_filters' => 'show_active=0,show_pending=1,show_disabled=0,show_new=1,show_hot=1,show_pop=1,show_pick=1'), - 'status' => STATUS_PENDING, + 'status' => STATUS_PENDING, - ), - ), + ), + ), - 'TableName' => TABLE_PREFIX.'News', + 'TableName' => TABLE_PREFIX.'News', - 'CustomDataTableName' => TABLE_PREFIX . 'NewsCustomData', + 'CustomDataTableName' => TABLE_PREFIX . 'NewsCustomData', - 'CalculatedFields' => Array ( - '' => Array ( + 'CalculatedFields' => Array ( + '' => Array ( - 'UserName' => 'IF (ISNULL(u.Username), IF (%1$s.CreatedById = ' . USER_ROOT . ', "root", IF (%1$s.CreatedById = ' . USER_GUEST . ', "Guest", "n/a")), u.Username)', + 'UserName' => 'IF (ISNULL(u.Username), IF (%1$s.CreatedById = ' . USER_ROOT . ', "root", IF (%1$s.CreatedById = ' . USER_GUEST . ', "Guest", "n/a")), u.Username)', - 'CategoryId' => TABLE_PREFIX.'%3$sCategoryItems.CategoryId', + 'CategoryId' => TABLE_PREFIX.'%3$sCategoryItems.CategoryId', - 'Filename' => TABLE_PREFIX.'%3$sCategoryItems.Filename', - 'CategoryFilename' => TABLE_PREFIX.'Categories.NamedParentPath', + 'Filename' => TABLE_PREFIX.'%3$sCategoryItems.Filename', + 'CategoryFilename' => TABLE_PREFIX.'Categories.NamedParentPath', - 'PrimaryCat' => TABLE_PREFIX.'%3$sCategoryItems.PrimaryCat', + 'PrimaryCat' => TABLE_PREFIX.'%3$sCategoryItems.PrimaryCat', - 'ParentPath' => TABLE_PREFIX.'Categories.ParentPath', + 'ParentPath' => TABLE_PREFIX.'Categories.ParentPath', - 'AltName' => 'img.AltName', + 'AltName' => 'img.AltName', - 'SameImages' => 'img.SameImages', + 'SameImages' => 'img.SameImages', - 'LocalThumb' => 'img.LocalThumb', + 'LocalThumb' => 'img.LocalThumb', - 'ThumbPath' => 'img.ThumbPath', + 'ThumbPath' => 'img.ThumbPath', - 'ThumbUrl' => 'img.ThumbUrl', + 'ThumbUrl' => 'img.ThumbUrl', - 'LocalImage' => 'img.LocalImage', + 'LocalImage' => 'img.LocalImage', - 'LocalPath' => 'img.LocalPath', + 'LocalPath' => 'img.LocalPath', - 'FullUrl' => 'img.Url', + 'FullUrl' => 'img.Url', - ), - ), + ), + ), - 'CacheModRewrite' => true, + 'CacheModRewrite' => true, - 'ListSQLs' => Array ( '' => ' SELECT %1$s.* %2$s + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId - LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId - LEFT JOIN '.TABLE_PREFIX.'%3$sCatalogImages img ON img.ResourceId = %1$s.ResourceId AND img.DefaultImg = 1 - LEFT JOIN '.TABLE_PREFIX.'CategoryPermissionsCache perm ON perm.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId - LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.CreatedById = u.PortalUserId - LEFT JOIN '.TABLE_PREFIX.'%3$sNewsCustomData cust ON %1$s.ResourceId = cust.ResourceId', + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId + LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId + LEFT JOIN '.TABLE_PREFIX.'%3$sCatalogImages img ON img.ResourceId = %1$s.ResourceId AND img.DefaultImg = 1 + LEFT JOIN '.TABLE_PREFIX.'CategoryPermissionsCache perm ON perm.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId + LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.CreatedById = u.PortalUserId + LEFT JOIN '.TABLE_PREFIX.'%3$sNewsCustomData cust ON %1$s.ResourceId = cust.ResourceId', - ), // key - special, value - list select sql + ), - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( - 'ForcedSorting' => Array ('EditorsPick' => 'desc', 'Priority' => 'desc'), - 'Sorting' => Array ('Title' => 'asc'), - ) - ), + '' => Array ( + 'ForcedSorting' => Array ('EditorsPick' => 'desc', 'Priority' => 'desc'), + 'Sorting' => Array ('Title' => 'asc'), + ) + ), - 'ItemSQLs' => Array ( '' => ' SELECT %1$s.* %2$s + + 'ItemSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId - LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId - LEFT JOIN '.TABLE_PREFIX.'%3$sCatalogImages img ON img.ResourceId = %1$s.ResourceId AND img.DefaultImg = 1 - LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.CreatedById = u.PortalUserId + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId + LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId + LEFT JOIN '.TABLE_PREFIX.'%3$sCatalogImages img ON img.ResourceId = %1$s.ResourceId AND img.DefaultImg = 1 + LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.CreatedById = u.PortalUserId - LEFT JOIN '.TABLE_PREFIX.'%3$sNewsCustomData cust ON %1$s.ResourceId = cust.ResourceId'), + LEFT JOIN '.TABLE_PREFIX.'%3$sNewsCustomData cust ON %1$s.ResourceId = cust.ResourceId' + ), - 'SubItems' => Array ('n-rev', 'n-ci', 'n-rel', 'n-img', 'n-cdata', 'n-fav', 'n-file'), + 'SubItems' => Array ('n-rev', 'n-ci', 'n-rel', 'n-img', 'n-cdata', 'n-fav', 'n-file'), - 'Fields' => Array ( + 'Fields' => Array ( - 'NewsId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'NewsId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'Title' => Array ('type' => 'string', /*'formatter' => 'kMultiLanguage', */'not_null' => 1, 'required' => 1, 'default' => '', 'max_len' => 255), + 'Title' => Array ('type' => 'string', /*'formatter' => 'kMultiLanguage', */'not_null' => 1, 'required' => 1, 'default' => '', 'max_len' => 255), - 'AutomaticFilename' => Array ( + 'AutomaticFilename' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), - 'use_phrases' => 1, 'not_null' => 1, 'default' => 1, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), + 'use_phrases' => 1, 'not_null' => 1, 'default' => 1, + ), - 'Excerpt' => Array ('type' => 'string', /*'formatter' => 'kMultiLanguage',*/ 'default' => null), + 'Excerpt' => Array ('type' => 'string', /*'formatter' => 'kMultiLanguage',*/ 'default' => null), - 'Author' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'Author' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'Body' => Array ('type' => 'string', 'formatter' => 'kFormatter',/*'kMultiLanguage'*/ 'using_fck' => 1, 'required' => 1, 'default' => null), + 'Body' => Array ('type' => 'string', 'formatter' => 'kFormatter',/*'kMultiLanguage'*/ 'using_fck' => 1, 'required' => 1, 'default' => null), - 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'required' => 1, 'default' => '#NOW#'), + 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'required' => 1, 'default' => '#NOW#'), - 'TextFormat' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'TextFormat' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'EndOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null), + 'EndOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null), - 'Hits' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%d', 'not_null' => 1, 'default' => 0), + 'Hits' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%d', 'not_null' => 1, 'default' => 0), - 'CachedRating' => Array ('type' => 'string', 'default' => 0), + 'CachedRating' => Array ('type' => 'string', 'default' => 0), - 'CachedVotesQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'CachedVotesQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'CreatedById' => Array ( - 'type' => 'int', - 'formatter' => 'kLEFTFormatter', - 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), - 'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users - WHERE `%s` = \'%s\'', - 'left_key_field' => 'PortalUserId', - 'left_title_field' => 'Username', - 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), - 'sample_value' => 'Guest', 'required' => 1, 'default' => NULL, - ), + 'CreatedById' => Array ( + 'type' => 'int', + 'formatter' => 'kLEFTFormatter', + 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), + 'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users + WHERE `%s` = \'%s\'', + 'left_key_field' => 'PortalUserId', + 'left_title_field' => 'Username', + 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), + 'sample_value' => 'Guest', 'required' => 1, 'default' => NULL, + ), - 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Status' => Array ( + 'Status' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 2, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 2, + ), - 'EditorsPick' => Array ( + 'EditorsPick' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), - 'LeadStory' => Array ( + 'LeadStory' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), - 'LeadCatStory' => Array ( + 'LeadCatStory' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), - 'ResourceId' => Array ('type' => 'int', 'default' => null), + 'ResourceId' => Array ('type' => 'int', 'default' => null), - 'CachedReviewsQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'CachedReviewsQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'StartDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'required' => 1, 'default' => '#NOW#'), + 'StartDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'required' => 1, 'default' => '#NOW#'), - 'NewItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2), + 'NewItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2), - 'PopItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2), + 'PopItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2), - 'HotItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2), + 'HotItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2), - 'Archived' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 2 => 'la_No'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 0), + 'Archived' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 2 => 'la_No'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 0), - 'Modified' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + 'Modified' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'ModifiedById' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Username', 'default' => NULL), + 'ModifiedById' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Username', 'default' => NULL), - 'OrgId' => Array ('type' => 'int', 'default' => null), + 'OrgId' => Array ('type' => 'int', 'default' => null), - 'MetaKeywords' => Array ('type' => 'string', 'default' => null), + 'MetaKeywords' => Array ('type' => 'string', 'default' => null), - 'MetaDescription' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => null), + 'MetaDescription' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => null), - ), + ), - 'VirtualFields' => Array ( + 'VirtualFields' => Array ( - 'Relevance' => Array ('type' => 'float', 'default' => 0), + 'Relevance' => Array ('type' => 'float', 'default' => 0), - 'MoreCategories' => Array ('type' => 'string', 'default' => ''), + 'MoreCategories' => Array ('type' => 'string', 'default' => ''), - 'UserName' => Array ('type' => 'string', 'default' => ''), + 'UserName' => Array ('type' => 'string', 'default' => ''), - 'CategoryId' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => 0), + 'CategoryId' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => 0), - 'cust_RssOriginalURL' => Array ('type' => 'string', 'default' => ''), + 'cust_RssOriginalURL' => Array ('type' => 'string', 'default' => ''), - 'cust_RssArticleCRC' => Array ('type' => 'int', 'default' => 0), + 'cust_RssArticleCRC' => Array ('type' => 'int', 'default' => 0), - 'Filename' => Array ('type' => 'string', 'default' => ''), + 'Filename' => Array ('type' => 'string', 'default' => ''), - 'CategoryFilename' => Array ('type' => 'string', 'default' => ''), + 'CategoryFilename' => Array ('type' => 'string', 'default' => ''), - 'PrimaryCat' => Array ('type' => 'int', 'default' => 0), + 'PrimaryCat' => Array ('type' => 'int', 'default' => 0), - 'IsHot' => Array ('type' => 'int', 'default' => 0), + 'IsHot' => Array ('type' => 'int', 'default' => 0), - 'IsNew' => Array ('type' => 'int', 'default' => 0), + 'IsNew' => Array ('type' => 'int', 'default' => 0), - 'IsPop' => Array ('type' => 'int', 'default' => 0), + 'IsPop' => Array ('type' => 'int', 'default' => 0), - 'CachedNavbar' => Array ('type' => 'string', 'default' => ''), + 'CachedNavbar' => Array ('type' => 'string', 'default' => ''), - 'ParentPath' => Array ('type' => 'string', 'default' => ''), + 'ParentPath' => Array ('type' => 'string', 'default' => ''), - // for primary image + // for primary image - 'AltName' => Array ('type' => 'string', 'default' => ''), + 'AltName' => Array ('type' => 'string', 'default' => ''), - 'SameImages' => Array ('type' => 'string', 'default' => ''), + 'SameImages' => Array ('type' => 'string', 'default' => ''), - 'LocalThumb' => Array ('type' => 'string', 'default' => ''), + 'LocalThumb' => Array ('type' => 'string', 'default' => ''), - 'ThumbPath' => Array ('type' => 'string', 'default' => ''), + 'ThumbPath' => Array ('type' => 'string', 'default' => ''), - 'ThumbUrl' => Array ('type' => 'string', 'default' => ''), + 'ThumbUrl' => Array ('type' => 'string', 'default' => ''), - 'LocalImage' => Array ('type' => 'string', 'default' => ''), + 'LocalImage' => Array ('type' => 'string', 'default' => ''), - 'LocalPath' => Array ('type' => 'string', 'default' => ''), + 'LocalPath' => Array ('type' => 'string', 'default' => ''), - 'FullUrl' => Array ('type' => 'string', 'default' => ''), + 'FullUrl' => Array ('type' => 'string', 'default' => ''), - // export related fields: begin + // export related fields: begin - 'CategoryId' => Array ('type' => 'int', 'default' => 0), + 'CategoryId' => Array ('type' => 'int', 'default' => 0), - 'ExportFormat' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'CSV', /*2 => 'XML'*/), 'default' => 1), + 'ExportFormat' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'CSV', /*2 => 'XML'*/), 'default' => 1), - 'ExportFilename' => Array ('type' => 'string', 'default' => ''), + 'ExportFilename' => Array ('type' => 'string', 'default' => ''), - 'FieldsSeparatedBy' => Array ('type' => 'string', 'default' => ','), + 'FieldsSeparatedBy' => Array ('type' => 'string', 'default' => ', '), - 'FieldsEnclosedBy' => Array ('type' => 'string', 'default' => '"'), + 'FieldsEnclosedBy' => Array ('type' => 'string', 'default' => '"'), - 'LineEndings' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'Windows', 2 => 'UNIX'), 'default' => 1), + 'LineEndings' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'Windows', 2 => 'UNIX'), 'default' => 1), - 'LineEndingsInside' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'CRLF', 2 => 'LF'), 'default' => 2), + 'LineEndingsInside' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'CRLF', 2 => 'LF'), 'default' => 2), - 'IncludeFieldTitles' => Array ( + 'IncludeFieldTitles' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), - 'use_phrases' => 1, 'default' => 1, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), + 'use_phrases' => 1, 'default' => 1, + ), - 'ExportColumns' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => ''), + 'ExportColumns' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => ''), - 'AvailableColumns' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => ''), + 'AvailableColumns' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => ''), - 'CategoryFormat' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_MixedCategoryPath', 2 => 'la_SeparatedCategoryPath'), 'use_phrases' => 1, 'default' => 1), + 'CategoryFormat' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_MixedCategoryPath', 2 => 'la_SeparatedCategoryPath'), 'use_phrases' => 1, 'default' => 1), - 'CategorySeparator' => Array ('type' => 'string', 'default' => ':'), + 'CategorySeparator' => Array ('type' => 'string', 'default' => ':'), - 'IsBaseCategory' => Array ( + 'IsBaseCategory' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), - 'use_phrases' => 1, 'default' => 0, - ), - // export related fields: end + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), + 'use_phrases' => 1, 'default' => 0, + ), + // export related fields: end - // import related fields: begin + // import related fields: begin - 'FieldTitles' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Automatic', 2 => 'la_Manual'), 'use_phrases' => 1, 'default' => 1), + 'FieldTitles' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Automatic', 2 => 'la_Manual'), 'use_phrases' => 1, 'default' => 1), - 'ImportSource' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Upload', 2 => 'la_Local'), 'use_phrases' => 1, 'default' => 2), + 'ImportSource' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Upload', 2 => 'la_Local'), 'use_phrases' => 1, 'default' => 2), - 'ImportFilename' => Array ('type' => 'string', 'formatter' => 'kUploadFormatter', 'max_size' => MAX_UPLOAD_SIZE, 'upload_dir' => EXPORT_BASE_PATH . '/', 'default' => ''), + 'ImportFilename' => Array ('type' => 'string', 'formatter' => 'kUploadFormatter', 'max_size' => MAX_UPLOAD_SIZE, 'upload_dir' => EXPORT_BASE_PATH . '/', 'default' => ''), - 'ImportLocalFilename' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'default' => ''), + 'ImportLocalFilename' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'default' => ''), - 'CheckDuplicatesMethod' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_IDField', 2 => 'la_OtherFields'), 'use_phrases' => 1, 'default' => 1), + 'CheckDuplicatesMethod' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_IDField', 2 => 'la_OtherFields'), 'use_phrases' => 1, 'default' => 1), - 'ReplaceDuplicates' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, 'default' => 0), + 'ReplaceDuplicates' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, 'default' => 0), - 'DuplicateCheckFields' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array ('Title' => 'TITLE'), 'default' => '|Title|'), + 'DuplicateCheckFields' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array ('Title' => 'TITLE'), 'default' => '|Title|'), - 'SkipFirstRow' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 1), + 'SkipFirstRow' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 1), - // import related fields: end - ), + // import related fields: end + ), - 'Grids' => Array ( + 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 0 => 'icon16_article_disabled.png', - 1 => 'icon16_article.png', - 2 => 'icon16_article_pending.png', - 'NEW' => 'icon16_article_new.png', - ), + 'Default' => Array ( + 'Icons' => Array ( + 0 => 'icon16_article_disabled.png', + 1 => 'icon16_article.png', + 2 => 'icon16_article_pending.png', + 'NEW' => 'icon16_article_new.png', + ), - 'Fields' => Array ( + 'Fields' => Array ( - 'NewsId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'NewsId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'Title' => Array ('data_block' => 'grid_catitem_td', 'filter_block' => 'grid_like_filter', 'width' => 200, ), + 'Title' => Array ('data_block' => 'grid_catitem_td', 'filter_block' => 'grid_like_filter', 'width' => 200, ), - 'Priority' => Array('filter_block' => 'grid_range_filter', 'width' => 65), + 'Priority' => Array ('filter_block' => 'grid_range_filter', 'width' => 65), - 'UserName' => Array ('title' => 'column:la_fld_Author', 'filter_block' => 'grid_like_filter', 'width' => 100, ), - 'LeadStory' => Array ('filter_block' => 'grid_options_filter', 'width' => 80, ), - 'LeadCatStory' => Array ('filter_block' => 'grid_options_filter', 'width' => 85, ), - 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 70, ), - 'CreatedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 140, ), - 'StartDate' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 140, ), - 'EndOn' => Array ('data_block' => 'article_expire_td', 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), - ), - ), + 'UserName' => Array ('title' => 'column:la_fld_Author', 'filter_block' => 'grid_like_filter', 'width' => 100, ), + 'LeadStory' => Array ('filter_block' => 'grid_options_filter', 'width' => 80, ), + 'LeadCatStory' => Array ('filter_block' => 'grid_options_filter', 'width' => 85, ), + 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 70, ), + 'CreatedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 140, ), + 'StartDate' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 140, ), + 'EndOn' => Array ('data_block' => 'article_expire_td', 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), + ), + ), - 'Radio' => Array ( + 'Radio' => Array ( - 'Icons' => Array ( - 0 => 'icon16_article_disabled.png', - 1 => 'icon16_article.png', - 2 => 'icon16_article_pending.png', - -2 => 'icon16_article_pending.png', // pending DUPLICATE item - 'NEW' => 'icon16_article_new.gif', - ), + 'Icons' => Array ( + 0 => 'icon16_article_disabled.png', + 1 => 'icon16_article.png', + 2 => 'icon16_article_pending.png', + -2 => 'icon16_article_pending.png', // pending DUPLICATE item + 'NEW' => 'icon16_article_new.gif', + ), - 'Selector' => 'radio', - 'Fields' => Array ( + 'Selector' => 'radio', + 'Fields' => Array ( - 'NewsId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_radio_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'NewsId' => Array ('title' => 'column:la_fld_Id', 'data_block' => 'grid_radio_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'Title' => Array ('data_block' => 'grid_catitem_td', 'filter_block' => 'grid_like_filter', 'width' => 200, ), + 'Title' => Array ('data_block' => 'grid_catitem_td', 'filter_block' => 'grid_like_filter', 'width' => 200, ), - 'Priority' => Array('filter_block' => 'grid_range_filter', 'width' => 65), + 'Priority' => Array ('filter_block' => 'grid_range_filter', 'width' => 65), - 'UserName' => Array ('title' => 'column:la_fld_Author', 'filter_block' => 'grid_like_filter', 'width' => 100, ), - 'LeadStory' => Array ('filter_block' => 'grid_options_filter', 'width' => 80, ), - 'LeadCatStory' => Array ('filter_block' => 'grid_options_filter', 'width' => 85, ), - 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 70, ), - 'CreatedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 140, ), - 'StartDate' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 140, ), - 'EndOn' => Array ('data_block' => 'article_expire_td', 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), - ), - ), - ), + 'UserName' => Array ('title' => 'column:la_fld_Author', 'filter_block' => 'grid_like_filter', 'width' => 100, ), + 'LeadStory' => Array ('filter_block' => 'grid_options_filter', 'width' => 80, ), + 'LeadCatStory' => Array ('filter_block' => 'grid_options_filter', 'width' => 85, ), + 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 70, ), + 'CreatedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 140, ), + 'StartDate' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 140, ), + 'EndOn' => Array ('data_block' => 'article_expire_td', 'filter_block' => 'grid_date_range_filter', 'width' => 140, ), + ), + ), + ), - 'ConfigMapping' => Array ( + 'ConfigMapping' => Array ( - 'PerPage' => 'Perpage_News', + 'PerPage' => 'Perpage_News', - 'ShortListPerPage' => 'Perpage_News_Short', + 'ShortListPerPage' => 'Perpage_News_Short', - 'ForceEditorPick' => 'News_ShowPick', + 'ForceEditorPick' => 'News_ShowPick', - 'DefaultSorting1Field' => 'News_SortField', + 'DefaultSorting1Field' => 'News_SortField', - 'DefaultSorting2Field' => 'News_SortField2', + 'DefaultSorting2Field' => 'News_SortField2', - 'DefaultSorting1Dir' => 'News_SortOrder', + 'DefaultSorting1Dir' => 'News_SortOrder', - 'DefaultSorting2Dir' => 'News_SortOrder2', + 'DefaultSorting2Dir' => 'News_SortOrder2', - 'RatingDelayValue' => 'News_RatingDelay_Value', + 'RatingDelayValue' => 'News_RatingDelay_Value', - 'RatingDelayInterval' => 'News_RatingDelay_Interval', + 'RatingDelayInterval' => 'News_RatingDelay_Interval', - ), - ); \ No newline at end of file + ), +); \ No newline at end of file Index: modules/in-commerce/units/currencies/currencies_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/currencies/currencies_config.php (revision 15601) +++ modules/in-commerce/units/currencies/currencies_config.php (revision ) @@ -13,135 +13,126 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'curr', + 'Prefix' => 'curr', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'CurrenciesEventHandler', 'file' => 'currencies_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'CurrenciesEventHandler', 'file' => 'currencies_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'CurrenciesTagProcessor', 'file' => 'currencies_tag_processor.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'CurrenciesTagProcessor', 'file' => 'currencies_tag_processor.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'hooks' => Array (), + - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), - /*'Hooks' => Array ( - Array ( - 'Mode' => hBEFORE, - 'Conditional' => true, - 'HookToPrefix' => 'tax', - 'HookToSpecial' => '', - 'HookToEvent' => Array ( 'onEdit' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnLoadZoneForm', - ), - ),*/ - 'IDField' => 'CurrencyId', + 'IDField' => 'CurrencyId', - 'StatusField' => Array ('Status', 'IsPrimary'), + 'StatusField' => Array ('Status', 'IsPrimary'), - 'TitleField' => 'ISO', + 'TitleField' => 'ISO', - 'TitlePresets' => Array ( + 'TitlePresets' => Array ( - 'default' => Array ( 'new_status_labels' => Array ('curr' => '!la_title_AddingCurrency!'), + 'default' => Array ( + 'new_status_labels' => Array ('curr' => '!la_title_AddingCurrency!'), - 'edit_status_labels' => Array ('curr' => '!la_title_EditingCurrency!'), + 'edit_status_labels' => Array ('curr' => '!la_title_EditingCurrency!'), - 'new_titlefield' => Array ('curr' => '!la_title_NewCurrency!'), + 'new_titlefield' => Array ('curr' => '!la_title_NewCurrency!'), - ), + ), - 'currencies_list' =>Array ( 'prefixes' => Array ('curr_List'), - 'format' => "!la_title_Currencies!", + 'currencies_list' =>Array ( + 'prefixes' => Array ('curr_List'), 'format' => "!la_title_Currencies!", - ), + ), - 'currencies_edit' =>Array ( 'prefixes' => Array ('curr'), + 'currencies_edit' =>Array ( + 'prefixes' => Array ('curr'), - 'new_titlefield' => Array ('curr' => '!la_title_NewCurrency!'), + 'new_titlefield' => Array ('curr' => '!la_title_NewCurrency!'), - 'format' => "#curr_status# '#curr_titlefield#' - !la_title_General!", + 'format' => "#curr_status# '#curr_titlefield#' - !la_title_General!", - ), - ), + ), + ), - 'PermSection' => Array ('main' => 'in-commerce:currencies'), + 'PermSection' => Array ('main' => 'in-commerce:currencies'), - 'Sections' => Array ( + 'Sections' => Array ( - 'in-commerce:currencies' => Array ( + 'in-commerce:currencies' => Array ( - 'parent' => 'in-commerce:setting_folder', + 'parent' => 'in-commerce:setting_folder', - 'icon' => 'conf_currencies', + 'icon' => 'conf_currencies', - 'label' => 'la_tab_Currencies', + 'label' => 'la_tab_Currencies', - 'url' => Array ('t' => 'in-commerce/currencies/currencies_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-commerce/currencies/currencies_list', 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit', 'delete', 'advanced:move_up', 'advanced:move_down', 'advanced:update_rate', 'advanced:set_primary'), + 'permissions' => Array ('view', 'add', 'edit', 'delete', 'advanced:move_up', 'advanced:move_down', 'advanced:update_rate', 'advanced:set_primary'), - 'priority' => 3, + 'priority' => 3, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - 'TableName' => TABLE_PREFIX.'Currencies', + 'TableName' => TABLE_PREFIX.'Currencies', - 'AutoDelete' => true, + 'AutoDelete' => true, - 'AutoClone' => true, + 'AutoClone' => true, - 'SubItems' => Array (), + 'SubItems' => Array (), - 'ListSQLs' => Array ( - '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'LanguageLabels phr ON %1$s.Name = phr.Phrase' - ), + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'LanguageLabels phr ON %1$s.Name = phr.Phrase' + ), - 'CalculatedFields' => Array ( + 'CalculatedFields' => Array ( - '' => Array ( + '' => Array ( - 'Translation' => 'phr.l%2$s_Translation', - ), - ), + 'Translation' => 'phr.l%2$s_Translation', + ), + ), - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( - 'ForcedSorting' => Array ('IsPrimary' => 'desc', 'Priority' => 'desc', 'Status' => 'desc'), - 'Sorting' => Array ('ISO' => 'asc'), - ) - ), + '' => Array ( + 'ForcedSorting' => Array ('IsPrimary' => 'desc', 'Priority' => 'desc', 'Status' => 'desc'), + 'Sorting' => Array ('ISO' => 'asc'), + ) + ), + - 'Fields' => Array ( - 'CurrencyId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ISO' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), - 'Symbol' => Array ('type' => 'string', 'default' => null), - 'SymbolPosition' => Array ('type' => 'int', 'default' => null, 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_Left', 1 => 'la_Right'), 'use_phrases' => '1'), - 'Name' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), - 'RateToPrimary' => Array ('type' => 'float', 'not_null' => 1, 'min_value_exc' => 0, 'formatter' => 'kFormatter', 'format' => '%0.4f', 'default' => 1), - 'Modified' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'Status' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( 1 => 'la_Active', 0 => 'la_Disabled' ), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 1, - ), - 'IsPrimary' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), - 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - ), + 'Fields' => Array ( + 'CurrencyId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ISO' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), + 'Symbol' => Array ('type' => 'string', 'default' => null), + 'SymbolPosition' => Array ('type' => 'int', 'default' => null, 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_Left', 1 => 'la_Right'), 'use_phrases' => '1'), + 'Name' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), + 'RateToPrimary' => Array ('type' => 'float', 'not_null' => 1, 'min_value_exc' => 0, 'formatter' => 'kFormatter', 'format' => '%0.4f', 'default' => 1), + 'Modified' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + 'Status' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( 1 => 'la_Active', 0 => 'la_Disabled' ), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 1, + ), + 'IsPrimary' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), + 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + ), - 'VirtualFields' => Array ( - 'Translation' => Array ('type' => 'string', 'default' => ''), - ), + 'VirtualFields' => Array ( + 'Translation' => Array ('type' => 'string', 'default' => ''), + ), - 'Grids' => Array ( + 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - '0_0' => 'icon16_disabled.png', - '0_1' => 'icon16_disabled.png', - '1_0' => 'icon16_item.png', - '1_1' => 'icon16_primary.png', - 'module' => 'core', - ), - 'Fields' => Array ( - 'CurrencyId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 70, ), - 'ISO' => Array ( 'title' => 'column:la_fld_ISOCode', 'data_block' => 'currency_caption_td', 'filter_block' => 'grid_like_filter', 'width' => 90, ), - 'Translation' => Array ( 'title' => 'column:la_fld_CurrencyName', 'use_phrases' => 1, 'filter_block' => 'grid_like_filter', 'width' => 250, ), - 'RateToPrimary' => Array ( 'title' => 'column:la_fld_RateToPrimary', 'filter_block' => 'grid_range_filter', 'width' => 130, ), - 'Modified' => Array ( 'title' => 'la_col_LastUpdated', 'filter_block' => 'grid_date_range_filter', 'width' => 150, ), - 'Status' => Array ( 'filter_block' => 'grid_options_filter', 'width' => 100, ), - ), + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + '0_0' => 'icon16_disabled.png', + '0_1' => 'icon16_disabled.png', + '1_0' => 'icon16_item.png', + '1_1' => 'icon16_primary.png', + 'module' => 'core', + ), + 'Fields' => Array ( + 'CurrencyId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 70, ), + 'ISO' => Array ( 'title' => 'column:la_fld_ISOCode', 'data_block' => 'currency_caption_td', 'filter_block' => 'grid_like_filter', 'width' => 90, ), + 'Translation' => Array ( 'title' => 'column:la_fld_CurrencyName', 'use_phrases' => 1, 'filter_block' => 'grid_like_filter', 'width' => 250, ), + 'RateToPrimary' => Array ( 'title' => 'column:la_fld_RateToPrimary', 'filter_block' => 'grid_range_filter', 'width' => 130, ), + 'Modified' => Array ( 'title' => 'la_col_LastUpdated', 'filter_block' => 'grid_date_range_filter', 'width' => 150, ), + 'Status' => Array ( 'filter_block' => 'grid_options_filter', 'width' => 100, ), + ), - - ), - ), - ); \ No newline at end of file + ), + ), +); \ No newline at end of file Index: modules/in-commerce/units/order_items/order_items_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/order_items/order_items_config.php (revision 15601) +++ modules/in-commerce/units/order_items/order_items_config.php (revision ) @@ -13,164 +13,165 @@ defined('FULL_PATH') or die('restricted access!'); - $config = Array ( - 'Prefix' => 'orditems', +$config = Array ( + 'Prefix' => 'orditems', - 'ItemClass' => Array('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class' => 'OrderItemsEventHandler', 'file' => 'order_items_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'OrderItemsEventHandler', 'file' => 'order_items_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class' => 'OrderItemsTagProcessor', 'file' => 'order_items_tag_processor.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'OrderItemsTagProcessor', 'file' => 'order_items_tag_processor.php', 'build_event' => 'OnBuild'), - 'AutoLoad' => true, + 'AutoLoad' => true, - 'AggregateTags' => Array ( - Array ( - 'AggregateTo' => '#PARENT#', - 'AggregatedTagName' => 'ItemFieldEquals', - 'LocalTagName' => 'FieldEquals', - ), - ), + 'AggregateTags' => Array ( + Array ( + 'AggregateTo' => '#PARENT#', + 'AggregatedTagName' => 'ItemFieldEquals', + 'LocalTagName' => 'FieldEquals', + ), + ), - 'Hooks' => Array ( - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '', + 'Hooks' => Array ( + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '', - 'HookToEvent' => Array('OnPreSave', 'OnRecalculateItems'), + 'HookToEvent' => Array ('OnPreSave', 'OnRecalculateItems'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnUpdate', - ), - ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnUpdate', + ), + ), - 'QueryString' => Array ( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), + 'QueryString' => Array ( + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), - 'IDField' => 'OrderItemId', - 'TitleField' => 'OrderItemId', - 'StatusField' => Array ('Status'), + 'IDField' => 'OrderItemId', + 'TitleField' => 'OrderItemId', + 'StatusField' => Array ('Status'), - 'TableName' => TABLE_PREFIX.'OrderItems', + 'TableName' => TABLE_PREFIX.'OrderItems', - 'ParentTableKey' => 'OrderId', - 'ForeignKey' => 'OrderId', - 'ParentPrefix' => 'ord', - 'AutoDelete' => true, - 'AutoClone' => true, + 'ParentTableKey' => 'OrderId', + 'ForeignKey' => 'OrderId', + 'ParentPrefix' => 'ord', + 'AutoDelete' => true, + 'AutoClone' => true, - 'ItemType' => 11, + 'ItemType' => 11, - 'CalculatedFields' => Array ( + 'CalculatedFields' => Array ( - '' => Array ( + '' => Array ( - 'ExtendedPrice' => '%1$s.Price * %1$s.Quantity', - 'ExtendedPriceFlat' => '%1$s.FlatPrice * %1$s.Quantity', - 'QuantityAvailable' => 'IF( ISNULL(p.QtyInStock) AND ISNULL(p.ProductId),"!la_ProductDeleted!", IF(p.Type = 1, IF(p.InventoryStatus = 2, poc.QtyInStock, p.QtyInStock), "") )', - 'ItemDiscount' => '(%1$s.FlatPrice - %1$s.Price)', - 'SKU' => 'IF(p.InventoryStatus = 2 OR NOT ISNULL(poc.CombinationCRC), poc.SKU, p.SKU)', // inventory by options OR combination found - ), - ), + 'ExtendedPrice' => '%1$s.Price * %1$s.Quantity', + 'ExtendedPriceFlat' => '%1$s.FlatPrice * %1$s.Quantity', + 'QuantityAvailable' => 'IF( ISNULL(p.QtyInStock) AND ISNULL(p.ProductId),"!la_ProductDeleted!", IF(p.Type = 1, IF(p.InventoryStatus = 2, poc.QtyInStock, p.QtyInStock), "") )', + 'ItemDiscount' => '(%1$s.FlatPrice - %1$s.Price)', + 'SKU' => 'IF(p.InventoryStatus = 2 OR NOT ISNULL(poc.CombinationCRC), poc.SKU, p.SKU)', // inventory by options OR combination found + ), + ), - 'ListSQLs' => Array ( - '' => ' SELECT %1$s.*, p.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'Products p ON %1$s.ProductId = p.ProductId - LEFT JOIN '.TABLE_PREFIX.'ProductOptionCombinations poc ON (%1$s.ProductId = poc.ProductId) AND (%1$s.OptionsSalt = poc.CombinationCRC)', - ), + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.*, p.* %2$s + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'Products p ON %1$s.ProductId = p.ProductId + LEFT JOIN '.TABLE_PREFIX.'ProductOptionCombinations poc ON (%1$s.ProductId = poc.ProductId) AND (%1$s.OptionsSalt = poc.CombinationCRC)', + ), - 'ItemSQLs' => Array ( + 'ItemSQLs' => Array ( - '' => 'SELECT *, (Quantity*Price) AS ExtendedPrice, 0 AS QuantityAvailable FROM %s', + '' => ' SELECT *, (Quantity*Price) AS ExtendedPrice, 0 AS QuantityAvailable + FROM %s', - ), + ), - 'ListSortings' => Array ( - '' => Array ( - 'Sorting' => Array ('ProductName' => 'asc', 'BackOrderFlag' => 'asc'), - ) - ), + 'ListSortings' => Array ( + '' => Array ( + 'Sorting' => Array ('ProductName' => 'asc', 'BackOrderFlag' => 'asc'), + ) + ), - 'Fields' => Array ( + 'Fields' => Array ( - 'OrderItemId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'OrderItemId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'OrderId' => Array('type' => 'int','not_null' => 1, 'default' => 0), + 'OrderId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ProductId' => Array('type' => 'int','not_null' => 1, 'default' => 0), + 'ProductId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ProductName' => Array('type' => 'string','not_null' => 1, 'default' => ''), + 'ProductName' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'Quantity' => Array('type' => 'int','not_null' => 1, 'default' => 0), + 'Quantity' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'QuantityReserved' => Array('type' => 'int', 'default' => null), + 'QuantityReserved' => Array ('type' => 'int', 'default' => null), - 'FlatPrice' => Array('type' => 'double','formatter'=>'kFormatter','format'=>'%01.2f','not_null' => '1','default' => '0.0000'), + 'FlatPrice' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => '1', 'default' => '0.0000'), - 'Price' => Array('type' => 'double','formatter'=>'kFormatter','format'=>'%01.2f','not_null' => '1','default' => '0.0000'), + 'Price' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => '1', 'default' => '0.0000'), - 'Cost' => Array('type' => 'double','formatter'=>'kFormatter','format'=>'%01.2f','not_null' => '1','default' => '0.0000'), + 'Cost' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => '1', 'default' => '0.0000'), - 'BackOrderFlag' => Array('type' => 'int', 'default' => 0), + 'BackOrderFlag' => Array ('type' => 'int', 'default' => 0), - 'Weight' => Array ('type' => 'double', 'default' => NULL), - 'ShippingTypeId' => Array ('type' => 'string', 'default' => NULL), + 'Weight' => Array ('type' => 'double', 'default' => NULL), + 'ShippingTypeId' => Array ('type' => 'string', 'default' => NULL), - 'ItemData' => Array('type' => 'string','default' => null), + 'ItemData' => Array ('type' => 'string', 'default' => null), - 'OptionsSalt' => Array('type' => 'int', 'default' => 0), + 'OptionsSalt' => Array ('type' => 'int', 'default' => 0), - 'SplitShippingGroup' => Array('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'SplitShippingGroup' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'PackageNum' => Array('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'PackageNum' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'ReturnType' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_opt_Refund', 2 => 'la_opt_Exchange', 3 => 'la_opt_Warranty'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0 - ), - 'ReturnAmount' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => 0), - 'ReturnedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), - ), + 'ReturnType' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_opt_Refund', 2 => 'la_opt_Exchange', 3 => 'la_opt_Warranty'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0 + ), + 'ReturnAmount' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => 0), + 'ReturnedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), + ), - 'VirtualFields' => Array ( + 'VirtualFields' => Array ( - 'ExtendedPrice' => Array('type'=>'double','formatter'=>'kFormatter','format'=>'%01.2f','default'=>'0.00'), + 'ExtendedPrice' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'default' => '0.00'), - 'ExtendedPriceFlat' => Array('type'=>'double','formatter'=>'kFormatter','format'=>'%01.2f','default'=>'0.00'), + 'ExtendedPriceFlat' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'default' => '0.00'), - 'QuantityAvailable' => Array('type'=>'int','default'=>0), + 'QuantityAvailable' => Array ('type' => 'int', 'default'=>0), - 'DiscountType' => Array('type'=>'string','default'=>''), + 'DiscountType' => Array ('type' => 'string', 'default' => ''), - 'DiscountId' => Array('type'=>'int','default'=>0), + 'DiscountId' => Array ('type' => 'int', 'default'=>0), - 'Name' => Array('type' => 'string', 'formatter' => 'kMultiLanguage', 'default' => ''), + 'Name' => Array ('type' => 'string', 'formatter' => 'kMultiLanguage', 'default' => ''), - 'ItemDiscount' => Array('type'=>'double','formatter'=>'kFormatter','format'=>'%01.2f','default'=>'0.00'), + 'ItemDiscount' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'default' => '0.00'), - 'SKU' => Array('type' => 'string', 'default' => ''), + 'SKU' => Array ('type' => 'string', 'default' => ''), - 'MinQtyFreeShipping'=> Array('type' => 'int', 'default' => 0,), + 'MinQtyFreeShipping'=> Array ('type' => 'int', 'default' => 0,), - 'Virtual' => Array ('type' => 'int', 'default' => 0), + 'Virtual' => Array ('type' => 'int', 'default' => 0), - ), + ), - 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_product.png', - 0 => 'icon16_product_disabled.png', - 1 => 'icon16_product.png', - 2 => 'icon16_product_pending.png', - ), - 'Fields' => Array ( - 'ProductName' => Array ('title' => 'la_col_ProductNameId', 'data_block' => 'grid_productname_td', 'filter_block' => 'grid_like_filter'), - 'Quantity' => Array ('title' => 'la_col_Quantity', 'data_block' => 'grid_quantity_td', 'filter_block' => 'grid_range_filter'), - 'QuantityReserved' => Array ('title' => 'la_col_QuantityReserved', 'filter_block' => 'grid_range_filter'), - 'QuantityAvailable' => Array ('title' => 'la_col_QuantityAvailable', 'filter_block' => 'grid_range_filter'), - 'Price' => Array ('data_block' => 'grid_price_td', 'filter_block' => 'grid_range_filter'), - 'ExtendedPrice' => Array ('title' => 'la_col_ExtendedPrice', 'data_block' => 'grid_extendedprice_td', 'filter_block' => 'grid_range_filter'), + 'Grids' => Array ( + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_product.png', + 0 => 'icon16_product_disabled.png', + 1 => 'icon16_product.png', + 2 => 'icon16_product_pending.png', + ), + 'Fields' => Array ( + 'ProductName' => Array ('title' => 'la_col_ProductNameId', 'data_block' => 'grid_productname_td', 'filter_block' => 'grid_like_filter'), + 'Quantity' => Array ('title' => 'la_col_Quantity', 'data_block' => 'grid_quantity_td', 'filter_block' => 'grid_range_filter'), + 'QuantityReserved' => Array ('title' => 'la_col_QuantityReserved', 'filter_block' => 'grid_range_filter'), + 'QuantityAvailable' => Array ('title' => 'la_col_QuantityAvailable', 'filter_block' => 'grid_range_filter'), + 'Price' => Array ('data_block' => 'grid_price_td', 'filter_block' => 'grid_range_filter'), + 'ExtendedPrice' => Array ('title' => 'la_col_ExtendedPrice', 'data_block' => 'grid_extendedprice_td', 'filter_block' => 'grid_range_filter'), - 'ReturnType' => Array ('title' => 'la_col_ReturnType', 'data_block' => 'grid_options_td', 'filter_block' => 'grid_options_filter'), - 'ReturnAmount' => Array ('title' => 'la_col_ReturnAmount', 'data_block' => 'grid_edit_td', 'filter_block' => 'grid_range_filter'), - 'ReturnedOn' => Array ('title' => 'la_col_ReturnedOn', 'data_block' => 'grid_date_td', 'filter_block' => 'grid_date_range_filter'), - ), - ), + 'ReturnType' => Array ('title' => 'la_col_ReturnType', 'data_block' => 'grid_options_td', 'filter_block' => 'grid_options_filter'), + 'ReturnAmount' => Array ('title' => 'la_col_ReturnAmount', 'data_block' => 'grid_edit_td', 'filter_block' => 'grid_range_filter'), + 'ReturnedOn' => Array ('title' => 'la_col_ReturnedOn', 'data_block' => 'grid_date_td', 'filter_block' => 'grid_date_range_filter'), + ), + ), - 'NotEditable' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_product.png', - 0 => 'icon16_product_disabled.png', - 1 => 'icon16_product.png', - 2 => 'icon16_product_pending.png', - ), - 'Fields' => Array ( - 'ProductName' => Array ('title' => 'la_col_ProductNameId', 'data_block' => 'grid_productname_td'), - 'Quantity' => Array ('title' => 'la_col_Quantity', 'filter_block' => 'grid_range_filter'), - 'QuantityReserved' => Array ('title' => 'la_col_QuantityReserved', 'filter_block' => 'grid_range_filter'), - 'QuantityAvailable' => Array ('title' => 'la_col_QuantityAvailable', 'filter_block' => 'grid_range_filter'), - 'Price' => Array ('filter_block' => 'grid_range_filter'), - 'ExtendedPrice' => Array ('title' => 'la_col_ExtendedPrice', 'filter_block' => 'grid_range_filter'), + 'NotEditable' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_product.png', + 0 => 'icon16_product_disabled.png', + 1 => 'icon16_product.png', + 2 => 'icon16_product_pending.png', + ), + 'Fields' => Array ( + 'ProductName' => Array ('title' => 'la_col_ProductNameId', 'data_block' => 'grid_productname_td'), + 'Quantity' => Array ('title' => 'la_col_Quantity', 'filter_block' => 'grid_range_filter'), + 'QuantityReserved' => Array ('title' => 'la_col_QuantityReserved', 'filter_block' => 'grid_range_filter'), + 'QuantityAvailable' => Array ('title' => 'la_col_QuantityAvailable', 'filter_block' => 'grid_range_filter'), + 'Price' => Array ('filter_block' => 'grid_range_filter'), + 'ExtendedPrice' => Array ('title' => 'la_col_ExtendedPrice', 'filter_block' => 'grid_range_filter'), - 'ReturnType' => Array ('title' => 'la_col_ReturnType', 'data_block' => 'grid_options_td', 'filter_block' => 'grid_options_filter'), - 'ReturnAmount' => Array ('title' => 'la_col_ReturnAmount', 'data_block' => 'grid_edit_td', 'filter_block' => 'grid_range_filter'), - 'ReturnedOn' => Array ('title' => 'la_col_ReturnedOn', 'data_block' => 'grid_date_td', 'filter_block' => 'grid_date_range_filter'), - ), - ), - ), - ); \ No newline at end of file + 'ReturnType' => Array ('title' => 'la_col_ReturnType', 'data_block' => 'grid_options_td', 'filter_block' => 'grid_options_filter'), + 'ReturnAmount' => Array ('title' => 'la_col_ReturnAmount', 'data_block' => 'grid_edit_td', 'filter_block' => 'grid_range_filter'), + 'ReturnedOn' => Array ('title' => 'la_col_ReturnedOn', 'data_block' => 'grid_date_td', 'filter_block' => 'grid_date_range_filter'), + ), + ), + ), +); \ No newline at end of file Index: modules/in-auction/units/error_log/error_log_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-auction/units/error_log/error_log_config.php (revision 15601) +++ modules/in-auction/units/error_log/error_log_config.php (revision ) @@ -11,109 +11,104 @@ * See http://www.in-portal.org/commercial-license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'err-ebay', + 'Prefix' => 'err-ebay', - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'ErrorLogEventHandler', 'file' => 'error_log_eh.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'ErrorLogEventHandler', 'file' => 'error_log_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'ErrorLogTagProcessor', 'file' => 'error_log_tp.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'ErrorLogTagProcessor', 'file' => 'error_log_tp.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, - 'Hooks' => Array ( - ), - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', + 1 => 'id', - 2 => 'Page', + 2 => 'Page', - 3 => 'PerPage', + 3 => 'PerPage', - 4 => 'event', + 4 => 'event', - 5 => 'type', + 5 => 'type', - 6 => 'mode', + 6 => 'mode', - ), + ), - - 'IDField' => 'LogId', + 'IDField' => 'LogId', - 'TitleField' => 'RequestType', // field, used in bluebar when editing existing item + 'TitleField' => 'RequestType', // field, used in bluebar when editing existing item - 'StatusField' => Array ('AnswerStatus'), + 'StatusField' => Array ('AnswerStatus'), - 'TitlePhrase' => 'la_title_eBay', + 'TitlePhrase' => 'la_title_eBay', - 'TableName' => TABLE_PREFIX.'eBayErrorLog', + 'TableName' => TABLE_PREFIX.'eBayErrorLog', - 'TitlePresets' => Array ( + 'TitlePresets' => Array ( - - 'log_list_success' => Array ( + 'log_list_success' => Array ( - 'prefixes' => Array ('err-ebay.success_List'), - 'format' => "!la_title_CompletedLog!", + 'prefixes' => Array ('err-ebay.success_List'), 'format' => "!la_title_CompletedLog!", - ), + ), - 'log_list_error' => Array ( + 'log_list_error' => Array ( - 'prefixes' => Array ('err-ebay.error_List'), - 'format' => "!la_title_ErrorsLog!", + 'prefixes' => Array ('err-ebay.error_List'), 'format' => "!la_title_ErrorsLog!", - ), + ), - 'log_view'=>Array ( 'prefixes' => Array ('err-ebay'), + 'log_view'=>Array ( + 'prefixes' => Array ('err-ebay'), - 'new_titlefield' => Array ('err-ebay' => '!la_title_ViewCommunicationLog!'), + 'new_titlefield' => Array ('err-ebay' => '!la_title_ViewCommunicationLog!'), - 'format' => "#err-ebay_titlefield#", + 'format' => "#err-ebay_titlefield#", - ), + ), - - ), + ), - 'PermSection' => Array ('main' => 'ebay:error_log'), + 'PermSection' => Array ('main' => 'ebay:error_log'), - 'Sections' => Array ( + 'Sections' => Array ( - 'ebay:error_log' => Array ( + 'ebay:error_log' => Array ( - 'parent' => 'ebay', + 'parent' => 'ebay', - 'icon' => 'communication_log', + 'icon' => 'communication_log', - 'label' => 'la_title_CommunicationLog', + 'label' => 'la_title_CommunicationLog', - 'url' => Array ('t' => 'in-auction/error_log/success_log_list', 'pass' => 'm'), + 'url' => Array ('t' => 'in-auction/error_log/success_log_list', 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit', 'delete'), + 'permissions' => Array ('view', 'add', 'edit', 'delete'), - 'priority' => 5, + 'priority' => 5, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - 'ListSQLs' => Array ( '' => 'SELECT * FROM %s', - ), // key - special, value - list select sql + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s', + ), - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( + '' => Array ( - 'Sorting' => Array ('RequestTime' => 'desc'), - ), + 'Sorting' => Array ('RequestTime' => 'desc'), + ), - - ), + ), - 'Fields' => Array ( + 'Fields' => Array ( - 'LogId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'RequestType' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - 'RequestTime' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'DurationSeconds' => Array ('type' => 'int', 'default' => 0), - 'AnswerStatus' => Array ('type' => 'string', 'default' => ''), - 'ListingId' => Array ('type' => 'int', 'default' => 0), - 'Errors' => Array ('type' => 'string', 'default' => NULL), - 'Request' => Array ('type' => 'string', 'default' => NULL), - 'Answer' => Array ('type' => 'string', 'default' => NULL), - 'AnswerFile' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), - ), + 'LogId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'RequestType' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'RequestTime' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + 'DurationSeconds' => Array ('type' => 'int', 'default' => 0), + 'AnswerStatus' => Array ('type' => 'string', 'default' => ''), + 'ListingId' => Array ('type' => 'int', 'default' => 0), + 'Errors' => Array ('type' => 'string', 'default' => NULL), + 'Request' => Array ('type' => 'string', 'default' => NULL), + 'Answer' => Array ('type' => 'string', 'default' => NULL), + 'AnswerFile' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + ), - 'Grids' => Array ( + 'Grids' => Array ( - 'Default' => Array ( + 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_item.png', - 'module' => 'core', - ), - 'Fields' => Array ( - 'LogId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 80,), + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 'module' => 'core', + ), + 'Fields' => Array ( + 'LogId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 80,), - 'ListingId' => Array ('data_block' => 'grid_listing_link', 'filter_block' => 'grid_range_filter', 'width' => 100,), + 'ListingId' => Array ('data_block' => 'grid_listing_link', 'filter_block' => 'grid_range_filter', 'width' => 100,), - 'RequestType' => Array ('filter_block' => 'grid_like_filter', 'width' => 168,), + 'RequestType' => Array ('filter_block' => 'grid_like_filter', 'width' => 168,), - 'AnswerStatus' => Array ('filter_block' => 'grid_like_filter', 'width' => 200,), + 'AnswerStatus' => Array ('filter_block' => 'grid_like_filter', 'width' => 200,), - 'RequestTime' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 146,), - 'DurationSeconds' => Array ('filter_block' => 'grid_range_filter', 'width' => 135, ), - ), + 'RequestTime' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 146,), + 'DurationSeconds' => Array ('filter_block' => 'grid_range_filter', 'width' => 135, ), + ), - - ), - ), - ); \ No newline at end of file + ), + ), +); \ No newline at end of file Index: modules/in-commerce/units/products/products_config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- modules/in-commerce/units/products/products_config.php (revision 15601) +++ modules/in-commerce/units/products/products_config.php (revision ) @@ -11,689 +11,704 @@ * See http://www.in-portal.org/commercial-license for copyright notices and details. */ - defined('FULL_PATH') or die('restricted access!'); +defined('FULL_PATH') or die('restricted access!'); - $config = Array ( +$config = Array ( - 'Prefix' => 'p', + 'Prefix' => 'p', - 'ItemClass' => Array ('class' => 'ProductsItem', 'file' => 'products_item.php', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'ProductsItem', 'file' => 'products_item.php', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array ('class' => 'kCatDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'ListClass' => Array ('class' => 'kCatDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array ('class' => 'ProductsEventHandler', 'file' => 'products_event_handler.php', 'build_event' => 'OnBuild'), + 'EventHandlerClass' => Array ('class' => 'ProductsEventHandler', 'file' => 'products_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array ('class' => 'ProductsTagProcessor', 'file' => 'products_tag_processor.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'ProductsTagProcessor', 'file' => 'products_tag_processor.php', 'build_event' => 'OnBuild'), + - 'AutoLoad' => true, + 'AutoLoad' => true, + - 'QueryString' => Array ( + 'QueryString' => Array ( - 1 => 'id', + 1 => 'id', - 2 => 'Page', + 2 => 'Page', - 3 => 'PerPage', + 3 => 'PerPage', - 4 => 'event', + 4 => 'event', - 5 => 'mode', + 5 => 'mode', - ), + ), - 'CatalogItem' => true, + 'CatalogItem' => true, - 'AdminTemplatePath' => 'products', + 'AdminTemplatePath' => 'products', - 'AdminTemplatePrefix' => 'products_', + 'AdminTemplatePrefix' => 'products_', - 'SearchConfigPostfix' => 'products', + 'SearchConfigPostfix' => 'products', - 'ConfigPriority' => 0, + 'ConfigPriority' => 0, - 'RewritePriority' => 104, - 'RewriteListener' => 'CategoryItemRewrite:RewriteListener', + 'RewritePriority' => 104, + 'RewriteListener' => 'CategoryItemRewrite:RewriteListener', - 'Hooks' => Array ( - // for subscription products: access group is saved before changing pricings - Array ( - 'Mode' => hAFTER, - 'Conditional' => true, - 'HookToPrefix' => 'pr', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnNew', 'OnAfterItemLoad'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnPreSave', - ), + 'Hooks' => Array ( + // for subscription products: access group is saved before changing pricings + Array ( + 'Mode' => hAFTER, + 'Conditional' => true, + 'HookToPrefix' => 'pr', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnNew', 'OnAfterItemLoad'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnPreSave', + ), - Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'lst', - 'HookToSpecial' => '', - 'HookToEvent' => Array ( 'OnBeforeCopyToLive' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnSaveVirtualProduct', - ), + Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'lst', + 'HookToSpecial' => '', + 'HookToEvent' => Array ( 'OnBeforeCopyToLive' ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnSaveVirtualProduct', + ), - Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'lst', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterItemDelete'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnDeleteListingType', - ), + Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'lst', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterItemDelete'), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnDeleteListingType', + ), - Array ( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => 'lst', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnModifyPaidListingConfig', - ), + Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'lst', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnModifyPaidListingConfig', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'file', - 'HookToSpecial' => '', - 'HookToEvent' => Array ( 'OnNew', 'OnEdit' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnPreSave', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'file', + 'HookToSpecial' => '', + 'HookToEvent' => Array ( 'OnNew', 'OnEdit' ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnPreSave', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => '', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => 'cdata', - 'DoSpecial' => '*', - 'DoEvent' => 'OnDefineCustomFields', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => '', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => 'cdata', + 'DoSpecial' => '*', + 'DoEvent' => 'OnDefineCustomFields', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'rev', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'rev', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'fav', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'fav', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), - Array ( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'ci', - 'HookToSpecial' => '*', - 'HookToEvent' => Array ('OnAfterConfigRead'), - 'DoPrefix' => '', - 'DoSpecial' => '*', - 'DoEvent' => 'OnCloneSubItem', - ), - ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'ci', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterConfigRead'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnCloneSubItem', + ), + ), - 'IDField' => 'ProductId', + 'IDField' => 'ProductId', - 'StatusField' => Array ('Status'), // field, that is affected by Approve/Decline events + 'StatusField' => Array ('Status'), // field, that is affected by Approve/Decline events - 'TitleField' => 'Name', // field, used in bluebar when editing existing item + 'TitleField' => 'Name', // field, used in bluebar when editing existing item - 'ItemType' => 11, // this is used when relation to product is added from in-portal and via-versa + 'ItemType' => 11, // this is used when relation to product is added from in-portal and via-versa - 'ViewMenuPhrase' => 'la_text_Products', + 'ViewMenuPhrase' => 'la_text_Products', - 'CatalogTabIcon' => 'in-commerce:icon16_products.png', + 'CatalogTabIcon' => 'in-commerce:icon16_products.png', - 'ItemPropertyMappings' => Array ( + 'ItemPropertyMappings' => Array ( - 'NewDays' => 'Product_NewDays', // number of days item to be NEW + 'NewDays' => 'Product_NewDays', // number of days item to be NEW - 'MinPopVotes' => 'Product_MinPopVotes', // minimum number of votes for an item to be POP + 'MinPopVotes' => 'Product_MinPopVotes', // minimum number of votes for an item to be POP - 'MinPopRating' => 'Product_MinPopRating', // minimum rating for an item to be POP + 'MinPopRating' => 'Product_MinPopRating', // minimum rating for an item to be POP - 'MaxHotNumber' => 'Product_MaxHotNumber', // maximum number of HOT (top seller) items + 'MaxHotNumber' => 'Product_MaxHotNumber', // maximum number of HOT (top seller) items - 'HotLimit' => 'Product_HotLimit', // variable name in inp_Cache table + 'HotLimit' => 'Product_HotLimit', // variable name in inp_Cache table - 'ClickField' => 'Hits', // item click count is stored here (in item table) + 'ClickField' => 'Hits', // item click count is stored here (in item table) - ), + ), - 'TitlePhrase' => 'la_text_Product', + 'TitlePhrase' => 'la_text_Product', - 'TitlePresets' => Array ( + 'TitlePresets' => Array ( - 'default' => Array ( 'new_status_labels' => Array ('p' => '!la_title_Adding_Product!'), + 'default' => Array ( + 'new_status_labels' => Array ('p' => '!la_title_Adding_Product!'), - 'edit_status_labels' => Array ('p' => '!la_title_Editing_Product!'), + 'edit_status_labels' => Array ('p' => '!la_title_Editing_Product!'), - 'new_titlefield' => Array ('p' => '!la_title_NewProduct!'), + 'new_titlefield' => Array ('p' => '!la_title_NewProduct!'), - ), + ), - 'product_list' =>Array ( 'prefixes' => Array ('c_List', 'p_List'), + 'product_list' =>Array ( + 'prefixes' => Array ('c_List', 'p_List'), - 'tag_params' => Array ('c' => Array ('per_page' =>-1)), + 'tag_params' => Array ('c' => Array ('per_page' =>-1)), - 'format' => "!la_title_Categories! (#c_recordcount#) - !la_title_Products! (#p_recordcount#)", + 'format' => "!la_title_Categories! (#c_recordcount#) - !la_title_Products! (#p_recordcount#)", - ), + ), - 'products_edit' =>Array ( 'prefixes' => Array ('p'), + 'products_edit' =>Array ( + 'prefixes' => Array ('p'), - 'new_titlefield' => Array ('p' => '!la_title_NewProduct!'), + 'new_titlefield' => Array ('p' => '!la_title_NewProduct!'), - 'format' => "#p_status# '#p_titlefield#' - !la_title_General!", + 'format' => "#p_status# '#p_titlefield#' - !la_title_General!", - ), + ), - 'inventory' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# - '#p_titlefield#' - !la_title_Product_Inventory!"), + 'inventory' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# - '#p_titlefield#' - !la_title_Product_Inventory!"), - 'pricing' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Product_Pricing!"), + 'pricing' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Product_Pricing!"), - 'access_pricing' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Product_AccessPricing!"), + 'access_pricing' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Product_AccessPricing!"), - 'access' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Product_Access!"), + 'access' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Product_Access!"), - 'files' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Product_Files!"), + 'files' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Product_Files!"), - 'options' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Product_Options!"), + 'options' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Product_Options!"), - 'categories' => Array ('prefixes' => Array ('p', 'p-ci_List'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Categories!"), + 'categories' => Array ('prefixes' => Array ('p', 'p-ci_List'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Categories!"), - 'relations' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Relations!"), + 'relations' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Relations!"), - 'content' => Array ('prefixes' => Array ('p', 'p.content_List'), 'tag_params' => Array ('p.content' => Array ('types' => 'content', 'live_table' =>true)), 'format' => "#p_status# '#p_titlefield#' - !la_title_Product_PackageContent!"), + 'content' => Array ('prefixes' => Array ('p', 'p.content_List'), 'tag_params' => Array ('p.content' => Array ('types' => 'content', 'live_table' =>true)), 'format' => "#p_status# '#p_titlefield#' - !la_title_Product_PackageContent!"), - 'images' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Images!"), + 'images' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Images!"), - 'reviews' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Reviews!"), + 'reviews' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Reviews!"), - 'products_custom' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Custom!"), + 'products_custom' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_Custom!"), - 'images_edit' => Array ( 'prefixes' => Array ('p', 'img'), + 'images_edit' => Array ( + 'prefixes' => Array ('p', 'img'), - 'new_status_labels' => Array ('img' => '!la_title_Adding_Image!'), + 'new_status_labels' => Array ('img' => '!la_title_Adding_Image!'), - 'edit_status_labels' => Array ('img' => '!la_title_Editing_Image!'), + 'edit_status_labels' => Array ('img' => '!la_title_Editing_Image!'), - 'new_titlefield' => Array ('img' => '!la_title_New_Image!'), + 'new_titlefield' => Array ('img' => '!la_title_New_Image!'), - 'format' => "#p_status# '#p_titlefield#' - #img_status# '#img_titlefield#'", + 'format' => "#p_status# '#p_titlefield#' - #img_status# '#img_titlefield#'", - ), + ), - 'pricing_edit' => Array ( 'prefixes' => Array ('p', 'pr'), + 'pricing_edit' => Array ( + 'prefixes' => Array ('p', 'pr'), - 'new_status_labels' => Array ('pr' =>"!la_title_Adding_PriceBracket! '!la_title_New_PriceBracket!'"), + 'new_status_labels' => Array ('pr' =>"!la_title_Adding_PriceBracket! '!la_title_New_PriceBracket!'"), - 'edit_status_labels' => Array ('pr' => '!la_title_Editing_PriceBracket!'), + 'edit_status_labels' => Array ('pr' => '!la_title_Editing_PriceBracket!'), - 'format' => "#p_status# '#p_titlefield#' - #pr_status#", + 'format' => "#p_status# '#p_titlefield#' - #pr_status#", - ), + ), - 'options_edit' => Array ( 'prefixes' => Array ('p', 'po'), + 'options_edit' => Array ( + 'prefixes' => Array ('p', 'po'), - 'new_status_labels' => Array ('po' =>"!la_title_Adding_Option!"), + 'new_status_labels' => Array ('po' =>"!la_title_Adding_Option!"), - 'edit_status_labels' => Array ('po' => '!la_title_Editing_Option!'), + 'edit_status_labels' => Array ('po' => '!la_title_Editing_Option!'), - 'new_titlefield' => Array ('po' => '!la_title_New_Option!'), + 'new_titlefield' => Array ('po' => '!la_title_New_Option!'), - 'format' => "#p_status# '#p_titlefield#' - #po_status# '#po_titlefield#'", + 'format' => "#p_status# '#p_titlefield#' - #po_status# '#po_titlefield#'", - ), + ), - 'options_combinations' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_ManagingOptionCombinations!"), + 'options_combinations' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_ManagingOptionCombinations!"), - 'shipping_options' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_ManagingShippingOptions!"), + 'shipping_options' => Array ('prefixes' => Array ('p'), 'format' => "#p_status# '#p_titlefield#' - !la_title_ManagingShippingOptions!"), - 'file_edit' => Array ( 'prefixes' => Array ('p', 'file'), + 'file_edit' => Array ( + 'prefixes' => Array ('p', 'file'), - 'new_status_labels' => Array ('file' =>"!la_title_Adding_File!"), + 'new_status_labels' => Array ('file' =>"!la_title_Adding_File!"), - 'edit_status_labels' => Array ('file' => '!la_title_Editing_File!'), + 'edit_status_labels' => Array ('file' => '!la_title_Editing_File!'), - 'new_titlefield' => Array ('file' => '!la_title_New_File!'), + 'new_titlefield' => Array ('file' => '!la_title_New_File!'), - 'format' => "#p_status# '#p_titlefield#' - #file_status# '#file_titlefield#'", + 'format' => "#p_status# '#p_titlefield#' - #file_status# '#file_titlefield#'", - ), + ), - 'relations_edit' => Array ( 'prefixes' => Array ('p', 'rel'), + 'relations_edit' => Array ( + 'prefixes' => Array ('p', 'rel'), - 'new_status_labels' => Array ('rel' =>"!la_title_Adding_Relationship! '!la_title_New_Relationship!'"), + 'new_status_labels' => Array ('rel' =>"!la_title_Adding_Relationship! '!la_title_New_Relationship!'"), - 'edit_status_labels' => Array ('rel' => '!la_title_Editing_Relationship!'), + 'edit_status_labels' => Array ('rel' => '!la_title_Editing_Relationship!'), - 'format' => "#p_status# '#p_titlefield#' - #rel_status#", + 'format' => "#p_status# '#p_titlefield#' - #rel_status#", - ), + ), - 'reviews_edit' => Array ( 'prefixes' => Array ('p', 'rev'), + 'reviews_edit' => Array ( + 'prefixes' => Array ('p', 'rev'), - 'new_status_labels' => Array ('rev' =>"!la_title_Adding_Review! '!la_title_New_Review!'"), + 'new_status_labels' => Array ('rev' =>"!la_title_Adding_Review! '!la_title_New_Review!'"), - 'edit_status_labels' => Array ('rev' => '!la_title_Editing_Review!'), + 'edit_status_labels' => Array ('rev' => '!la_title_Editing_Review!'), - 'format' => "#p_status# '#p_titlefield#' - #rev_status#", + 'format' => "#p_status# '#p_titlefield#' - #rev_status#", - ), + ), - 'products_export' => Array ('format' => '!la_title_ProductsExport!'), + 'products_export' => Array ('format' => '!la_title_ProductsExport!'), - 'products_import' => Array ('format' => '!la_title_ImportProducts!'), + 'products_import' => Array ('format' => '!la_title_ImportProducts!'), - 'tree_in-commerce' => Array ('format' => '!la_Text_Version! '.$this->Application->findModule('Name', 'In-Commerce', 'Version')), + 'tree_in-commerce' => Array ('format' => '!la_Text_Version! '.$this->Application->findModule('Name', 'In-Commerce', 'Version')), - ), + ), - 'EditTabPresets' => Array ( - 'Default' => Array ( - 'general' => Array ('title' => 'la_tab_General', 't' => 'in-commerce/products/products_edit', 'priority' => 1), - 'inventory' => Array ('title' => 'la_tab_Inventory', 't' => 'in-commerce/products/products_inventory', 'priority' => 2), - 'access_and_pricing' => Array ('title' => 'la_tab_AccessAndPricing', 't' => 'in-commerce/products/products_access', 'priority' => 3), - 'pricing' => Array ('title' => 'la_tab_Pricing', 't' => 'in-commerce/products/products_pricing', 'priority' => 4), + 'EditTabPresets' => Array ( + 'Default' => Array ( + 'general' => Array ('title' => 'la_tab_General', 't' => 'in-commerce/products/products_edit', 'priority' => 1), + 'inventory' => Array ('title' => 'la_tab_Inventory', 't' => 'in-commerce/products/products_inventory', 'priority' => 2), + 'access_and_pricing' => Array ('title' => 'la_tab_AccessAndPricing', 't' => 'in-commerce/products/products_access', 'priority' => 3), + 'pricing' => Array ('title' => 'la_tab_Pricing', 't' => 'in-commerce/products/products_pricing', 'priority' => 4), -// 'pricing2' => Array ('title' => 'la_tab_Pricing', 't' => 'in-commerce/products/products_access_pricing', 'priority' => 5), +// 'pricing2' => Array ('title' => 'la_tab_Pricing', 't' => 'in-commerce/products/products_access_pricing', 'priority' => 5), - 'files_and_pricing' => Array ('title' => 'la_tab_FilesAndPricing', 't' => 'in-commerce/products/products_files', 'priority' => 6), - 'options' => Array ('title' => 'la_tab_Options', 't' => 'in-commerce/products/products_options', 'priority' => 7), - 'categories' => Array ('title' => 'la_tab_Categories', 't' => 'in-commerce/products/products_categories', 'priority' => 8), - 'relations' => Array ('title' => 'la_tab_Relations', 't' => 'in-commerce/products/products_relations', 'priority' => 9), - 'package_content' => Array ('title' => 'la_tab_PackageContent', 't' => 'in-commerce/products/products_packagecontent', 'priority' => 10), - 'images' => Array ('title' => 'la_tab_Images', 't' => 'in-commerce/products/products_images', 'priority' => 11), - 'reviews' => Array ('title' => 'la_tab_Reviews', 't' => 'in-commerce/products/products_reviews', 'priority' => 12), - 'custom' => Array ('title' => 'la_tab_Custom', 't' => 'in-commerce/products/products_custom', 'priority' => 13), - ), - ), + 'files_and_pricing' => Array ('title' => 'la_tab_FilesAndPricing', 't' => 'in-commerce/products/products_files', 'priority' => 6), + 'options' => Array ('title' => 'la_tab_Options', 't' => 'in-commerce/products/products_options', 'priority' => 7), + 'categories' => Array ('title' => 'la_tab_Categories', 't' => 'in-commerce/products/products_categories', 'priority' => 8), + 'relations' => Array ('title' => 'la_tab_Relations', 't' => 'in-commerce/products/products_relations', 'priority' => 9), + 'package_content' => Array ('title' => 'la_tab_PackageContent', 't' => 'in-commerce/products/products_packagecontent', 'priority' => 10), + 'images' => Array ('title' => 'la_tab_Images', 't' => 'in-commerce/products/products_images', 'priority' => 11), + 'reviews' => Array ('title' => 'la_tab_Reviews', 't' => 'in-commerce/products/products_reviews', 'priority' => 12), + 'custom' => Array ('title' => 'la_tab_Custom', 't' => 'in-commerce/products/products_custom', 'priority' => 13), + ), + ), - 'PermItemPrefix' => 'PRODUCT', + 'PermItemPrefix' => 'PRODUCT', - 'PermTabText' => 'In-Commerce', + 'PermTabText' => 'In-Commerce', - 'PermSection' => Array ('main' => 'CATEGORY:in-commerce:products_list', 'search' => 'in-commerce:search', 'custom' => 'in-commerce:configuration_custom'), + 'PermSection' => Array ('main' => 'CATEGORY:in-commerce:products_list', 'search' => 'in-commerce:search', 'custom' => 'in-commerce:configuration_custom'), - 'Sections' => Array ( + 'Sections' => Array ( - 'in-commerce' => Array ( + 'in-commerce' => Array ( - 'parent' => 'in-portal:root', + 'parent' => 'in-portal:root', - 'icon' => 'ecommerce', + 'icon' => 'ecommerce', - 'label' => 'la_title_In-Commerce', + 'label' => 'la_title_In-Commerce', - 'url' => Array ('t' => 'index', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'index', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view'), + 'permissions' => Array ('view'), - 'priority' => 2.1, + 'priority' => 2.1, - 'container' => true, + 'container' => true, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'in-commerce:products' => Array ( + 'in-commerce:products' => Array ( - 'parent' => 'in-portal:site', + 'parent' => 'in-portal:site', - 'icon' => 'products', + 'icon' => 'products', - 'label' => 'la_tab_Products', + 'label' => 'la_tab_Products', - 'url' => Array ('t' => 'catalog/advanced_view', 'anchor' => 'tab-p.showall', 'pass' => 'm'), + 'url' => Array ('t' => 'catalog/advanced_view', 'anchor' => 'tab-p.showall', 'pass' => 'm'), - 'onclick' => 'setCatalogTab(\'p.showall\')', + 'onclick' => 'setCatalogTab(\'p.showall\')', - 'permissions' => Array ('view'), + 'permissions' => Array ('view'), - 'priority' => 3.2, + 'priority' => 3.2, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - // product settings - 'in-commerce:setting_folder' => Array ( + // product settings + 'in-commerce:setting_folder' => Array ( - 'parent' => 'in-portal:system', + 'parent' => 'in-portal:system', - 'icon' => 'conf_ecommerce', + 'icon' => 'conf_ecommerce', - 'label' => 'la_title_In-Commerce', + 'label' => 'la_title_In-Commerce', - 'use_parent_header' => 1, + 'use_parent_header' => 1, - 'url' => Array ('t' => 'index', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'index', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view'), + 'permissions' => Array ('view'), - 'priority' => 3.1, + 'priority' => 3.1, - 'container' => true, + 'container' => true, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'in-commerce:general' => Array ( + 'in-commerce:general' => Array ( - 'parent' => 'in-commerce:setting_folder', + 'parent' => 'in-commerce:setting_folder', - 'icon' => 'conf_ecommerce_general', + 'icon' => 'conf_ecommerce_general', - 'label' => 'la_tab_GeneralSettings', + 'label' => 'la_tab_GeneralSettings', - 'url' => Array ('t' => 'config/config_general', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'config/config_general', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit'), + 'permissions' => Array ('view', 'add', 'edit'), - 'priority' => 1, + 'priority' => 1, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'in-commerce:output' => Array ( + 'in-commerce:output' => Array ( - 'parent' => 'in-commerce:setting_folder', + 'parent' => 'in-commerce:setting_folder', - 'icon' => 'core:conf_output', + 'icon' => 'core:conf_output', - 'label' => 'la_tab_ConfigOutput', + 'label' => 'la_tab_ConfigOutput', - 'url' => Array ('t' => 'config/config_universal', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'config/config_universal', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit'), + 'permissions' => Array ('view', 'add', 'edit'), - 'priority' => 2, + 'priority' => 2, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'in-commerce:search' => Array ( + 'in-commerce:search' => Array ( - 'parent' => 'in-commerce:setting_folder', + 'parent' => 'in-commerce:setting_folder', - 'icon' => 'core:conf_search', + 'icon' => 'core:conf_search', - 'label' => 'la_tab_ConfigSearch', + 'label' => 'la_tab_ConfigSearch', - 'url' => Array ('t' => 'config/config_search', 'module_key' => 'products', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'config/config_search', 'module_key' => 'products', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view', 'edit'), + 'permissions' => Array ('view', 'edit'), - 'priority' => 7, + 'priority' => 7, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'in-commerce:configuration_custom' => Array ( + 'in-commerce:configuration_custom' => Array ( - 'parent' => 'in-commerce:setting_folder', + 'parent' => 'in-commerce:setting_folder', - 'icon' => 'core:conf_customfields', + 'icon' => 'core:conf_customfields', - 'label' => 'la_tab_ConfigCustom', + 'label' => 'la_tab_ConfigCustom', - 'url' => Array ('t' => 'custom_fields/custom_fields_list', 'cf_type' => 11, 'pass_section' => true, 'pass' => 'm,cf'), + 'url' => Array ('t' => 'custom_fields/custom_fields_list', 'cf_type' => 11, 'pass_section' => true, 'pass' => 'm,cf'), - 'permissions' => Array ('view', 'add', 'edit', 'delete'), + 'permissions' => Array ('view', 'add', 'edit', 'delete'), - 'priority' => 8, + 'priority' => 8, - 'type' => stTREE, + 'type' => stTREE, - ), + ), - 'in-commerce:contacts' => Array ( + 'in-commerce:contacts' => Array ( - 'parent' => 'in-commerce:setting_folder', + 'parent' => 'in-commerce:setting_folder', - 'icon' => 'conf_contact_info', + 'icon' => 'conf_contact_info', - 'label' => 'la_tab_ConfigContacts', + 'label' => 'la_tab_ConfigContacts', - 'url' => Array ('t' => 'config/config_universal', 'pass_section' => true, 'pass' => 'm'), + 'url' => Array ('t' => 'config/config_universal', 'pass_section' => true, 'pass' => 'm'), - 'permissions' => Array ('view', 'add', 'edit'), + 'permissions' => Array ('view', 'add', 'edit'), - 'priority' => 10, + 'priority' => 10, - 'type' => stTREE, + 'type' => stTREE, - ), - ), + ), + ), - 'FilterMenu' => Array ( + 'FilterMenu' => Array ( - 'Groups' => Array ( - Array ('mode' => 'AND', 'filters' => Array ('show_new'), 'type' => kDBList::HAVING_FILTER), - Array ('mode' => 'AND', 'filters' => Array ('show_hot'), 'type' => kDBList::HAVING_FILTER), - Array ('mode' => 'AND', 'filters' => Array ('show_pop'), 'type' => kDBList::HAVING_FILTER), - Array ('mode' => 'AND', 'filters' => Array ('show_pick'), 'type' => kDBList::WHERE_FILTER), - ), - 'Filters' => Array ( + 'Groups' => Array ( + Array ('mode' => 'AND', 'filters' => Array ('show_new'), 'type' => kDBList::HAVING_FILTER), + Array ('mode' => 'AND', 'filters' => Array ('show_hot'), 'type' => kDBList::HAVING_FILTER), + Array ('mode' => 'AND', 'filters' => Array ('show_pop'), 'type' => kDBList::HAVING_FILTER), + Array ('mode' => 'AND', 'filters' => Array ('show_pick'), 'type' => kDBList::WHERE_FILTER), + ), + 'Filters' => Array ( - 'show_new' => Array ('label' => 'la_Text_New', 'on_sql' => '', 'off_sql' => '`IsNew` != 1' ), + 'show_new' => Array ('label' => 'la_Text_New', 'on_sql' => '', 'off_sql' => '`IsNew` != 1' ), - 'show_hot' => Array ('label' => 'la_Text_TopSellers', 'on_sql' => '', 'off_sql' => '`IsHot` != 1' ), + 'show_hot' => Array ('label' => 'la_Text_TopSellers', 'on_sql' => '', 'off_sql' => '`IsHot` != 1' ), - 'show_pop' => Array ('label' => 'la_Text_Pop', 'on_sql' => '', 'off_sql' => '`IsPop` != 1' ), + 'show_pop' => Array ('label' => 'la_Text_Pop', 'on_sql' => '', 'off_sql' => '`IsPop` != 1' ), - 'show_pick' => Array ('label' => 'la_prompt_EditorsPick', 'on_sql' => '', 'off_sql' => '%1$s.`EditorsPick` != 1' ), + 'show_pick' => Array ('label' => 'la_prompt_EditorsPick', 'on_sql' => '', 'off_sql' => '%1$s.`EditorsPick` != 1' ), - ) - ), + ) + ), - 'TableName' => TABLE_PREFIX . 'Products', - 'CustomDataTableName' => TABLE_PREFIX . 'ProductsCustomData', + 'TableName' => TABLE_PREFIX . 'Products', + 'CustomDataTableName' => TABLE_PREFIX . 'ProductsCustomData', - 'CalculatedFields' => Array ( + 'CalculatedFields' => Array ( - '' => Array ( + '' => Array ( - 'AltName' => 'img.AltName', + 'AltName' => 'img.AltName', - 'SameImages' => 'img.SameImages', + 'SameImages' => 'img.SameImages', - 'LocalThumb' => 'img.LocalThumb', + 'LocalThumb' => 'img.LocalThumb', - 'ThumbPath' => 'img.ThumbPath', + 'ThumbPath' => 'img.ThumbPath', - 'ThumbUrl' => 'img.ThumbUrl', + 'ThumbUrl' => 'img.ThumbUrl', - 'LocalImage' => 'img.LocalImage', + 'LocalImage' => 'img.LocalImage', - 'LocalPath' => 'img.LocalPath', + 'LocalPath' => 'img.LocalPath', - 'FullUrl' => 'img.Url', + 'FullUrl' => 'img.Url', - 'Price' => 'COALESCE(pricing.Price, 0)', + 'Price' => 'COALESCE(pricing.Price, 0)', - 'Cost' => 'COALESCE(pricing.Cost, 0)', + 'Cost' => 'COALESCE(pricing.Cost, 0)', - 'PrimaryCat' => TABLE_PREFIX.'%3$sCategoryItems.PrimaryCat', + 'PrimaryCat' => TABLE_PREFIX.'%3$sCategoryItems.PrimaryCat', - 'CategoryId' => TABLE_PREFIX.'%3$sCategoryItems.CategoryId', + 'CategoryId' => TABLE_PREFIX.'%3$sCategoryItems.CategoryId', - 'ParentPath' => TABLE_PREFIX.'Categories.ParentPath', + 'ParentPath' => TABLE_PREFIX.'Categories.ParentPath', - 'Manufacturer' => TABLE_PREFIX.'Manufacturers.Name', + 'Manufacturer' => TABLE_PREFIX.'Manufacturers.Name', - 'Filename' => TABLE_PREFIX.'%3$sCategoryItems.Filename', + 'Filename' => TABLE_PREFIX.'%3$sCategoryItems.Filename', - 'CategoryFilename' => TABLE_PREFIX.'Categories.NamedParentPath', + 'CategoryFilename' => TABLE_PREFIX.'Categories.NamedParentPath', - 'FileSize' => 'files.Size', + 'FileSize' => 'files.Size', - 'FilePath' => 'files.FilePath', + 'FilePath' => 'files.FilePath', - 'FileVersion' => 'files.Version', + 'FileVersion' => 'files.Version', - ), + ), - 'showall' => Array ( + 'showall' => Array ( - 'Price' => 'COALESCE(pricing.Price, 0)', + 'Price' => 'COALESCE(pricing.Price, 0)', - 'Manufacturer' => TABLE_PREFIX.'Manufacturers.Name', + 'Manufacturer' => TABLE_PREFIX.'Manufacturers.Name', - 'PrimaryCat' => TABLE_PREFIX.'%3$sCategoryItems.PrimaryCat', + 'PrimaryCat' => TABLE_PREFIX.'%3$sCategoryItems.PrimaryCat', - 'CategoryId' => TABLE_PREFIX.'%3$sCategoryItems.CategoryId', + 'CategoryId' => TABLE_PREFIX.'%3$sCategoryItems.CategoryId', - 'FileSize' => 'files.Size', + 'FileSize' => 'files.Size', - 'FilePath' => 'files.FilePath', + 'FilePath' => 'files.FilePath', - 'FileVersion' => 'files.Version', + 'FileVersion' => 'files.Version', - 'Filename' => TABLE_PREFIX.'%3$sCategoryItems.Filename', + 'Filename' => TABLE_PREFIX.'%3$sCategoryItems.Filename', - 'CategoryFilename' => TABLE_PREFIX.'Categories.NamedParentPath', - ), - ), + 'CategoryFilename' => TABLE_PREFIX.'Categories.NamedParentPath', + ), + ), - 'CacheModRewrite' => true, + 'CacheModRewrite' => true, - 'ListSQLs' => Array ( + 'ListSQLs' => Array ( - '' => ' SELECT %1$s.* %2$s + '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'UserGroups ON '.TABLE_PREFIX.'UserGroups.GroupId = %1$s.AccessGroupId - LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId - LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId - LEFT JOIN '.TABLE_PREFIX.'%3$sCatalogImages img ON img.ResourceId = %1$s.ResourceId AND img.DefaultImg = 1 - LEFT JOIN '.TABLE_PREFIX.'%3$sProductFiles files ON files.ProductId = %1$s.ProductId AND files.IsPrimary = 1 - LEFT JOIN '.TABLE_PREFIX.'%3$sProductsPricing pricing ON pricing.ProductId = %1$s.ProductId AND pricing.IsPrimary = 1 - LEFT JOIN '.TABLE_PREFIX.'Manufacturers ON '.TABLE_PREFIX.'Manufacturers.ManufacturerId = %1$s.ManufacturerId - LEFT JOIN '.TABLE_PREFIX.'CategoryPermissionsCache perm ON perm.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId - LEFT JOIN '.TABLE_PREFIX.'%3$sProductsCustomData cust ON %1$s.ResourceId = cust.ResourceId', + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'UserGroups ON '.TABLE_PREFIX.'UserGroups.GroupId = %1$s.AccessGroupId + LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId + LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId + LEFT JOIN '.TABLE_PREFIX.'%3$sCatalogImages img ON img.ResourceId = %1$s.ResourceId AND img.DefaultImg = 1 + LEFT JOIN '.TABLE_PREFIX.'%3$sProductFiles files ON files.ProductId = %1$s.ProductId AND files.IsPrimary = 1 + LEFT JOIN '.TABLE_PREFIX.'%3$sProductsPricing pricing ON pricing.ProductId = %1$s.ProductId AND pricing.IsPrimary = 1 + LEFT JOIN '.TABLE_PREFIX.'Manufacturers ON '.TABLE_PREFIX.'Manufacturers.ManufacturerId = %1$s.ManufacturerId + LEFT JOIN '.TABLE_PREFIX.'CategoryPermissionsCache perm ON perm.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId + LEFT JOIN '.TABLE_PREFIX.'%3$sProductsCustomData cust ON %1$s.ResourceId = cust.ResourceId', - 'showall' => 'SELECT %1$s.* %2$s FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'%3$sProductsPricing pricing ON pricing.ProductId = %1$s.ProductId AND pricing.IsPrimary = 1 - LEFT JOIN '.TABLE_PREFIX.'%3$sProductFiles files ON files.ProductId = %1$s.ProductId AND files.IsPrimary = 1 - LEFT JOIN '.TABLE_PREFIX.'Manufacturers ON '.TABLE_PREFIX.'Manufacturers.ManufacturerId = %1$s.ManufacturerId - LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId - LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId - LEFT JOIN '.TABLE_PREFIX.'CategoryPermissionsCache perm ON perm.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId - LEFT JOIN '.TABLE_PREFIX.'%3$sProductsCustomData cust ON %1$s.ResourceId = cust.ResourceId', + 'showall' => 'SELECT %1$s.* %2$s FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'%3$sProductsPricing pricing ON pricing.ProductId = %1$s.ProductId AND pricing.IsPrimary = 1 + LEFT JOIN '.TABLE_PREFIX.'%3$sProductFiles files ON files.ProductId = %1$s.ProductId AND files.IsPrimary = 1 + LEFT JOIN '.TABLE_PREFIX.'Manufacturers ON '.TABLE_PREFIX.'Manufacturers.ManufacturerId = %1$s.ManufacturerId + LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId + LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId + LEFT JOIN '.TABLE_PREFIX.'CategoryPermissionsCache perm ON perm.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId + LEFT JOIN '.TABLE_PREFIX.'%3$sProductsCustomData cust ON %1$s.ResourceId = cust.ResourceId', - ), // key - special, value - list select sql + ), + - 'ListSortings' => Array ( + 'ListSortings' => Array ( - '' => Array ( - 'ForcedSorting' => Array ('EditorsPick' => 'desc', 'Priority' => 'desc'), - 'Sorting' => Array ('Name' => 'asc'), - ) - ), + '' => Array ( + 'ForcedSorting' => Array ('EditorsPick' => 'desc', 'Priority' => 'desc'), + 'Sorting' => Array ('Name' => 'asc'), + ) + ), - 'ItemSQLs' => Array ( '' => ' SELECT %1$s.* %2$s + + 'ItemSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'UserGroups pg ON pg.GroupId = %1$s.AccessGroupId - LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId - LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId - LEFT JOIN '.TABLE_PREFIX.'%3$sCatalogImages img ON img.ResourceId = %1$s.ResourceId AND img.DefaultImg = 1 - LEFT JOIN '.TABLE_PREFIX.'%3$sProductFiles files ON files.ProductId = %1$s.ProductId AND files.IsPrimary = 1 - LEFT JOIN '.TABLE_PREFIX.'%3$sProductsPricing pricing ON pricing.ProductId = %1$s.ProductId AND pricing.IsPrimary = 1 - LEFT JOIN '.TABLE_PREFIX.'Manufacturers ON '.TABLE_PREFIX.'Manufacturers.ManufacturerId = %1$s.ManufacturerId - LEFT JOIN '.TABLE_PREFIX.'%3$sProductsCustomData cust ON %1$s.ResourceId = cust.ResourceId', - ), + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'UserGroups pg ON pg.GroupId = %1$s.AccessGroupId + LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId + LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId + LEFT JOIN '.TABLE_PREFIX.'%3$sCatalogImages img ON img.ResourceId = %1$s.ResourceId AND img.DefaultImg = 1 + LEFT JOIN '.TABLE_PREFIX.'%3$sProductFiles files ON files.ProductId = %1$s.ProductId AND files.IsPrimary = 1 + LEFT JOIN '.TABLE_PREFIX.'%3$sProductsPricing pricing ON pricing.ProductId = %1$s.ProductId AND pricing.IsPrimary = 1 + LEFT JOIN '.TABLE_PREFIX.'Manufacturers ON '.TABLE_PREFIX.'Manufacturers.ManufacturerId = %1$s.ManufacturerId + LEFT JOIN '.TABLE_PREFIX.'%3$sProductsCustomData cust ON %1$s.ResourceId = cust.ResourceId', + ), + - 'SubItems' => Array ('pr', 'rev', 'img', 'po', 'poc', 'p-ci', 'rel', 'file', 'p-cdata', 'p-fav'), + 'SubItems' => Array ('pr', 'rev', 'img', 'po', 'poc', 'p-ci', 'rel', 'file', 'p-cdata', 'p-fav'), + - 'Fields' => Array ( + 'Fields' => Array ( - 'ProductId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'ProductId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'Name' => Array ('type' => 'string', 'formatter' => 'kMultiLanguage', 'required' => 1, 'max_len' =>255, 'default' => ''), + 'Name' => Array ('type' => 'string', 'formatter' => 'kMultiLanguage', 'required' => 1, 'max_len' =>255, 'default' => ''), - 'AutomaticFilename' => Array ( + 'AutomaticFilename' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), - 'use_phrases' => 1, 'not_null' => 1, 'default' => 1, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), + 'use_phrases' => 1, 'not_null' => 1, 'default' => 1, + ), - 'SKU' => Array ('type' => 'string', 'required' => 1, 'max_len' =>255, 'error_msgs' => Array ('required' => 'Please fill in'), 'default' => NULL), + 'SKU' => Array ('type' => 'string', 'required' => 1, 'max_len' =>255, 'error_msgs' => Array ('required' => 'Please fill in'), 'default' => NULL), - 'Description' => Array ('type' => 'string', 'formatter' => 'kMultiLanguage', 'using_fck' => 1, 'default' => NULL), + 'Description' => Array ('type' => 'string', 'formatter' => 'kMultiLanguage', 'using_fck' => 1, 'default' => NULL), - 'DescriptionExcerpt' => Array ('type' => 'string', 'formatter' => 'kMultiLanguage', 'using_fck' => 1, 'default' => NULL), + 'DescriptionExcerpt' => Array ('type' => 'string', 'formatter' => 'kMultiLanguage', 'using_fck' => 1, 'default' => NULL), - 'Weight' => Array ('type' => 'float', 'min_value_exc' => 0, 'formatter' => 'kUnitFormatter', 'format' => '%0.2f', 'default' => NULL), + 'Weight' => Array ('type' => 'float', 'min_value_exc' => 0, 'formatter' => 'kUnitFormatter', 'format' => '%0.2f', 'default' => NULL), - 'MSRP' => Array ('type' => 'float', 'min_value_inc' => 0, 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => NULL), + 'MSRP' => Array ('type' => 'float', 'min_value_inc' => 0, 'formatter' => 'kFormatter', 'format' => '%0.2f', 'default' => NULL), - 'ManufacturerId' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Manufacturers ORDER BY Name', 'option_key_field' => 'ManufacturerId', 'option_title_field' => 'Name', 'not_null' => 1, 'default' => 0), + 'ManufacturerId' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Manufacturers ORDER BY Name', 'option_key_field' => 'ManufacturerId', 'option_title_field' => 'Name', 'not_null' => 1, 'default' => 0), - 'Status' => Array ( + 'Status' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, - 'default' => 2, 'not_null' => 1, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, + 'default' => 2, 'not_null' => 1, + ), - 'BackOrder' => Array ('type' => 'int', 'not_null' => 1, 'options' => Array ( 2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never' ), 'use_phrases' => 1, 'default' => 2 ), + 'BackOrder' => Array ('type' => 'int', 'not_null' => 1, 'options' => Array ( 2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never' ), 'use_phrases' => 1, 'default' => 2 ), - 'BackOrderDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'error_msgs' => Array ('bad_date_format' => 'Please use the following date format: %s'), 'default' => NULL), + 'BackOrderDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'error_msgs' => Array ('bad_date_format' => 'Please use the following date format: %s'), 'default' => NULL), - 'NewItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array ( 2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never' ), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2 ), + 'NewItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array ( 2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never' ), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2 ), - 'HotItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array ( 2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never' ), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2 ), + 'HotItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array ( 2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never' ), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2 ), - 'PopItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array ( 2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never' ), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2 ), + 'PopItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array ( 2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never' ), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2 ), - 'EditorsPick' => Array ( + 'EditorsPick' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), - 'Featured' => Array ( + 'Featured' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), - 'OnSale' => Array ( + 'OnSale' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, - 'not_null' => 1, 'default' => 0, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), - 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'CachedRating' => Array ('type' => 'string', 'not_null' => 1, 'formatter' => 'kFormatter', 'default' => 0), + 'CachedRating' => Array ('type' => 'string', 'not_null' => 1, 'formatter' => 'kFormatter', 'default' => 0), - 'CachedVotesQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'CachedVotesQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Hits' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%d', 'not_null' => 1, 'default' => 0), + 'Hits' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%d', 'not_null' => 1, 'default' => 0), - 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'Expire' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' =>null), + 'Expire' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' =>null), - 'Type' => Array ( + 'Type' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, - 'options' => Array ( - PRODUCT_TYPE_TANGIBLE => 'la_product_tangible', - PRODUCT_TYPE_SUBSCRIPTION => 'la_product_subscription', - PRODUCT_TYPE_SERVICE => 'la_product_service', - PRODUCT_TYPE_DOWNLOADABLE => 'la_product_downloadable', - /* PRODUCT_TYPE_PACKAGE => 'la_product_package', */ - ), - 'not_null' => 1, 'default' => 1, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, + 'options' => Array ( + PRODUCT_TYPE_TANGIBLE => 'la_product_tangible', + PRODUCT_TYPE_SUBSCRIPTION => 'la_product_subscription', + PRODUCT_TYPE_SERVICE => 'la_product_service', + PRODUCT_TYPE_DOWNLOADABLE => 'la_product_downloadable', + /* PRODUCT_TYPE_PACKAGE => 'la_product_package', */ + ), + 'not_null' => 1, 'default' => 1, + ), - 'Modified' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + 'Modified' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'ModifiedById' => Array ('type' => 'int', 'default' => NULL), + 'ModifiedById' => Array ('type' => 'int', 'default' => NULL), - 'CreatedById' => Array ( - 'type' => 'int', - 'formatter' => 'kLEFTFormatter', - 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), - 'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users - WHERE `%s` = \'%s\'', - 'left_key_field' => 'PortalUserId', - 'left_title_field' => 'Username', - 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), - 'sample_value' => 'Guest', 'required' => 1, 'default' => NULL, - ), + 'CreatedById' => Array ( + 'type' => 'int', + 'formatter' => 'kLEFTFormatter', + 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), + 'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users + WHERE `%s` = \'%s\'', + 'left_key_field' => 'PortalUserId', + 'left_title_field' => 'Username', + 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), + 'sample_value' => 'Guest', 'required' => 1, 'default' => NULL, + ), - 'ResourceId' => Array ('type' => 'int', 'default' => null), + 'ResourceId' => Array ('type' => 'int', 'default' => null), - 'CachedReviewsQty' => Array ('type' => 'int', 'formatter' => 'kFormatter', 'format' => '%d', 'not_null' => 1, 'default' => 0), + 'CachedReviewsQty' => Array ('type' => 'int', 'formatter' => 'kFormatter', 'format' => '%d', 'not_null' => 1, 'default' => 0), - 'InventoryStatus' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_Disabled', 1 => 'la_by_product', 2 => 'la_by_options'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 0), + 'InventoryStatus' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_Disabled', 1 => 'la_by_product', 2 => 'la_by_options'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 0), - 'QtyInStock' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'QtyInStock' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'QtyInStockMin' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'QtyInStockMin' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'QtyReserved' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'QtyReserved' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'QtyBackOrdered' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'QtyBackOrdered' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'QtyOnOrder' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'QtyOnOrder' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'InventoryComment' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => null), + 'InventoryComment' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => null), - 'Qty' => Array ('type' => 'int', 'formatter' => 'kFormatter', 'regexp' => '/^[\d]+$/', 'error_msgs' => Array ('invalid_format' => '!la_invalid_integer!')), + 'Qty' => Array ('type' => 'int', 'formatter' => 'kFormatter', 'regexp' => '/^[\d]+$/', 'error_msgs' => Array ('invalid_format' => '!la_invalid_integer!')), - 'AccessGroupId' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'UserGroups WHERE System!=1 AND Personal !=1 ORDER BY Name', 'option_key_field' => 'GroupId', 'option_title_field' => 'Name', 'default' => NULL), + 'AccessGroupId' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'UserGroups WHERE System!=1 AND Personal !=1 ORDER BY Name', 'option_key_field' => 'GroupId', 'option_title_field' => 'Name', 'default' => NULL), - 'AccessDuration' => Array ('type' => 'int', 'default' => NULL), + 'AccessDuration' => Array ('type' => 'int', 'default' => NULL), - 'AccessDurationType' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' =>Array (1 => 'la_opt_sec', 2 => 'la_opt_min', 3 => 'la_opt_hour', 4 => 'la_opt_day', 5 => 'la_opt_week', 6 => 'la_opt_month', 7 => 'la_opt_year' ), 'default' => NULL,), + 'AccessDurationType' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' =>Array (1 => 'la_opt_sec', 2 => 'la_opt_min', 3 => 'la_opt_hour', 4 => 'la_opt_day', 5 => 'la_opt_week', 6 => 'la_opt_month', 7 => 'la_opt_year' ), 'default' => NULL,), - 'AccessStart' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), + 'AccessStart' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), - 'AccessEnd' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL,), + 'AccessEnd' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL,), - 'OptionsSelectionMode' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' =>Array (0 => 'la_opt_Selection', 1 => 'la_opt_List'), 'default' => 0), + 'OptionsSelectionMode' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' =>Array (0 => 'la_opt_Selection', 1 => 'la_opt_List'), 'default' => 0), - 'HasRequiredOptions' => Array ('type' => 'int', 'default' => 0, 'not_null' => 1), + 'HasRequiredOptions' => Array ('type' => 'int', 'default' => 0, 'not_null' => 1), - 'Virtual' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Virtual' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ProcessingData' => Array ('type' => 'string', 'default' => ''), + 'ProcessingData' => Array ('type' => 'string', 'default' => ''), - 'PackageContent' => Array ('type' => 'string', 'default' => NULL), + 'PackageContent' => Array ('type' => 'string', 'default' => NULL), - 'IsRecurringBilling' => Array ( + 'IsRecurringBilling' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), - 'use_phrases' => 1, 'not_null' => 1, 'default' => 0, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), + 'use_phrases' => 1, 'not_null' => 1, 'default' => 0, + ), - //'PayPalRecurring' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'not_null' => '1', 'default' => '0'), + //'PayPalRecurring' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'not_null' => '1', 'default' => '0'), - 'ShippingMode' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' =>Array (0 => 'la_shipping_AnyAndSelected', 1 => 'la_shipping_Limited'), 'not_null' => 1, 'default' =>0), + 'ShippingMode' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' =>Array (0 => 'la_shipping_AnyAndSelected', 1 => 'la_shipping_Limited'), 'not_null' => 1, 'default' =>0), - 'ProcessingData' => Array ('type' => 'string', 'default' => null), + 'ProcessingData' => Array ('type' => 'string', 'default' => null), - 'ShippingLimitation' => Array ('type' => 'string', 'default' => NULL), + 'ShippingLimitation' => Array ('type' => 'string', 'default' => NULL), - 'AssignedCoupon' => - Array ('type' => 'int', 'not_null' => 1, 'default' => 0, + 'AssignedCoupon' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, - 'formatter' => 'kLEFTFormatter', - 'options' => Array (0 => 'None'), - 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'ProductsCoupons WHERE `%s` = \'%s\'', - 'left_key_field' => 'CouponId', - 'left_title_field' => 'Name'), + 'formatter' => 'kLEFTFormatter', + 'options' => Array (0 => 'None'), + 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'ProductsCoupons WHERE `%s` = \'%s\'', + 'left_key_field' => 'CouponId', + 'left_title_field' => 'Name'), - 'MinQtyFreePromoShipping' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'MinQtyFreePromoShipping' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'MetaKeywords' => Array ('type' => 'string', 'default' => null), + 'MetaKeywords' => Array ('type' => 'string', 'default' => null), - 'MetaDescription' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => null), + 'MetaDescription' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => null), - ), + ), - 'VirtualFields' => Array ( + 'VirtualFields' => Array ( - 'Relevance' => Array ('type' => 'float', 'default' => 0), + 'Relevance' => Array ('type' => 'float', 'default' => 0), - 'Qty' => Array ('type' => 'int', 'formatter' => 'kFormatter', 'regexp' => '/^[\d]+$/', 'default' => 0), + 'Qty' => Array ('type' => 'int', 'formatter' => 'kFormatter', 'regexp' => '/^[\d]+$/', 'default' => 0), - 'Price' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%.2f', 'default' => NULL), + 'Price' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%.2f', 'default' => NULL), - 'Cost' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%.2f', 'default' => NULL), + 'Cost' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%.2f', 'default' => NULL), - 'CategoryFilename' => Array ('type' => 'string', 'default' => ''), + 'CategoryFilename' => Array ('type' => 'string', 'default' => ''), - 'PrimaryCat' => Array ('type' => 'int', 'default' => 0), + 'PrimaryCat' => Array ('type' => 'int', 'default' => 0), - 'IsHot' => Array ('type' => 'int', 'default' => 0), + 'IsHot' => Array ('type' => 'int', 'default' => 0), - 'IsNew' => Array ('type' => 'int', 'default' => 0), + 'IsNew' => Array ('type' => 'int', 'default' => 0), - 'IsPop' => Array ('type' => 'int', 'default' => 0), + 'IsPop' => Array ('type' => 'int', 'default' => 0), - 'Manufacturer' => Array ('type' => 'string', 'default' => ''), + 'Manufacturer' => Array ('type' => 'string', 'default' => ''), - // export related fields: begin + // export related fields: begin - 'CategoryId' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => 0), + 'CategoryId' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => 0), - 'ExportFormat' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'CSV', /*2 => 'XML'*/), 'default' => 1), + 'ExportFormat' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'CSV', /*2 => 'XML'*/), 'default' => 1), - 'ExportFilename' => Array ('type' => 'string', 'default' => ''), + 'ExportFilename' => Array ('type' => 'string', 'default' => ''), - 'FieldsSeparatedBy' => Array ('type' => 'string', 'default' => ','), + 'FieldsSeparatedBy' => Array ('type' => 'string', 'default' => ', '), - 'FieldsEnclosedBy' => Array ('type' => 'string', 'default' => '"'), + 'FieldsEnclosedBy' => Array ('type' => 'string', 'default' => '"'), - 'LineEndings' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'Windows', 2 => 'UNIX'), 'default' => 1), + 'LineEndings' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'Windows', 2 => 'UNIX'), 'default' => 1), - 'LineEndingsInside' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'CRLF', 2 => 'LF'), 'default' => 2), + 'LineEndingsInside' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'CRLF', 2 => 'LF'), 'default' => 2), - 'IncludeFieldTitles' => Array ( + 'IncludeFieldTitles' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), - 'use_phrases' => 1, 'default' => 1, - ), + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), + 'use_phrases' => 1, 'default' => 1, + ), - 'ExportColumns' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => ''), + 'ExportColumns' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => ''), - 'AvailableColumns' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => ''), + 'AvailableColumns' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array (), 'default' => ''), - 'CategoryFormat' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_MixedCategoryPath', 2 => 'la_SeparatedCategoryPath'), 'use_phrases' => 1, 'default' => 1), + 'CategoryFormat' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_MixedCategoryPath', 2 => 'la_SeparatedCategoryPath'), 'use_phrases' => 1, 'default' => 1), - 'CategorySeparator' => Array ('type' => 'string', 'default' => ':'), + 'CategorySeparator' => Array ('type' => 'string', 'default' => ':'), - 'IsBaseCategory' => Array ( + 'IsBaseCategory' => Array ( - 'type' => 'int', - 'formatter' => 'kOptionsFormatter', - 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), - 'use_phrases' => 1, 'default' => 0, - ), - // export related fields: end + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), + 'use_phrases' => 1, 'default' => 0, + ), + // export related fields: end - // import related fields: begin + // import related fields: begin - 'FieldTitles' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Automatic', 2 => 'la_Manual'), 'use_phrases' => 1, 'default' => 1), + 'FieldTitles' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Automatic', 2 => 'la_Manual'), 'use_phrases' => 1, 'default' => 1), - 'ImportSource' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Upload', 2 => 'la_Local'), 'use_phrases' => 1, 'default' => 2), + 'ImportSource' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Upload', 2 => 'la_Local'), 'use_phrases' => 1, 'default' => 2), - 'ImportFilename' => Array ('type' => 'string', 'formatter' => 'kUploadFormatter', 'max_size' => MAX_UPLOAD_SIZE, 'upload_dir' => EXPORT_BASE_PATH . '/', 'default' => ''), + 'ImportFilename' => Array ('type' => 'string', 'formatter' => 'kUploadFormatter', 'max_size' => MAX_UPLOAD_SIZE, 'upload_dir' => EXPORT_BASE_PATH . '/', 'default' => ''), - 'ImportLocalFilename' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'default' => ''), + 'ImportLocalFilename' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'default' => ''), - 'CheckDuplicatesMethod' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_IDField', 2 => 'la_OtherFields'), 'use_phrases' => 1, 'default' => 1), + 'CheckDuplicatesMethod' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_IDField', 2 => 'la_OtherFields'), 'use_phrases' => 1, 'default' => 1), - 'ReplaceDuplicates' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, 'default' => 0), + 'ReplaceDuplicates' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, 'default' => 0), - 'DuplicateCheckFields' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array ('Name' => 'NAME'), 'default' => '|Name|'), + 'DuplicateCheckFields' => Array ('type' => 'string', 'formatter' => 'kOptionsFormatter', 'options' => Array ('Name' => 'NAME'), 'default' => '|Name|'), - 'SkipFirstRow' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 1), + 'SkipFirstRow' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'default' => 1), - // import related fields: end + // import related fields: end - 'ThumbnailImage' => Array ('type' => 'string', 'default' => ''), + 'ThumbnailImage' => Array ('type' => 'string', 'default' => ''), - 'FullImage' => Array ('type' => 'string', 'default' => ''), + 'FullImage' => Array ('type' => 'string', 'default' => ''), - 'ImageAlt' => Array ('type' => 'string', 'default' => ''), + 'ImageAlt' => Array ('type' => 'string', 'default' => ''), - 'Filename' => Array ('type' => 'string', 'default' => ''), + 'Filename' => Array ('type' => 'string', 'default' => ''), - 'CachedNavbar' => Array ('type' => 'string', 'default' => ''), + 'CachedNavbar' => Array ('type' => 'string', 'default' => ''), - 'ParentPath' => Array ('type' => 'string', 'default' => ''), + 'ParentPath' => Array ('type' => 'string', 'default' => ''), - 'FileSize' => Array ('type' => 'int', 'formatter' => 'kFilesizeFormatter', 'default' => 0), + 'FileSize' => Array ('type' => 'int', 'formatter' => 'kFilesizeFormatter', 'default' => 0), - 'FilePath' => Array ('type' => 'string', 'default' => ''), + 'FilePath' => Array ('type' => 'string', 'default' => ''), - 'FileVersion' => Array ('type' => 'string', 'default' => ''), + 'FileVersion' => Array ('type' => 'string', 'default' => ''), - // for primary image + // for primary image - 'AltName' => Array ('type' => 'string', 'default' => ''), + 'AltName' => Array ('type' => 'string', 'default' => ''), - 'SameImages' => Array ('type' => 'string', 'default' => ''), + 'SameImages' => Array ('type' => 'string', 'default' => ''), - 'LocalThumb' => Array ('type' => 'string', 'default' => ''), + 'LocalThumb' => Array ('type' => 'string', 'default' => ''), - 'ThumbPath' => Array ('type' => 'string', 'default' => ''), + 'ThumbPath' => Array ('type' => 'string', 'default' => ''), - 'ThumbUrl' => Array ('type' => 'string', 'default' => ''), + 'ThumbUrl' => Array ('type' => 'string', 'default' => ''), - 'LocalImage' => Array ('type' => 'string', 'default' => ''), + 'LocalImage' => Array ('type' => 'string', 'default' => ''), - 'LocalPath' => Array ('type' => 'string', 'default' => ''), + 'LocalPath' => Array ('type' => 'string', 'default' => ''), - 'FullUrl' => Array ('type' => 'string', 'default' => ''), + 'FullUrl' => Array ('type' => 'string', 'default' => ''), - ), + ), - 'Grids' => Array ( + 'Grids' => Array ( - 'Default' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_product.png', - 0 => 'icon16_product_disabled.png', - 1 => 'icon16_product.png', - 2 => 'icon16_product_pending.png', - 'NEW' => 'icon16_product_new.png', - ), - 'Fields' => Array ( - 'ProductId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'SKU' => Array ( 'title' => 'la_col_ProductSKU', 'filter_block' => 'grid_like_filter', 'width' => 100, ), - 'Name' => Array ( 'title' => 'la_col_ProductName', 'data_block' => 'grid_catitem_td', 'filter_block' => 'grid_like_filter', 'width' => 150, ), + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_product.png', + 0 => 'icon16_product_disabled.png', + 1 => 'icon16_product.png', + 2 => 'icon16_product_pending.png', + 'NEW' => 'icon16_product_new.png', + ), + 'Fields' => Array ( + 'ProductId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'SKU' => Array ( 'title' => 'la_col_ProductSKU', 'filter_block' => 'grid_like_filter', 'width' => 100, ), + 'Name' => Array ( 'title' => 'la_col_ProductName', 'data_block' => 'grid_catitem_td', 'filter_block' => 'grid_like_filter', 'width' => 150, ), - 'Priority' => Array('filter_block' => 'grid_range_filter', 'width' => 65), + 'Priority' => Array ('filter_block' => 'grid_range_filter', 'width' => 65), - 'Type' => Array ('title' => 'column:la_fld_ProductType', 'filter_block' => 'grid_options_filter', 'width' => 80, ), + 'Type' => Array ('title' => 'column:la_fld_ProductType', 'filter_block' => 'grid_options_filter', 'width' => 80, ), - 'Manufacturer' => Array ('filter_block' => 'grid_like_filter', 'width' => 100, ), + 'Manufacturer' => Array ('filter_block' => 'grid_like_filter', 'width' => 100, ), - 'Price' => Array ('filter_block' => 'grid_range_filter', 'width' => 70, ), + 'Price' => Array ('filter_block' => 'grid_range_filter', 'width' => 70, ), - 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 70, ), + 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 70, ), - 'QtyInStock' => Array ('title' => 'column:la_fld_Qty', 'data_block' => 'qty_td', 'filter_block' => 'grid_range_filter', 'width' => 80, ), + 'QtyInStock' => Array ('title' => 'column:la_fld_Qty', 'data_block' => 'qty_td', 'filter_block' => 'grid_range_filter', 'width' => 80, ), - 'QtyBackOrdered' => Array ('title' => 'column:la_fld_QtyBackOrdered', 'filter_block' => 'grid_range_filter', 'width' => 80, ), + 'QtyBackOrdered' => Array ('title' => 'column:la_fld_QtyBackOrdered', 'filter_block' => 'grid_range_filter', 'width' => 80, ), - 'OnSale' => Array ('title' => 'column:la_fld_OnSale', 'filter_block' => 'grid_options_filter', 'width' => 70, ), + 'OnSale' => Array ('title' => 'column:la_fld_OnSale', 'filter_block' => 'grid_options_filter', 'width' => 70, ), - /*'Weight' => Array ( 'title' => 'la_col_ProductWeight', 'filter_block' => 'grid_range_filter', 'width' => 150, ), - 'CreatedOn' => Array ( 'title' => 'la_col_ProductCreatedOn', 'filter_block' => 'grid_date_range_filter', 'width' => 150, ), - 'BackOrderDate' => Array ( 'title' => 'la_col_ProductBackOrderDate', 'filter_block' => 'grid_date_range_filter', 'width' => 150, ),*/ - ), - ), + /*'Weight' => Array ( 'title' => 'la_col_ProductWeight', 'filter_block' => 'grid_range_filter', 'width' => 150, ), + 'CreatedOn' => Array ( 'title' => 'la_col_ProductCreatedOn', 'filter_block' => 'grid_date_range_filter', 'width' => 150, ), + 'BackOrderDate' => Array ( 'title' => 'la_col_ProductBackOrderDate', 'filter_block' => 'grid_date_range_filter', 'width' => 150, ),*/ + ), + ), - 'Radio' => Array ( - 'Icons' => Array ( - 'default' => 'icon16_product.png', - 0 => 'icon16_product_disabled.png', - 1 => 'icon16_product.png', - 2 => 'icon16_product_pending.png', - 'NEW' => 'icon16_product_new.png', - ), - 'Selector' => 'radio', - 'Fields' => Array ( - 'ProductId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_radio_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), - 'SKU' => Array ( 'title' => 'la_col_ProductSKU', 'filter_block' => 'grid_like_filter', 'width' => 100, ), - 'Name' => Array ( 'title' => 'la_col_ProductName', 'data_block' => 'grid_catitem_td', 'filter_block' => 'grid_like_filter', 'width' => 150, ), + 'Radio' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_product.png', + 0 => 'icon16_product_disabled.png', + 1 => 'icon16_product.png', + 2 => 'icon16_product_pending.png', + 'NEW' => 'icon16_product_new.png', + ), + 'Selector' => 'radio', + 'Fields' => Array ( + 'ProductId' => Array ( 'title' => 'column:la_fld_Id', 'data_block' => 'grid_radio_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'SKU' => Array ( 'title' => 'la_col_ProductSKU', 'filter_block' => 'grid_like_filter', 'width' => 100, ), + 'Name' => Array ( 'title' => 'la_col_ProductName', 'data_block' => 'grid_catitem_td', 'filter_block' => 'grid_like_filter', 'width' => 150, ), - 'Priority' => Array('filter_block' => 'grid_range_filter', 'width' => 65), + 'Priority' => Array ('filter_block' => 'grid_range_filter', 'width' => 65), - 'Type' => Array ('title' => 'column:la_fld_ProductType', 'filter_block' => 'grid_options_filter', 'width' => 80, ), + 'Type' => Array ('title' => 'column:la_fld_ProductType', 'filter_block' => 'grid_options_filter', 'width' => 80, ), - 'Manufacturer' => Array ('filter_block' => 'grid_like_filter', 'width' => 100, ), + 'Manufacturer' => Array ('filter_block' => 'grid_like_filter', 'width' => 100, ), - 'Price' => Array ('filter_block' => 'grid_range_filter', 'width' => 70, ), + 'Price' => Array ('filter_block' => 'grid_range_filter', 'width' => 70, ), - 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 70, ), + 'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 70, ), - 'QtyInStock' => Array ('title' => 'column:la_fld_Qty', 'data_block' => 'qty_td', 'filter_block' => 'grid_range_filter', 'width' => 80, ), + 'QtyInStock' => Array ('title' => 'column:la_fld_Qty', 'data_block' => 'qty_td', 'filter_block' => 'grid_range_filter', 'width' => 80, ), - 'QtyBackOrdered' => Array ('title' => 'column:la_fld_QtyBackOrdered', 'filter_block' => 'grid_range_filter', 'width' => 80, ), + 'QtyBackOrdered' => Array ('title' => 'column:la_fld_QtyBackOrdered', 'filter_block' => 'grid_range_filter', 'width' => 80, ), - ), - ), - ), + ), + ), + ), - 'ConfigMapping' => Array ( + 'ConfigMapping' => Array ( - 'PerPage' => 'Comm_Perpage_Products', + 'PerPage' => 'Comm_Perpage_Products', - 'ShortListPerPage' => 'Comm_Perpage_Products_Short', + 'ShortListPerPage' => 'Comm_Perpage_Products_Short', - 'ForceEditorPick' => 'products_EditorPicksAboveRegular', + 'ForceEditorPick' => 'products_EditorPicksAboveRegular', - 'DefaultSorting1Field' => 'product_OrderProductsBy', + 'DefaultSorting1Field' => 'product_OrderProductsBy', - 'DefaultSorting2Field' => 'product_OrderProductsThenBy', + 'DefaultSorting2Field' => 'product_OrderProductsThenBy', - 'DefaultSorting1Dir' => 'product_OrderProductsByDir', + 'DefaultSorting1Dir' => 'product_OrderProductsByDir', - 'DefaultSorting2Dir' => 'product_OrderProductsThenByDir', + 'DefaultSorting2Dir' => 'product_OrderProductsThenByDir', - 'RatingDelayValue' => 'product_RatingDelay_Value', + 'RatingDelayValue' => 'product_RatingDelay_Value', - 'RatingDelayInterval' => 'product_RatingDelay_Interval', + 'RatingDelayInterval' => 'product_RatingDelay_Interval', - ), - ); + ), +); \ No newline at end of file