Index: branches/5.2.x/core/units/custom_data/custom_data_config.php =================================================================== diff -u -N -r14244 -r16388 --- branches/5.2.x/core/units/custom_data/custom_data_config.php (.../custom_data_config.php) (revision 14244) +++ branches/5.2.x/core/units/custom_data/custom_data_config.php (.../custom_data_config.php) (revision 16388) @@ -1,6 +1,6 @@ 'cdata', +$config = Array ( + 'Prefix' => 'cdata', - 'QueryString' => Array ( - 1 => 'id', - 2 => 'event', - ), + 'QueryString' => Array ( + 1 => 'id', + 2 => 'event', + ), - 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class' => 'CustomDataEventHandler', 'file' => 'custom_data_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), - 'AutoLoad' => true, + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'EventHandlerClass' => Array ('class' => 'CustomDataEventHandler', 'file' => 'custom_data_event_handler.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), - 'IDField' => 'CustomDataId', + 'AutoLoad' => true, - 'ParentTableKey' => 'ResourceId', - 'ForeignKey' => 'ResourceId', - 'AutoDelete' => true, - 'AutoClone' => true, + 'IDField' => 'CustomDataId', - 'CalculatedFields' => Array ( - '' => Array(), - ), + 'ParentTableKey' => 'ResourceId', + 'ForeignKey' => 'ResourceId', + 'AutoDelete' => true, + 'AutoClone' => true, - 'ListSQLs' => Array('' => 'SELECT %1$s.* %2$s FROM %1$s'), - 'ItemSQLs' => Array('' => 'SELECT %1$s.* %2$s FROM %1$s'), + 'CalculatedFields' => Array ( + '' => Array (), + ), - 'Fields' => Array ( - 'CustomDataId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ResourceId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), - ), - ); \ No newline at end of file + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM %1$s' + ), + + 'Fields' => Array ( + 'CustomDataId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ResourceId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + ), +); \ No newline at end of file