Subversion Repositories eFlore/Applications.cel-consultation

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

<?php
// declare(encoding='UTF-8');
/**
 * Modèle d'accès à la base de données de saisies pour le module observation.
 *
 * @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 ObservationDao extends Dao {
        
        const SERVICE_OBSERVATION = 'OdsObservation';
        const METHODE_OBSERVATION_INDIVIDU= 'ObservationsPourIndividu';
        
    /**
     * Retourne l'ensemble des observations d'une station.
     *
     * @param integer l'id d'une station.
     * @return array un tableau contenant les informations sur les observations de cette station.
     */
    public function getListeObservations($criteres) {
                
            $url = $this->url_jrest.self::SERVICE_OBSERVATION."/";
            $url = $this->traiterUrlParametres($url);
        $retour = $this->envoyerRequete($url, 'GET');
        $json = $this->envoyerRequeteConsultation($url);
        $donnees = json_decode($json, true);
        return $donnees;
        }
}
?>