2015-07-29 17:53:14 +02:00

64 lines
2.4 KiB
PHP

<?php
class Shop extends ShopCore
{
protected static function init()
{
Shop::$id_shop_default_tables = array('product', 'category');
$asso_tables = array(
'carrier' => array('type' => 'shop'),
'carrier_lang' => array('type' => 'fk_shop'),
'category' => array('type' => 'shop'),
'category_lang' => array('type' => 'fk_shop'),
'cms' => array('type' => 'shop'),
'cms_category' => array('type' => 'shop'),
'contact' => array('type' => 'shop'),
'country' => array('type' => 'shop'),
'currency' => array('type' => 'shop'),
'employee' => array('type' => 'shop'),
'hook_module' => array('type' => 'fk_shop'),
'hook_module_exceptions' => array('type' => 'fk_shop', 'primary' => 'id_hook_module_exceptions'),
'image' => array('type' => 'shop'),
'lang' => array('type' => 'shop'),
'meta_lang' => array('type' => 'fk_shop'),
'module' => array('type' => 'shop'),
'module_currency' => array('type' => 'fk_shop'),
'module_country' => array('type' => 'fk_shop'),
'module_group' => array('type' => 'fk_shop'),
'product' => array('type' => 'shop'),
'product_attribute' => array('type' => 'shop'),
'product_lang' => array('type' => 'fk_shop'),
'referrer' => array('type' => 'shop'),
'scene' => array('type' => 'shop'),
'store' => array('type' => 'shop'),
'webservice_account' => array('type' => 'shop'),
'warehouse' => array('type' => 'shop'),
'stock_available' => array('type' => 'fk_shop', 'primary' => 'id_stock_available'),
'carrier_tax_rules_group_shop' => array('type' => 'fk_shop'),
'attribute' => array('type' => 'shop'),
'feature' => array('type' => 'shop'),
'group' => array('type' => 'shop'),
'attribute_group' => array('type' => 'shop'),
'tax_rules_group' => array('type' => 'shop'),
'zone' => array('type' => 'shop'),
'manufacturer' => array('type' => 'shop'),
'supplier' => array('type' => 'shop'),
'cmsps_categories' => array('type' => 'shop'),
'cmsps_categories_lang' => array('type' => 'fk_shop'),
'cmsps_posts' => array('type' => 'shop'),
'cmsps_posts_lang' => array('type' => 'fk_shop'),
'cmsps_editos' => array('type' => 'shop'),
'cmsps_editos_lang' => array('type' => 'fk_shop'),
'seourl' => array('type' => 'shop'),
'seourl_lang' => array('type' => 'fk_shop'),
);
foreach ($asso_tables as $table_name => $table_details)
Shop::addTableAssociation($table_name, $table_details);
Shop::$initialized = true;
}
}