select() ->where('login = ?', $login); $result = $this->getAdapter()->fetchAll($sql); return ($result); } public function getCommandesGiantByDate($date) { $sql = $this->select() ->where('date = ?', $date); $result = $this->getAdapter()->fetchAll($sql); return ($result); } public function getCommandesGiantByLoginAndDate($login, $date) { $sql = $this->select() ->where('login = ?', $login) ->where('date = ?', $date); $result = $this->getAdapter()->fetchAll($sql); return ($result); } public function getCommandesGiantLoginDateReportType($login, $date, $type, $pays) { $sql = $this->select() ->where('login = ?', $login) ->where('typeReport = ?', $type) ->where('date = ?', $date) ->where('pays = ?', $pays); $result = $this->getAdapter()->fetchRow($sql); return ($result['id']); } } ?>