Index: trunk/kernel/units/favorites/favorites_config.php =================================================================== diff -u -N --- trunk/kernel/units/favorites/favorites_config.php (revision 8428) +++ trunk/kernel/units/favorites/favorites_config.php (revision 0) @@ -1,85 +0,0 @@ - 'fav', - 'ItemClass' => Array('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class' => 'FavoritesEventHandler', 'file' => 'favorites_eh.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), - - 'AutoLoad' => true, - - 'Clones' => Array ( - 'l-fav' => Array( - 'ParentPrefix' => 'l', - 'ParentTableKey' => 'ResourceId', - 'ForeignKey' => 'ResourceId', - ), - - 'n-fav' => Array ( - 'ParentPrefix' => 'n', - 'ParentTableKey' => 'ResourceId', - 'ForeignKey' => 'ResourceId', - ), - - 'bb-fav' => Array( - 'ParentPrefix' => 'bb', - 'ParentTableKey' => 'ResourceId', - 'ForeignKey' => 'ResourceId', - ), - - 'p-fav' => Array( - 'ParentPrefix' => 'p', - 'ParentTableKey' => 'ResourceId', - 'ForeignKey' => 'ResourceId', - ), - ), - - 'Hooks' => Array ( - Array( - 'Mode' => hAFTER, - 'Conditional' => false, - 'HookToPrefix' => '#PARENT#', - 'HookToSpecial' => '-item', // from OnMassDelete event - 'HookToEvent' => Array('OnAfterItemDelete'), - 'DoPrefix' => '', - 'DoSpecial' => '', - 'DoEvent' => 'OnDeleteFavoriteItem', - ), - ), - - 'QueryString' => Array ( - 1 => 'id', - 2 => 'page', - 3 => 'event', - ), - - 'IDField' => 'FavoriteId', - 'TableName' => TABLE_PREFIX.'Favorites', - - 'ParentTableKey' => 'PortalUserId', - 'ForeignKey' => 'PortalUserId', - 'ParentPrefix' => 'u', - - 'AutoDelete' => true, - 'AutoClone' => true, - - 'ListSQLs' => Array ('' => 'SELECT * FROM %s'), - 'ItemSQLs' => Array ('' => 'SELECT * FROM %s'), - - 'ListSortings' => Array ( - '' => Array( - 'Sorting' => Array('Modified' => 'desc'), - ) - ), - - 'Fields' => Array ( - 'FavoriteId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0,), - 'PortalUserId' => Array('type' => 'int','not_null' => 1, 'default' => 0), - 'ResourceId' => Array('type' => 'int','not_null' => 1, 'default' => 0), - 'ItemTypeId' => Array('type' => 'int','not_null' => 1, 'default' => 0), - 'Modified' => Array('type' => 'int','not_null' => 1, 'default' => '#NOW#'), - ), - ); - -?> \ No newline at end of file