<?php
/**
* @version	$Id: payment_type_currencies_config.php 16385 2016-08-11 08:15:43Z 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' => 'ptc',
	'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'),
	'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'),
	'EventHandlerClass' => Array ('class' => 'PaymentTypeCurrenciesEventHandler', 'file' => 'payment_type_currencies_event_handler.php', 'build_event' => 'OnBuild'),
	'TagProcessorClass' => Array ('class' => 'PaymentTypeCurrenciesTagProcessor', 'file' => 'payment_type_currencies_tag_processor.php', 'build_event' => 'OnBuild'),

	'AutoLoad' => true,

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

	'Hooks' => Array (
		Array (
			'Mode' => hBEFORE,
			'Conditional' => false,
			'HookToPrefix' => '#PARENT#',
			'HookToSpecial' => '',
			'HookToEvent' => Array ( 'OnPreSaveAndGoToTab', 'OnPreSaveAndGo', 'OnPreSave' ),
			'DoPrefix' => '',
			'DoSpecial' => '',
			'DoEvent' => 'OnCreate',
		),
	),

	'IDField' => 'PaymentTypeCurrencyId',
	'TableName' => TABLE_PREFIX.'PaymentTypeCurrencies',
	'ParentTableKey' => 'PaymentTypeId',	// linked field in master table
	'ForeignKey' => 'PaymentTypeId',	// linked field in subtable
	'ParentPrefix' => 'pt',
	'AutoDelete' => true,

	'SubItems' => Array (),

	'ListSQLs' => Array (
		''=> '	SELECT *
				FROM %s'
	),

	'ListSortings' => Array (),

	'Fields' => Array (
		'PaymentTypeCurrencyId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0),
		'PaymentTypeId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0),
		'CurrencyId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0),
	),
);