Subversion Repositories eFlore/Applications.cel

Rev

Rev 1330 | Rev 1361 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1330 Rev 1338
Line 259... Line 259...
259
		$item['guid'] = $this->creerGuidItem($info);
259
		$item['guid'] = $this->creerGuidItem($info);
260
		$item['lien'] = $this->creerLienItem($info);
260
		$item['lien'] = $this->creerLienItem($info);
261
		$item['categorie'] = $this->creerCategorie($item);
261
		$item['categorie'] = $this->creerCategorie($item);
262
		$item['description'] = $this->creerDescription($this->protegerCaracteresHtmlDansChamps($info), $item);
262
		$item['description'] = $this->creerDescription($this->protegerCaracteresHtmlDansChamps($info), $item);
263
		$item['description_encodee'] = htmlspecialchars($this->creerDescription($info, $item));
263
		$item['description_encodee'] = htmlspecialchars($this->creerDescription($info, $item));
264
		$item['modifier_par'] = $this->auteurs[$info['ce_utilisateur']];
264
		$item['modifier_par'] = $this->getIntituleAuteur($info['courriel_utilisateur']);
265
		return $item;
265
		return $item;
266
	}
266
	}
Line 267... Line 267...
267
	
267
 
268
	private function creerGuidItem($element) {
268
	private function creerGuidItem($element) {
Line 347... Line 347...
347
		return $contenu;
347
		return $contenu;
348
	}
348
	}
Line 349... Line 349...
349
	
349
 
350
	private function creerTitreSimple($element) {
350
	private function creerTitreSimple($element) {
351
		if ($this->etreNull($element['nom_sel']) && $this->etreNull($element['nom_sel_nn'])) {
351
		if ($this->etreNull($element['nom_sel']) && $this->etreNull($element['nom_sel_nn'])) {
352
			$titre = "Ajout d'une photo par ".$this->auteurs[$element['ce_utilisateur']];
352
			$titre = "Ajout d'une photo par ".$this->getIntituleAuteur($element['courriel_utilisateur']);
353
		} else {
353
		} else {
354
			$titre = $element['nom_sel'].' [nn'.$element['nom_sel_nn'].'] par '.$element['prenom_utilisateur'].' '.$element['nom_utilisateur'];
354
			$titre = $element['nom_sel'].' [nn'.$element['nom_sel_nn'].'] par '.$element['prenom_utilisateur'].' '.$element['nom_utilisateur'];
355
		}
355
		}
356
		return $titre;
356
		return $titre;
Line 551... Line 551...
551
		}
551
		}
552
		return $tableau_criteres_pour_bdd;
552
		return $tableau_criteres_pour_bdd;
553
	}
553
	}
Line 554... Line 554...
554
 
554
 
555
	private function creerDescriptionComplet($donnees, $item) {
555
	private function creerDescriptionComplet($donnees, $item) {
556
		$auteur = $donnees['prenom_utilisateur'].' '.$donnees['nom_utilisateur'];
556
		$auteur = $this->getIntituleAuteur($donnees['courriel_utilisateur']);
Line 557... Line 557...
557
		$auteur_mail = $donnees['courriel_utilisateur'];
557
		$auteur_mail = $donnees['courriel_utilisateur'];
558
		
558
 
559
		$id_img = $donnees['id_image'];
559
		$id_img = $donnees['id_image'];
Line 656... Line 656...
656
		}
656
		}
657
		$donnees['items'][0]['titre'] = '';
657
		$donnees['items'][0]['titre'] = '';
658
		$contenu = Cel::traiterSquelettePhp($this->squelette, $donnees);
658
		$contenu = Cel::traiterSquelettePhp($this->squelette, $donnees);
659
		return $contenu;
659
		return $contenu;
660
	}
660
	}
-
 
661
 
-
 
662
	private function getIntituleAuteur($courriel) {
-
 
663
		$courriel = strtolower($courriel);
-
 
664
		$intitule = $this->auteurs[$courriel];
-
 
665
		return $intitule;
-
 
666
	}
661
}	
667
}
662
668