Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 1318 → Rev 1319

/branches/v1.5-cisaille/jrest/services/CelSyndicationObservation.php
498,10 → 498,12
}
private function creerTitre($obs) {
$date_obs_timestamp = $this->convertirDateHeureMysqlEnTimestamp($observation['date_observation']);
$date = strftime('%A %d %B %Y', $date_obs_timestamp);
$nom_plante = $obs['nom_sel'].' [nn'.$obs['num_nom_sel'].']';
$lieu = $obs['location'].' ('.$obs['id_location'].')';
$utilisateur = $this->auteurs[$obs['identifiant']];
$titre = "$nom_plante à $lieu par $utilisateur";
$titre = "$nom_plante à $lieu par $utilisateur le $date";
$titre = $this->nettoyerTexte($titre);
return $titre;
}
/branches/v1.5-cisaille/jrest/services/CelSyndicationImage.php
343,10 → 343,12
}
 
private function creerTitreSimple($element) {
$date_obs_timestamp = $this->convertirDateHeureMysqlEnTimestamp($info['date_observation']);
$date = strftime('%A %d %B %Y', $date_obs_timestamp);
if ($this->etreNull($element['nom_sel']) && $this->etreNull($element['num_nom_sel'])) {
$titre = "Ajout d'une photo par ".$this->auteurs[$element['ci_ce_utilisateur']];
$titre = "Ajout d'une photo par ".$this->auteurs[$element['ci_ce_utilisateur']].' le '.$date;
} else {
$titre = $element['nom_sel'].' [nn'.$element['num_nom_sel'].'] par '.$this->auteurs[$element['ci_ce_utilisateur']];
$titre = $element['nom_sel'].' [nn'.$element['num_nom_sel'].'] par '.$this->auteurs[$element['ci_ce_utilisateur']].' le '.$date;
}
return $titre;
}