<?php
/**
* @version	$Id: user_profile_config.php 12734 2009-10-20 19:28:11Z alex $
* @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' => 'user-profile',
		'ItemClass' => Array('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'),
		'ListClass' => Array('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'),
		'EventHandlerClass' => Array('class' => 'UserProfileEventHandler', 'file' => 'user_profile_eh.php', 'build_event' => 'OnBuild'),
		'TagProcessorClass' => Array('class' => 'UserProfileTagProcessor', 'file' => 'user_profile_tp.php', 'build_event' => 'OnBuild'),

		'QueryString' => Array (
			1 => 'id',
			2 => 'Page',
			3 => 'event',
			4 => 'mode',
		),

		'IDField' => 'VariableId',
		'TableName' => TABLE_PREFIX.'PersistantSessionData',

		'ForeignKey' => 'PortalUserId',
		'ParentTableKey' => 'PortalUserId',
		'ParentPrefix' => 'u',
		'AutoDelete' =>	true,
		'AutoClone' => true,

		'ListSQLs' => Array('' => 'SELECT %1$s.* %2$s FROM %1$s',),
		'ItemSQLs' => Array('' => 'SELECT %1$s.* %2$s FROM %1$s',),

		'Fields' => Array (
			'VariableId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0),
			'PortalUserId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0),
		    'VariableName' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''),
		    'VariableValue' => Array ('type' => 'string', 'default' => NULL),
	    ),
	);