| Line 49... |
Line 49... |
| 49 |
|
49 |
|
| 50 |
public function executerFiche(){
|
50 |
public function executerFiche(){
|
| 51 |
$infos = array();
|
51 |
$infos = array();
|
| 52 |
$this->images->setProjet('cel');
|
52 |
$this->images->setProjet('cel');
|
| 53 |
$urls = $this->images->getUrlsImagesParIdsNoms(array($this->num_nom));
|
53 |
$urls = $this->images->getUrlsImagesParIdsNoms(array($this->num_nom));
|
| 54 |
$urls = $urls['bdtfx.'.$this->num_nom];
|
54 |
$urls = $urls[Registre::get('parametres.referentiel').'.'.$this->num_nom];
|
| 55 |
$ids = array();
|
55 |
$ids = array();
|
| 56 |
foreach($urls as $index => $url) {
|
56 |
foreach($urls as $index => $url) {
|
| 57 |
$urls[$index] = str_replace($this->format_miniature, $this->format_agrandi, $url);
|
57 |
$urls[$index] = str_replace($this->format_miniature, $this->format_agrandi, $url);
|
| 58 |
$ids[$index] = $this->extraireIdDeUrl($url);
|
58 |
$ids[$index] = $this->extraireIdDeUrl($url);
|
| 59 |
}
|
- |
|
| 60 |
|
59 |
}
|
| 61 |
$infos['urls'] = $urls;
|
60 |
$infos['urls'] = $urls;
|
| 62 |
$infos['ids'] = $ids;
|
61 |
$infos['ids'] = $ids;
|
| - |
|
62 |
$infos['num_nom'] = $this->num_nom;
|
| 63 |
$infos['num_nom'] = $this->num_nom;
|
63 |
$infos['referentiel'] = Registre::get('parametres.referentiel');
|
| 64 |
$infos['url_image'] = str_replace($this->format_miniature, $this->format_agrandi, $this->urlImage);
|
64 |
$infos['url_image'] = str_replace($this->format_miniature, $this->format_agrandi, $this->urlImage);
|
| 65 |
$infos['titre'] = $this->titre;
|
65 |
$infos['titre'] = $this->titre;
|
| 66 |
$infos['url_meta'] = Config::get('imagesPopupTpl');
|
66 |
$infos['url_meta'] = Config::get('imagesPopupTpl');
|