48 lines
971 B
PHP
48 lines
971 B
PHP
<?php
|
|
Class GiantFunction
|
|
{
|
|
public function getMethode($methode, $parametres)
|
|
{
|
|
foreach($this->methodes as $fonction) {
|
|
if ($methode == $fonction)
|
|
return (call_user_func_array(array($this, $fonction), $parametres));
|
|
}
|
|
}
|
|
|
|
public function checkValide($valeur)
|
|
{
|
|
if (!empty($valeur))
|
|
return ($valeur);
|
|
return (null);
|
|
}
|
|
|
|
public function setQuery($query)
|
|
{
|
|
$this->query = $query;
|
|
}
|
|
|
|
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']);
|
|
}
|
|
} |