/tags/v0.1-20130830-1/services/modules/0.2/prometheus/OntologiesListePrometheus.php |
---|
New file |
0,0 → 1,14 |
<?php |
class OntologiesListePrometheus implements OntologiesListe { |
private $ontologiesListe = null; |
public function __construct(OntologiesListeGenerique $ontologiesListe) { |
$this->ontologiesListe = $ontologiesListe; |
} |
public function consulter() { |
return $this->ontologiesListe->consulter(); |
} |
} |
?> |
/tags/v0.1-20130830-1/services/modules/0.2/Projets.php |
---|
New file |
0,0 → 1,49 |
<?php |
/** |
* Description : |
* Classe principale de chargement des services d'eFlore. |
* |
* Encodage en entrée : utf8 |
* Encodage en sortie : utf8 |
* @package eflore-projets |
* @author Jennifer DHÉ <jennifer.dhe@tela-botanica.org> |
* @author Delphine CAUQUIL <delphine@tela-botanica.org> |
* @author Jean-Pascal MILCENT <jpm@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> |
* @version 0.1 |
* @copyright 1999-2011 Tela Botanica (accueil@tela-botanica.org) |
*/ |
class Projets extends RestService { |
private $conteneur = null; |
public function __construct() { |
$this->utilisationParametresBruts = true; |
} |
public function consulter($ressources, $parametres) { |
$resultat = ''; |
$reponseHttp = new ReponseHttp(); |
try { |
$this->initialiserConteneur($ressources, $parametres); |
$projet = $this->conteneur->getProjet(); |
$projet->verifier(); |
$resultat = $projet->consulter(); |
$reponseHttp->setResultatService($resultat); |
} catch (Exception $e) { |
$reponseHttp->ajouterErreur($e); |
} |
$reponseHttp->emettreLesEntetes(); |
$corps = $reponseHttp->getCorps(); |
return $corps; |
} |
private function initialiserConteneur($ressources, $parametres) { |
$this->conteneur = new Conteneur(); |
$this->conteneur->setParametre('ressources', $ressources); |
$this->conteneur->setParametre('parametres', $parametres); |
$this->conteneur->setParametre('cheminBase', dirname(__FILE__).DS); |
} |
} |
?> |
/tags/v0.1-20130830-1/services/modules/0.2/bdtfx/NomDetailsBdtfx.php |
---|
New file |
0,0 → 1,18 |
<?php |
class NomDetailsBdtfx implements NomDetails { |
private $nomDetails = null; |
public function __construct(NomDetailsGenerique $nomDetails) { |
$this->nomDetails = $nomDetails; |
} |
public function consulter() { |
return $this->nomDetails->consulter(); |
} |
public function ajouter() { |
} |
} |
?> |
/tags/v0.1-20130830-1/services/modules/0.2/bdtfx/NomsListeBdtfx.php |
---|
New file |
0,0 → 1,18 |
<?php |
class NomsListeBdtfx implements NomsListe { |
private $nomsListe = null; |
public function __construct(NomsListeGenerique $nomsListe) { |
$this->nomsListe = $nomsListe; |
} |
public function consulter() { |
return $this->nomsListe->consulter(); |
} |
public function ajouter() { |
} |
} |
?> |
/tags/v0.1-20130830-1/services/modules/0.2/fournier/NomsListeFournier.php |
---|
New file |
0,0 → 1,18 |
<?php |
class NomsListeFournier implements NomsListe { |
private $nomsListe = null; |
public function __construct(NomsListeGenerique $nomsListe) { |
$this->nomsListe = $nomsListe; |
} |
public function consulter() { |
return $this->nomsListe->consulter(); |
} |
public function ajouter() { |
} |
} |
?> |
/tags/v0.1-20130830-1/services/modules/0.2/fournier/NomDetailsFournier.php |
---|
New file |
0,0 → 1,18 |
<?php |
class NomDetailsFournier implements NomDetails { |
private $nomDetails = null; |
public function __construct(NomDetailsGenerique $nomDetails) { |
$this->nomDetails = $nomDetails; |
} |
public function consulter() { |
return $this->nomDetails->consulter(); |
} |
public function ajouter() { |
} |
} |
?> |