Index: branches/5.3.x/units/gateways/gateways_config.php =================================================================== diff -u -N -r15492 -r15656 --- branches/5.3.x/units/gateways/gateways_config.php (.../gateways_config.php) (revision 15492) +++ branches/5.3.x/units/gateways/gateways_config.php (.../gateways_config.php) (revision 15656) @@ -1,6 +1,6 @@ 'gwf', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'GatewayEventHandler','file'=>'gw_event_handler.php','build_event'=>'OnBuild'), - 'TagProcessorClass' => Array('class'=>'GatewayTagProcessor','file'=>'gw_tag_processor.php','build_event'=>'OnBuild'), - 'AutoLoad' => true, - 'Hooks' => Array( - Array( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => 'pt', - 'HookToSpecial' => '', - 'HookToEvent' => Array( 'OnListBuild' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnCheckGateways', - ), - Array( - 'Mode' => hBEFORE, - 'Conditional' => true, - 'HookToPrefix' => 'pt', - 'HookToSpecial' => '', - 'HookToEvent' => Array( 'OnCreate', 'OnSave', 'OnUpdate', 'onPreSaveAndGoToTab', 'onPreSaveAndGo' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnSaveValues', - ), - ), - 'QueryString' => Array( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), - 'IDField' => 'GWConfigFieldId', - 'TableName' => TABLE_PREFIX.'GatewayConfigFields', +$config = Array ( + 'Prefix' => 'gwf', + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'EventHandlerClass' => Array ('class' => 'GatewayEventHandler', 'file' => 'gw_event_handler.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'GatewayTagProcessor', 'file' => 'gw_tag_processor.php', 'build_event' => 'OnBuild'), - 'ListSQLs' => Array ( - '' => 'SELECT * FROM %s', - ), // key - special, value - list select sql - - 'ItemSQLs' => Array ( - ''=>'SELECT * FROM %s', - ), + 'AutoLoad' => true, - 'Fields' => Array ( - 'GWConfigFieldId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0, ), - 'SystemFieldName' => Array('type' => 'string', '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', ), - 'ValueList' => Array('type' => 'string', 'default' => NULL), - 'GatewayId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0, ), - ), + 'Hooks' => Array ( + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => 'pt', + 'HookToSpecial' => '', + 'HookToEvent' => Array ( 'OnListBuild' ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnCheckGateways', + ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => true, + 'HookToPrefix' => 'pt', + 'HookToSpecial' => '', + 'HookToEvent' => Array ( 'OnCreate', 'OnSave', 'OnUpdate', 'onPreSaveAndGoToTab', 'onPreSaveAndGo' ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnSaveValues', + ), + ), - 'VirtualFields' => Array ( - 'Value' => Array('type' => 'string', 'default' => ''), - ), - ); \ No newline at end of file + 'QueryString' => Array ( + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), + + 'IDField' => 'GWConfigFieldId', + 'TableName' => TABLE_PREFIX.'GatewayConfigFields', + + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s', + ), + + 'Fields' => Array ( + 'GWConfigFieldId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), + 'SystemFieldName' => Array ('type' => 'string', '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', ), + 'ValueList' => Array ('type' => 'string', 'default' => NULL), + 'GatewayId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0, ), + ), + + 'VirtualFields' => Array ( + 'Value' => Array ('type' => 'string', 'default' => ''), + ), +); \ No newline at end of file