Page MenuHomeIn-Portal Phabricator

taxesdestinations_config.php
No OneTemporary

File Metadata

Created
Fri, Sep 19, 10:13 PM

taxesdestinations_config.php

<?php
/**
* @version $Id: taxesdestinations_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' => 'taxdst',
'ItemClass' => Array ('class' => 'kDBItem', 'file' => 'images.php', 'build_event' => 'OnItemBuild'),
'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'),
'EventHandlerClass' => Array ('class' => 'TaxDstEventHandler', 'file' => 'taxes_dst_event_handler.php', 'build_event' => 'OnBuild'),
'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'),
'AutoLoad' => true,
'QueryString' => Array (
1 => 'id',
2 => 'Page',
3 => 'PerPage',
4 => 'event',
),
'Hooks' => Array (
/*Array (
'Mode' => hAFTER,
'Conditional' => true,
'HookToPrefix' => 'tax',
'HookToSpecial' => '',
'HookToEvent' => Array ( 'onPreSave', 'onPreSaveAndGo' ),
'DoPrefix' => '',
'DoSpecial' => '',
'DoEvent' => 'OnSaveDestinations',
),*/
Array (
'Mode' => hAFTER,
'Conditional' => false,
'HookToPrefix' => '#PARENT#',
'HookToSpecial' => '',
'HookToEvent' => Array ( 'OnPreSave', 'OnUpdate'),
'DoPrefix' => '',
'DoSpecial' => '',
'DoEvent' => 'OnZoneUpdate',
),
),
//OnAfterItemUpdate
'IDField' => 'TaxZoneDestId',
'TableName' => TABLE_PREFIX.'TaxZonesDestinations',
'ParentTableKey'=> 'TaxZoneId', // linked field in master table
'ForeignKey' => 'TaxZoneId', // linked field in subtable
'ParentPrefix' => 'tax',
'AutoDelete' => true,
'AutoClone' => true,
'ListSQLs' => Array (
'' => ' SELECT *
FROM %s',
),
'Fields' => Array (
'TaxZoneDestId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0),
'TaxZoneId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0),
'StdDestId' => Array ('type' => 'int', 'default' => 0),
'DestValue' => Array ('type' => 'string', 'max_len' => 255, 'default' => NULL),
),
);

Event Timeline