Skip to content
Snippets Groups Projects
Verified Commit d9679eea authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #9685 remove functions

parent fe096425
No related branches found
No related tags found
No related merge requests found
......@@ -260,32 +260,6 @@ abstract class basket_Abstract extends Database
}
}
/**
* Loads the baskets datas into session variables
*
*/
public function load_basket($primaryGroup, $userId)
{
$arr = array();
$db = new Database();
$stmt = $db->query(
"SELECT gb.basket_id FROM " . GROUPBASKET_TABLE . " gb, "
. BASKET_TABLE . " b WHERE gb.group_id = ? and gb.basket_id = b.basket_id order by b.basket_order, b.basket_name ",
array($primaryGroup)
);
// $db->show();
while ($res = $stmt->fetchObject()) {
$tmp = $this->get_baskets_data(
$res->basket_id,
$userId,
$primaryGroup
);
//$this->show_array($tmp);
array_push($arr, $tmp);
}
return $arr;
}
public function load_basket_abs($userId)
{
$user = \User\models\UserModel::getByLogin(['login' => $userId, 'select' => ['id']]);
......@@ -860,22 +834,4 @@ abstract class basket_Abstract extends Database
return $tab;
}
public function is_redirect_to_action_basket($basketId, $groupId)
{
$db = new Database();
$stmt = $db->query(
"select result_page from " . GROUPBASKET_TABLE
. " where group_id = ? and basket_id = ?",
array($groupId,$basketId)
);
$res = $stmt->fetchObject();
$basketIdPage = $res->result_page;
if ($basketIdPage == 'redirect_to_action') {
return true;
} else {
return false;
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment