| Line 212... |
Line 212... |
| 212 |
|
212 |
|
| 213 |
private function executerService($elements) {
|
213 |
private function executerService($elements) {
|
| 214 |
// Prétraitement des données
|
214 |
// Prétraitement des données
|
| 215 |
$donnees = $this->construireDonneesCommunesAuFlux($elements);
|
215 |
$donnees = $this->construireDonneesCommunesAuFlux($elements);
|
| 216 |
foreach ($elements as $element) {
|
216 |
foreach ($elements as $element) {
|
| 217 |
$identifiants[$element['identifiant']] = $element['identifiant'];
|
217 |
$identifiants[$element['ci_ce_utilisateur']] = $element['ci_ce_utilisateur'];
|
| 218 |
}
|
218 |
}
|
| 219 |
$this->auteurs = $this->creerAuteurs($identifiants);
|
219 |
$this->auteurs = $this->creerAuteurs($identifiants);
|
| 220 |
foreach ($elements as $element) {
|
220 |
foreach ($elements as $element) {
|
| 221 |
$donnees['items'][] = $this->construireDonneesCommunesAuxItems($element);
|
221 |
$donnees['items'][] = $this->construireDonneesCommunesAuxItems($element);
|
| Line 256... |
Line 256... |
| 256 |
$item['guid'] = $this->creerGuidItem($info);
|
256 |
$item['guid'] = $this->creerGuidItem($info);
|
| 257 |
$item['lien'] = $this->creerLienItem($info);
|
257 |
$item['lien'] = $this->creerLienItem($info);
|
| 258 |
$item['categorie'] = $this->creerCategorie($item);
|
258 |
$item['categorie'] = $this->creerCategorie($item);
|
| 259 |
$item['description'] = $this->creerDescription($this->protegerCaracteresHtmlDansChamps($info), $item);
|
259 |
$item['description'] = $this->creerDescription($this->protegerCaracteresHtmlDansChamps($info), $item);
|
| 260 |
$item['description_encodee'] = htmlspecialchars($this->creerDescription($info, $item));
|
260 |
$item['description_encodee'] = htmlspecialchars($this->creerDescription($info, $item));
|
| 261 |
$item['modifier_par'] = $this->auteurs[$info['identifiant']];
|
261 |
$item['modifier_par'] = $this->auteurs[$info['ci_ce_utilisateur']];
|
| 262 |
return $item;
|
262 |
return $item;
|
| 263 |
}
|
263 |
}
|
| Line 264... |
Line 264... |
| 264 |
|
264 |
|
| 265 |
private function creerGuidItem($element) {
|
265 |
private function creerGuidItem($element) {
|