Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 521 → Rev 522

/trunk/jrest/services/CelSyndicationObservation.php
335,7 → 335,7
$item['description'] = $this->creerDescription($observation, $item);
$item['categorie'] = $this->creerCategorie($item);
$item['description_encodee'] = htmlspecialchars($item['description']);
$item['modifier_par'] = $this->creerAuteur($observation['identifiant']);
$item['modifier_par'] = $this->creerAuteur($observation['identifiant'], $this->etreFluxAdmin());
return $item;
}
342,17 → 342,12
private function creerTitre($obs) {
$nom_plante = $obs['nom_sel'].' [nn'.$obs['num_nom_sel'].']';
$lieu = $obs['location'].' ('.$obs['id_location'].')';
$utilisateur = $this->creerAuteur($obs['identifiant']);
$utilisateur = $this->creerAuteur($obs['identifiant'], $this->etreFluxAdmin());
$titre = "$nom_plante à $lieu par $utilisateur";
$titre = $this->nettoyerTexte($titre);
return $titre;
}
private function creerAuteur($courriel) {
$auteur = ($this->etreFluxAdmin()) ? $courriel : $this->tronquerCourriel($courriel);
return $auteur;
}
private function creerGuidItem($element) {
$guid = sprintf($this->config['settings']['guidObsTpl'], 'obs'.$element['id']);
return $guid;
396,14 → 391,6
return ($this->service == 'pour-admin') ? true : false;
}
private function etreNull($valeur) {
$etre_null = false;
if ($valeur == '' || $valeur == null || $valeur == '000null' || $valeur == 'null') {
$etre_null = true;
}
return $etre_null;
}
private function creerUrlService() {
$url_service = $this->getUrlServiceBase();
if (isset($this->start) || isset($this->limit)) {