_db = Zend_Db::factory($configuration->databases->db->sdv1); } elseif(empty($config)){ $dbConfig = new Zend_Config_Ini(APPLICATION_PATH.'/configs/configuration.ini', 'databases'); $this->_db = Zend_Db::factory($dbConfig->db->sdv1); } } public function getStatut() { $sql = $this->select()->order('ordre ASC'); $result = $this->fetchAll($sql); return $result; } public function getStatutByTypeCommande($type) { $sql = $this->select() ->where('typeCommande = ?', $type) ->order('ordre ASC'); $result = $this->fetchAll($sql); return $result; } }