// 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:
@@ -141,38 +141,6 @@ class CMSCore extends ObjectModel
|
||||
ORDER BY c.`position`');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public static function isInBlock($id_cms, $id_block)
|
||||
{
|
||||
Tools::displayAsDeprecated();
|
||||
Db::getInstance()->getRow('
|
||||
SELECT id_cms FROM '._DB_PREFIX_.'block_cms
|
||||
WHERE id_block = '.(int)($id_block).' AND id_cms = '.(int)($id_cms));
|
||||
|
||||
return (Db::getInstance()->NumRows());
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public static function updateCmsToBlock($cms, $id_block)
|
||||
{
|
||||
Tools::displayAsDeprecated();
|
||||
Db::getInstance()->Execute('DELETE FROM `'._DB_PREFIX_.'block_cms` WHERE `id_block` = '.(int)($id_block));
|
||||
|
||||
$list = '';
|
||||
foreach ($cms AS $id_cms)
|
||||
$list .= '('.(int)($id_block).', '.(int)($id_cms).'),';
|
||||
$list = rtrim($list, ',');
|
||||
|
||||
if (!empty($list))
|
||||
Db::getInstance()->Execute('INSERT INTO '._DB_PREFIX_.'block_cms (id_block, id_cms) VALUES '.pSQL($list));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public function updatePosition($way, $position)
|
||||
{
|
||||
if (!$res = Db::getInstance()->ExecuteS('
|
||||
|
||||
Reference in New Issue
Block a user