Index: branches/5.3.x/units/destinations/destinations_config.php =================================================================== diff -u -N -r15492 -r15656 --- branches/5.3.x/units/destinations/destinations_config.php (.../destinations_config.php) (revision 15492) +++ branches/5.3.x/units/destinations/destinations_config.php (.../destinations_config.php) (revision 15656) @@ -1,6 +1,6 @@ 'dst', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'images.php','build_event'=>'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'DstEventHandler','file'=>'dst_event_handler.php','build_event'=>'OnBuild'), - 'TagProcessorClass' => Array('class'=>'kDBTagProcessor','file'=>'','build_event'=>'OnBuild'), - 'AutoLoad' => true, - 'Hooks' => Array( - Array( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '', - 'HookToEvent' => Array( 'OnCreate', 'OnUpdate'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnZoneUpdate', - ), - ), - 'QueryString' => Array( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), - 'IDField' => 'ZoneDestId', - 'TableName' => TABLE_PREFIX.'ShippingZonesDestinations', - 'ForeignKey' => 'ShippingZoneId', - 'ParentTableKey' => 'ZoneID', - 'ParentPrefix' => 'z', - 'AutoDelete' => true, - 'AutoClone' => true, +$config = Array ( + 'Prefix' => 'dst', + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => 'images.php', 'build_event' => 'OnItemBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'EventHandlerClass' => Array ('class' => 'DstEventHandler', 'file' => 'dst_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 ( - 'ZoneDestId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0, ), - 'ShippingZoneId' => 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 + 'Hooks' => Array ( + Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '', + 'HookToEvent' => Array ( 'OnCreate', 'OnUpdate'), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnZoneUpdate', + ), + ), + + 'QueryString' => Array ( + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), + + 'IDField' => 'ZoneDestId', + 'TableName' => TABLE_PREFIX.'ShippingZonesDestinations', + 'ForeignKey' => 'ShippingZoneId', + 'ParentTableKey' => 'ZoneID', + 'ParentPrefix' => 'z', + 'AutoDelete' => true, + 'AutoClone' => true, + + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s', + ), + + 'Fields' => Array ( + 'ZoneDestId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), + 'ShippingZoneId' => 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