Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 354 → Rev 355

/trunk/services/modules/0.1/chorodep/cartes/TaxonsCartes.php
258,12 → 258,6
"FROM {$this->tableChorodep} ".
(isset($conditions) ? 'WHERE '.implode(' AND ', $conditions) : '');
$resultat = $this->Bdd->recupererTous($requete);
 
if (!is_array($resultat) || count($resultat) <= 0) {
$message = "Aucune donnée ne correspond à la ressource demandée";
$code = RestServeur::HTTP_CODE_RESSOURCE_INTROUVABLE;
throw new Exception($message, $code);
}
$this->donnees = $resultat;
}
 
391,11 → 385,15
}
 
private function creerTitre() {
$titre = "Carte en cours d'élaboration pour ".$this->creerTitreTaxon();
$titre = "Carte en cours d'élaboration";
if ($this->donnees != array()) {
$titre .= ' pour '.$this->creerTitreTaxon();
}
return $titre;
}
 
private function creerTitreTaxon() {
$titre = '';
$noms = array();
foreach ($this->donnees as $donnee) {
$noms[] = $donnee['nom_sci'];