Index: branches/5.2.x/units/affiliate_plans_brackets/affiliate_plans_brackets_config.php =================================================================== diff -u -N -r14258 -r16385 --- branches/5.2.x/units/affiliate_plans_brackets/affiliate_plans_brackets_config.php (.../affiliate_plans_brackets_config.php) (revision 14258) +++ branches/5.2.x/units/affiliate_plans_brackets/affiliate_plans_brackets_config.php (.../affiliate_plans_brackets_config.php) (revision 16385) @@ -1,6 +1,6 @@ 'apbrackets', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'AffiliatePlansBracketsEventHandler','file'=>'affiliate_plans_brackets_event_handler.php','build_event'=>'OnBuild'), - 'TagProcessorClass' => Array('class'=>'AffiliatePlansBracketsTagProcessor','file'=>'affiliate_plans_brackets_tag_processor.php','build_event'=>'OnBuild'), - 'AutoLoad' => true, +$config = Array ( + 'Prefix' => 'apbrackets', + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'EventHandlerClass' => Array ('class' => 'AffiliatePlansBracketsEventHandler', 'file' => 'affiliate_plans_brackets_event_handler.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'AffiliatePlansBracketsTagProcessor', 'file' => 'affiliate_plans_brackets_tag_processor.php', 'build_event' => 'OnBuild'), + 'AutoLoad' => true, - 'Hooks' => Array( - Array( - 'Mode' => hBEFORE, - 'Conditional' => true, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '', - 'HookToEvent' => Array('OnPreSave'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnArrange', - ), - ), + 'Hooks' => Array ( + Array ( + 'Mode' => hBEFORE, + 'Conditional' => true, + 'HookToPrefix' => '#PARENT#', + 'HookToSpecial' => '', + 'HookToEvent' => Array ('OnPreSave'), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnArrange', + ), + ), - 'QueryString' => Array( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - ), - 'IDField' => 'AffiliateBracketId', + 'QueryString' => Array ( + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + ), + 'IDField' => 'AffiliateBracketId', - 'TableName' => TABLE_PREFIX.'AffiliatePlansBrackets', + 'TableName' => TABLE_PREFIX.'AffiliatePlansBrackets', - 'ListSQLs' => Array( ''=>'SELECT * FROM %s'), + 'ListSQLs' => Array ( + '' => ' SELECT * + FROM %s' + ), - 'ItemSQLs' => Array( ''=>'SELECT * FROM %s'), + 'ForeignKey' => 'AffiliatePlanId', + 'ParentTableKey' => 'AffiliatePlanId', + 'ParentPrefix' => 'ap', + 'AutoDelete' => true, + 'AutoClone' => true, - 'ForeignKey' => 'AffiliatePlanId', - 'ParentTableKey' => 'AffiliatePlanId', - 'ParentPrefix' => 'ap', - 'AutoDelete' => true, - 'AutoClone' => true, - - 'Fields' => Array( - 'AffiliateBracketId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'AffiliatePlanId' => Array('type' => 'int','not_null' => 1, 'default' => 0), - 'FromAmount' => Array('type' => 'double', 'formatter'=>'kFormatter', 'format'=>'%.02f', 'not_null' => '1','default' => '0'), - 'ToAmount' => Array('type' => 'double', 'formatter'=>'kFormatter', 'format'=>'%.02f', 'not_null' => '1','default' => '0'), - 'Percent' => Array('type' => 'double','not_null' => '1','default' => '0.00'), - ), - - ); \ No newline at end of file + 'Fields' => Array ( + 'AffiliateBracketId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), + 'AffiliatePlanId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'FromAmount' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%.02f', 'not_null' => '1', 'default' => '0'), + 'ToAmount' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%.02f', 'not_null' => '1', 'default' => '0'), + 'Percent' => Array ('type' => 'double', 'not_null' => '1', 'default' => '0.00'), + ), +); \ No newline at end of file