* @author Aurélien Peronnet * @copyright 2010 Tela-Botanica * @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL * @version SVN: * @link /doc/jrest/ */ /** * InventoryObservationCount.php * * in : utf8 * out : utf8 * * Cas d'utilisation : * Service recherche du nombre a partir de divers critères * * 2: Le service recherche le nombre d'images correspondant au critères demandé * 3: Le service renvoie le nombre calcule */ class InventoryObservationCount extends Cel { /** * renvoie le nombre d' observations correspondant aux criteres * uid[0] : utilisateur obligatoire * uid[1] : criteres de filtrage de la forme critere1=valeur1&critere2=valeur2 * */ function getElement($uid) { // Controle detournement utilisateur $this->controleUtilisateur($uid[0]); $chercheur_observations = new RechercheObservation($this->config); $criteres = $_GET; $retour = $chercheur_observations->compterObservations($uid[0], $criteres); $this->envoyerJson($retour); return true; } } ?>