New file |
0,0 → 1,34 |
<?php |
// declare(encoding='UTF-8'); |
/** |
* Modèle d'accès à la base de données de saisies pour le module evenement. |
* |
* @package ODS_saisie |
* @category php 5.2 |
* @author Aurélien Peronnet <aurelien@tela-botanica.org> |
* @copyright 2010 Tela-Botanica |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL |
* @version SVN: $Id: StationDao.php 154 2010-09-13 12:15:11Z aurelien $ |
* |
*/ |
class EvenementDao extends Dao { |
|
const SERVICE_ESPECE = 'OdsEvenement'; |
const METHODE_TOUS_EVENEMENTS = 'TousEvenements'; |
|
/** |
* Retourne l'ensemble des évènements. |
* |
* @return array un tableau contenant les informations sur les evenements. |
*/ |
public function getListeEvenements() { |
|
$url = $this->url_jrest.self::SERVICE_ESPECE.'/'.self::METHODE_TOUS_EVENEMENTS.'/'; |
$json = $this->envoyerRequeteConsultation($url); |
$donnees = json_decode($json, true); |
|
return $donnees; |
} |
} |
?> |