Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F802312
in-portal
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Feb 22, 3:10 PM
Size
2 KB
Mime Type
text/x-diff
Expires
Mon, Feb 24, 3:10 PM (8 h, 27 m)
Engine
blob
Format
Raw Data
Handle
573014
Attached To
rINP In-Portal
in-portal
View Options
Index: branches/5.1.x/core/units/favorites/favorites_config.php
===================================================================
--- branches/5.1.x/core/units/favorites/favorites_config.php (revision 14520)
+++ branches/5.1.x/core/units/favorites/favorites_config.php (revision 14521)
@@ -1,72 +1,72 @@
<?php
/**
* @version $Id$
* @package In-Portal
* @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
* @license GNU/GPL
* In-Portal is Open Source software.
* This means that this software may have been modified pursuant
* the GNU General Public License, and as distributed it includes
* or is derivative of works licensed under the GNU General Public License
* or other free or open source software licenses.
* See http://www.in-portal.org/license for copyright notices and details.
*/
defined('FULL_PATH') or die('restricted access!');
$config = Array (
'Prefix' => '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,
'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 => 'PerPage',
4 => 'event',
),
'IDField' => 'FavoriteId',
'TableName' => TABLE_PREFIX.'Favorites',
'ParentTableKey' => 'PortalUserId',
'ForeignKey' => 'PortalUserId',
'ParentPrefix' => 'u',
'AutoDelete' => true,
- 'AutoClone' => true,
+ 'AutoClone' => false,
'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
Event Timeline
Log In to Comment