valeur = $session->ciblage; } protected function setSession() { $session = new Zend_Session_Namespace('ciblage'); $session->ciblage = $this->valeur; } public function setCritere($key, $value) { if(in_array($key, $this->criteres)) { $this->valeur[$key] = $value; $this->setSession(); } } public function setCriteres($criteres){} public function unsetCritere($key) { if(key_exists($key, $this->valeur)) { unset($this->valeur[$key]); $this->setSession(); } } public function getCritere($key) { if(in_array($key, $this->criteres) && in_array($key, $this->valeur)) { return $this->valeur[$key]; } return null; } public function getCriteres() { return $this->valeur; } }