<?php
/**
* @version	$Id: destinations_config.php 13156 2010-02-23 20:11:38Z alex $
* @package	In-Commerce
* @copyright	Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
* @license	Commercial License
* This software is protected by copyright law and international treaties.
* Unauthorized reproduction or unlicensed usage of the code of this program,
* or any portion of it may result in severe civil and criminal penalties,
* and will be prosecuted to the maximum extent possible under the law
* See http://www.in-portal.org/commercial-license for copyright notices and details.
*/

defined('FULL_PATH') or die('restricted access!');

	$config =	Array(
					'Prefix'			=>	'dst',
					'ItemClass'			=>	Array('class'=>'kDBItem','file'=>'images.php','build_event'=>'OnItemBuild'),
					'ListClass'			=>	Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'),
					'EventHandlerClass'	=>	Array('class'=>'DstEventHandler','file'=>'dst_event_handler.php','build_event'=>'OnBuild'),
					'TagProcessorClass' =>	Array('class'=>'kDBTagProcessor','file'=>'','build_event'=>'OnBuild'),
					'AutoLoad'			=>	true,
					'Hooks'				=>	Array(
							Array(
								'Mode' => hAFTER,
								'Conditional' => false,
								'HookToPrefix' => '#PARENT#',
								'HookToSpecial' => '',
								'HookToEvent' => Array( 'OnCreate', 'OnUpdate'),
								'DoPrefix' => '',
								'DoSpecial' => '',
								'DoEvent' => 'OnZoneUpdate',
							),
						),
					'QueryString'		=>	Array(
												1 => 'id',
												2 => 'Page',
												3 => 'PerPage',
												4 => 'event',
											),
					'IDField'			=>	'ZoneDestId',
					'TableName'			=>	TABLE_PREFIX.'ShippingZonesDestinations',
					'ForeignKey' 	=> 	'ShippingZoneId',
					'ParentTableKey'	=> 'ZoneID',
					'ParentPrefix'	=> 'z',
					'AutoDelete'	=>	true,
					'AutoClone'	=> true,

					'ListSQLs'			=>	Array(	''=>'SELECT * FROM %s',
																		), // key - special, value - list select sql
					'ItemSQLs'			=>	Array(	''=>'SELECT * FROM %s',
																		),

					'Fields' => Array (
					    'ZoneDestId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0, ),
			            'ShippingZoneId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0, ),
			            'StdDestId' => Array('type' => 'int', 'default' => 0, ),
			            'DestValue' => Array('type' => 'string', 'max_len' => 255, 'default' => null, ),
					),
					/*'Grids'	=> Array(
								'Default'		=>	Array(
																	'Icons' => Array(
																		'default' => 'icon16_item.gif',
																		1 => 'icon16_item.gif',
																		0 => 'icon16_disabled.gif'
																		'module' => 'core',
																	),
																	'Fields' => Array(
																			'Name' => Array( 'title'=>'la_col_ImageName' , 'data_block' => 'grid_checkbox_td'),
																			'AltName' => Array( 'title'=>'la_col_AltName' ),
																			'Url' => Array( 'title'=>'la_col_ImageUrl', 'data_block' => 'image_url_td' ),
																			'Enabled' => Array( 'title'=>'la_col_ImageEnabled' ),
																			'Preview' => Array( 'title'=>'la_col_Preview', 'data_block' => 'preview' ),
																		),

																),
													),*/
	);