Exemplo n.º 1
0
 protected static function init()
 {
     JeproshopShopModelShop::$default_shop_tables_id = array('product', 'category');
     $associated_tables = array('category' => array('type' => 'shop'), 'category_lang' => array('type' => 'fk_shop'), 'contact' => array('type' => 'shop'), 'country' => array('type' => 'shop'), 'currency' => array('type' => 'shop'), 'employee' => array('type' => 'shop'), 'image' => array('type' => 'shop'), 'lang' => array('type' => 'shop'), 'meta_lang' => array('type' => 'fk_shop'), 'product' => array('type' => 'shop'), 'product_attribute' => array('type' => 'shop'), 'product_lang' => array('type' => 'fk_shop'), 'referrer' => array('type' => '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'), 'developer' => array('type' => 'shop'));
     foreach ($associated_tables as $tale_name => $table_details) {
         JeproshopShopModelShop::addTableAssociation($tale_name, $table_details);
     }
     JeproshopShopModelShop::$initialized = true;
 }