Index: branches/5.2.x/units/shipping_costs/shipping_costs_config.php =================================================================== diff -u -r14582 -r16385 --- branches/5.2.x/units/shipping_costs/shipping_costs_config.php (.../shipping_costs_config.php) (revision 14582) +++ branches/5.2.x/units/shipping_costs/shipping_costs_config.php (.../shipping_costs_config.php) (revision 16385) @@ -1,6 +1,6 @@ 'sc', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'ShippingCostsEventHandler','file'=>'shipping_costs_event_handler.php','build_event'=>'OnBuild'), - 'TagProcessorClass' => Array('class'=>'kDBTagProcessor','file'=>'','build_event'=>'OnBuild'), - 'AutoLoad' => true, - 'Hooks' => Array( - Array( - 'Mode' => hAFTER, - 'Conditional' => true, - 'HookToPrefix' => 's', - 'HookToSpecial' => '', - 'HookToEvent' => Array( 'OnPreSaveAndGoToTab', 'OnPreSaveAndGo', 'OnPreSave', 'OnFlip', 'OnApplyModifier' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnCreate', - ), - ), - 'QueryString' => Array( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), - 'IDField' => 'ShippingCostId', - 'TableName' => TABLE_PREFIX.'ShippingCosts', - 'ForeignKey' => Array('z' => 'ZoneID', 'br' => 'BracketId'), - 'ParentTableKey' => Array('z' => 'ZoneID', 'br' => 'BracketId'), - 'ParentPrefix' => 'z', - 'AutoDelete' => true, - 'AutoClone' => true, +$config = Array ( + 'Prefix' => 'sc', + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'EventHandlerClass' => Array ('class' => 'ShippingCostsEventHandler', 'file' => 'shipping_costs_event_handler.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), - 'ListSQLs' => Array( ''=> 'SELECT * FROM %s'), - // key - special, value - list select sql - 'ItemSQLs' => Array( ''=> 'SELECT * FROM %s'), + 'AutoLoad' => true, - 'Fields' => Array( - 'ShippingCostId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ZoneID' => 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), - 'PerUnit' => Array('type' => 'double', 'formatter' => 'kFormatter', 'default' => 0), - ), - ); \ No newline at end of file + 'Hooks' => Array ( + Array ( + 'Mode' => hAFTER, + 'Conditional' => true, + 'HookToPrefix' => 's', + 'HookToSpecial' => '', + 'HookToEvent' => Array ( 'OnPreSaveAndGoToTab', 'OnPreSaveAndGo', 'OnPreSave', 'OnFlip', 'OnApplyModifier' ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnCreate', + ), + ), + + 'QueryString' => Array ( + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), + + 'IDField' => 'ShippingCostId', + 'TableName' => TABLE_PREFIX.'ShippingCosts', + 'ForeignKey' => Array ('z' => 'ZoneID', 'br' => 'BracketId'), + 'ParentTableKey' => Array ('z' => 'ZoneID', 'br' => 'BracketId'), + 'ParentPrefix' => 'z', + 'AutoDelete' => true, + 'AutoClone' => true, + + 'ListSQLs' => Array ( + ''=> ' SELECT * + FROM %s' + ), + + 'Fields' => Array ( + 'ShippingCostId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ZoneID' => 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), + 'PerUnit' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'default' => 0), + ), +); \ No newline at end of file