public function getImage($id) { $oBDD = new classBDD(); $image = $oBDD->selectByParam($this->table, array('idImage' => $id)); if (empty($image)) { return NULL; } $this->idImage = $image['idImage']; $this->nomImage = $image['nomImage']; $this->captionImage = $image['captionImage']; $this->real_Path = DIR_IMG . $image['real_path']; $this->created_on = $image['created_on']; return 1; }
public function checkUser() { $objBDD = new classBDD(); $user = $objBDD->selectByParam($this->table, array('login' => $this->login), FALSE); var_dump($user); if (empty($user)) { return NULL; } $checkpwd = $this->checkPassword($user['nom'], $user['password']); var_dump($checkpwd); }