Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 1265 → Rev 1266

/branches/v5.12-baouque/services/modules/0.1/cel/Images.php
69,6 → 69,8
$this->chargerInfosImage();
$this->extraireIdentitesAuteurs();
$resultat->corps = $this->formaterInfosImage($this->infosImages[0]);
} elseif (substr($this->parametres['masque.nn'],0,4) === 'top:') {
$resultat->corps = $this->chargerTopImages();
} else {
$this->chargerListeImages();
$this->chargerNbreImagesTotal();
537,5 → 539,22
private function avoirContenu($info) {
return !($info == null || $info == '' || $info == '000null');
}
 
/* autres fonctions */
private function chargerTopImages() {
$nn = substr($this->parametres['masque.nn'], strpos($this->parametres['masque.nn'], ':') + 1);
$requete = 'SELECT ce_image as id_img, organe '.
'FROM tb_del.del_image_top '.
'WHERE nn = '. $this->Bdd->proteger($nn) . ' -- ' . __FILE__ . ':' . __LINE__;
 
$this->infosImages = $this->Bdd->recupererTous($requete);
 
$resultat = array();
foreach ($this->infosImages as $image) {
$resultat[$image['organe']] = $this->formaterUrlImage($image);
}
 
return array('resultat' => $resultat);
}
}
?>
?>