Index: branches/5.2.x/units/payment_type_currencies/payment_type_currencies_config.php =================================================================== diff -u -N -r14582 -r16385 --- branches/5.2.x/units/payment_type_currencies/payment_type_currencies_config.php (.../payment_type_currencies_config.php) (revision 14582) +++ branches/5.2.x/units/payment_type_currencies/payment_type_currencies_config.php (.../payment_type_currencies_config.php) (revision 16385) @@ -1,6 +1,6 @@ 'ptc', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), - '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'), - 'AutoLoad' => true, - 'hooks' => Array(), - 'QueryString' => Array( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), +$config = Array ( + 'Prefix' => 'ptc', + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + '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'), - 'Hooks' => Array( - Array( - 'Mode' => hBEFORE, - 'Conditional' => false, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '', - 'HookToEvent' => Array( 'OnPreSaveAndGoToTab', 'OnPreSaveAndGo', 'OnPreSave' ), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnCreate', - ), - ), - 'IDField' => 'PaymentTypeCurrencyId', - 'TableName' => TABLE_PREFIX.'PaymentTypeCurrencies', - 'ParentTableKey' => 'PaymentTypeId', // linked field in master table - 'ForeignKey' => 'PaymentTypeId', // linked field in subtable - 'ParentPrefix' => 'pt', - 'AutoDelete' => true, + 'AutoLoad' => true, - 'SubItems' => Array(), + 'QueryString' => Array ( + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), - 'ListSQLs' => Array( ''=> 'SELECT * FROM %s'), - // key - special, value - list select sql - 'ItemSQLs' => Array( ''=> 'SELECT * FROM %s'), + 'Hooks' => Array ( + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '', + 'HookToEvent' => Array ( 'OnPreSaveAndGoToTab', 'OnPreSaveAndGo', 'OnPreSave' ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnCreate', + ), + ), - 'ListSortings' => Array(), - 'Fields' => Array - ( - 'PaymentTypeCurrencyId' => 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), - ), - ); \ No newline at end of file + 'IDField' => 'PaymentTypeCurrencyId', + 'TableName' => TABLE_PREFIX.'PaymentTypeCurrencies', + 'ParentTableKey' => 'PaymentTypeId', // linked field in master table + 'ForeignKey' => 'PaymentTypeId', // linked field in subtable + 'ParentPrefix' => 'pt', + 'AutoDelete' => true, + + 'SubItems' => Array (), + + 'ListSQLs' => Array ( + ''=> ' SELECT * + FROM %s' + ), + + 'ListSortings' => Array (), + + 'Fields' => Array ( + 'PaymentTypeCurrencyId' => 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), + ), +); \ No newline at end of file