// remove 1.4 deprecated functions
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7755 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -154,23 +154,6 @@ class PackCore extends Product
|
||||
return Db::getInstance()->Execute('DELETE FROM `'._DB_PREFIX_.'pack` WHERE `id_product_pack` = '.(int)($id_product));
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public static function addItems($id_product, $ids)
|
||||
{
|
||||
Tools::displayAsDeprecated();
|
||||
|
||||
array_pop($ids);
|
||||
foreach ($ids as $id_product_item)
|
||||
{
|
||||
$idQty = explode('x', $id_product_item);
|
||||
if (!self::addItem($id_product, $idQty[1], $idQty[0]))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add an item to the pack
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user