methodes as $fonction) { if ($methode == $fonction) return ($this->$fonction($parametres)); } } public function searchPaginator($action) { if ($action == 'up') { if ($_SESSION['recherches']['giant']['page'] <= $_SESSION['recherches']['giant']['nbResults']) $_SESSION['recherches']['giant']['page']++; } else if ($action == 'down') { if ($_SESSION['recherches']['giant']['page'] > 0) $_SESSION['recherches']['giant']['page']--; } } public function checkValide($valeur) { if (!empty($valeur)) return ($valeur); return (null); } public function getQuery() { return ($this->query); } public function getLabelDesc() { return ($this->label); } public function getLabelResults() { return ($this->labelResults); } public function getCountryCode() { return ($this->Provider->Countrycode); } public function getCurrentPage() { return ($_SESSION['recherches']['giant']['page']); } }