// Some fix + multistore for import tools
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7546 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -125,4 +125,17 @@ class GroupShopCore extends ObjectModel
|
||||
FROM '._DB_PREFIX_.'shop s
|
||||
WHERE id_group_shop='.(int)$this->id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a group shop ID from group shop name
|
||||
*
|
||||
* @param string $name
|
||||
* @return int
|
||||
*/
|
||||
public static function getIdByName($name)
|
||||
{
|
||||
$sql = 'SELECT id_group_shop FROM '._DB_PREFIX_.'group_shop
|
||||
WHERE name = \''.pSQL($name).'\'';
|
||||
return (int)Db::getInstance()->getValue($sql);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user