Index: branches/5.3.x/units/gateway_field_values/gateway_field_values_config.php =================================================================== diff -u -N -r15492 -r15656 --- branches/5.3.x/units/gateway_field_values/gateway_field_values_config.php (.../gateway_field_values_config.php) (revision 15492) +++ branches/5.3.x/units/gateway_field_values/gateway_field_values_config.php (.../gateway_field_values_config.php) (revision 15656) @@ -1,6 +1,6 @@ 'gwfv', - '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' => false, - 'hooks' => Array(), - 'QueryString' => Array( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), - 'IDField' => 'GWConfigValueId', - 'TableName' => TABLE_PREFIX.'GatewayConfigValues', - 'ForeignKey' => 'PaymentTypeId', - 'ParentTableKey' => 'PaymentTypeId', - 'ParentPrefix' => 'pt', - 'AutoDelete' => true, - 'AutoClone' => true, +$config = Array ( + 'Prefix' => 'gwfv', + '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'), - 'ListSQLs' => Array (''=>'SELECT * FROM %s' - ), // key - special, value - list select sql - 'ItemSQLs' => Array( ''=>'SELECT * FROM %s', - ), + 'AutoLoad' => false, - 'Fields' => Array ( - 'GWConfigValueId' => 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, ), - 'Value' => Array('type' => 'string', 'max_len' => 255, 'default' => null, ), - ), - ); \ No newline at end of file + 'QueryString' => Array ( + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), + + 'IDField' => 'GWConfigValueId', + 'TableName' => TABLE_PREFIX.'GatewayConfigValues', + 'ForeignKey' => 'PaymentTypeId', + 'ParentTableKey' => 'PaymentTypeId', + 'ParentPrefix' => 'pt', + 'AutoDelete' => true, + 'AutoClone' => true, + + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s' + ), + + 'Fields' => Array ( + 'GWConfigValueId' => 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, ), + 'Value' => Array ('type' => 'string', 'max_len' => 255, 'default' => null, ), + ), +); \ No newline at end of file