Rev 2461 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php// declare(encoding='UTF-8');/**** Service fournissant la liste des groupes de champs etendus.** @internal Mininum PHP version : 5.2* @category CEL* @package Services* @subpackage Auto-complétions* @version 0.1* @author Mathias CHOUET <mathias@tela-botanica.org>* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>* @author Aurelien PERONNET <aurelien@tela-botanica.org>* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt>* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>* @copyright 1999-2014 Tela Botanica <accueil@tela-botanica.org>*/class CatalogueChampsEtendus extends Cel {public function getElement($ressources){$referentiel = array();// TODO : meilleure vérification si ce service vient à être utilisé par autre chose// que le celif ($ressources[0] == 'groupes') {$gestion_champs_etendus = new GestionChampsEtendus($this->config, 'obs');$referentiel = $gestion_champs_etendus->consulterGroupesChampsEtendusPredefinis();} else if($ressources[0] == 'champs') {$gestion_champs_etendus = new GestionChampsEtendus($this->config, 'obs');$referentiel = $gestion_champs_etendus->consulterCatalogueChampsEtendusPredefinis();}$this->envoyerJson($referentiel);return true;}public function getRessource() {$groupes = $gestion_champs_etendus->consulterGroupesChampsEtendusPredefinis();$this->envoyerJson($groupes);return true;}}