<?php
/**
* @version	$Id: statistics_config.php 13159 2010-02-24 10:45:00Z 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'			=>	'stat',
					'ItemClass'			=>	Array('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'),
					'ListClass'			=>	Array('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'),
					'EventHandlerClass'	=>	Array('class' => 'StatisticsEventHandler', 'file' => 'statistics_event_handler.php', 'build_event' => 'OnBuild'),
					'TagProcessorClass' =>	Array('class' => 'StatisticsTagProcessor', 'file' => 'statistics_tag_processor.php', 'build_event' => 'OnBuild'),

					'AutoLoad'			=>	true,

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

					'IDField' 			=>	'StatItemId',

					'TitleField'		=>	'ListLabel',

					'TitlePresets'		=>	Array(
												'statistics_list'		=>	Array('prefixes' => Array('stat_List'), 'format' => "!la_title_Statistics!"),
											),

					'TableName'			=>	TABLE_PREFIX.'StatItem',

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

					'ListSortings'	=> 	Array(
																'' => Array(
																	'Sorting' => Array('Priority' => 'asc'),
																)
															),

					'Fields' => Array(
								        'StatItemId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0),
							            'Module' => Array('type' => 'string','not_null' => '1','default' => ''),
							            'ValueSQL' => Array('type' => 'string','default' => null),
							            'ResetSQL' => Array('type' => 'string','default' => null),
							            'ListLabel' => Array('type' => 'string','not_null' => 1, 'default' => ''),
							            'Priority' => Array('type' => 'int','not_null' => 1, 'default' => 0),
							            'AdminSummary' => Array('type' => 'int','not_null' => 1, 'default' => 0),
							    ),



					'Grids'	=> Array(
										'Default'	=>	Array(
																'Icons' => Array('default' => 'icon16_item.png'),
																'Fields' => Array(
																					'Login'			=> Array('title' => 'la_col_Username', 'data_block' => 'grid_checkbox_td'),
																					'LastName'		=> Array( 'title'=>'la_col_LastName'),
																					'FirstName'		=> Array( 'title'=>'la_col_FirstName'),
																			),
														),


								),

	);