Subversion Repositories eFlore/Applications.del

Rev

Rev 1292 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1292 Rev 1294
Line 92... Line 92...
92
		return $donnees;
92
		return $donnees;
93
	}
93
	}
Line 94... Line 94...
94
 
94
 
95
	private function construireDonneesCommunesAuFlux($infos) {
95
	private function construireDonneesCommunesAuFlux($infos) {
96
		$donnees = array();
96
		$donnees = array();
97
		$donnees['guid'] = '';
97
		$donnees['guid'] = $this->creerUrlService();
98
		$donnees['titre'] = 'identiPlante : commentaires et propositions';
98
		$donnees['titre'] = 'identiPlante : commentaires et propositions';
99
		$donnees['description'] = 'Ce flux regroupe les dernières déterminations et commentaires rédigés dans l\'application identiPlante';
99
		$donnees['description'] = 'Ce flux regroupe les dernières déterminations et commentaires rédigés dans l\'application identiPlante';
100
		$donnees['lien_service'] = $this->creerUrlService();
100
		$donnees['lien_service'] = $this->creerUrlService();
101
		$donnees['lien_del'] = $this->conteneur->getParametre('delAppliLien');
101
		$donnees['lien_del'] = $this->conteneur->getParametre('delAppliLien');
Line 127... Line 127...
127
		$item['guid'] = $this->creerGuidItem($info);
127
		$item['guid'] = $this->creerGuidItem($info);
128
		$item['lien'] = $this->creerLienItem($info);
128
		$item['lien'] = $this->creerLienItem($info);
129
		$item['categorie'] = $this->creerCategorie($item);
129
		$item['categorie'] = $this->creerCategorie($item);
130
		$item['description'] = $this->creerDescription($info, $item);
130
		$item['description'] = $this->creerDescription($info, $item);
131
		$item['description_encodee'] = htmlspecialchars($this->creerDescription($info, $item));
131
		$item['description_encodee'] = htmlspecialchars($this->creerDescription($info, $item));
132
		$item['modifie_par'] = $this->creerAuteur($info);
132
		$item['modifier_par'] = $this->creerAuteur($info);
133
		return $item;
133
		return $item;
134
	}
134
	}
Line 135... Line 135...
135
 
135
 
136
	private function creerTitre($element) {
136
	private function creerTitre($element) {
Line 144... Line 144...
144
		$titre = "$intitule par $auteur pour $nomSelActuel à $zoneGeo le $dateObs";
144
		$titre = "$intitule par $auteur pour $nomSelActuel à $zoneGeo le $dateObs";
145
		return $titre;
145
		return $titre;
146
	}
146
	}
Line 147... Line 147...
147
 
147
 
-
 
148
	private function creerAuteur($info) {
-
 
149
		$auteur = 'Anonyme';
148
	private function creerAuteur($info) {
150
		if ($info['utilisateur_prenom'] != '' && $info['utilisateur_nom'] != '') {
-
 
151
			$auteur = $info['utilisateur_prenom'].' '.$info['utilisateur_nom'];
-
 
152
		}
149
		return $info['utilisateur_prenom'].' '.$info['utilisateur_nom'];
153
		return $auteur;
Line 150... Line 154...
150
	}
154
	}
151
 
155
 
152
	private function creerGuidItem($element) {
156
	private function creerGuidItem($element) {