/** * * * @param * @access public * @return void */ public function initUserByCodeAdherent($code) { $param = array('code_adherent' => $code); $reponse = $this->webtod->getResponseParse('adherent', 'ServiceLireAdherent', $param, 'LireAdherent', 'ServiceLireAdherent_Response.xml'); if (!$this->userExist($reponse)) { $this->logout(); return false; } $this->code_adherent = $code; $this->informations = $reponse['body']['adherent']; $this->informations['autorise_dz'] = div::boolval($this->informations['autorise_dz']); $this->informations['autorise_lv'] = div::boolval($this->informations['autorise_lv']); $_SESSION['user']['code_adherent'] = $this->code_adherent; $_SESSION['user']['informations'] = $this->informations; return true; }