// Some fix + multistore for import tools

This commit is contained in:
rMalie
2011-07-07 12:18:27 +00:00
parent 1c7225b4dc
commit 52be7fe939
7 changed files with 252 additions and 128 deletions
+13
View File
@@ -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);
}
}