// Multishop for referrers

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7583 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-07-11 13:03:26 +00:00
parent 8bf1b23239
commit 4f3aad65e3
11 changed files with 239 additions and 144 deletions
+12
View File
@@ -71,6 +71,7 @@ class ShopCore extends ObjectModel
'stock' => array('type' => 'fk_shop', 'primary' => 'id_stock'),
'product' => array('type' => 'shop'),
'product_lang' => array('type' => 'fk_shop'),
'referrer' => array('type' => 'shop'),
'store' => array('type' => 'shop'),
'webservice_account' => array('type' => 'shop'),
);
@@ -103,6 +104,17 @@ class ShopCore extends ObjectModel
return $fields;
}
/**
* Get an instance of a shop
*
* @param int $id shop ID
* @return Shop
*/
public static function getInstance($id)
{
return new Shop($id);
}
public static function getAssoTables()
{
return self::$assoTables;