| Line 64... |
Line 64... |
| 64 |
|
64 |
|
| 65 |
public function getPhoto($source) {
|
65 |
public function getPhoto($source) {
|
| 66 |
$donnees = array();
|
66 |
$donnees = array();
|
| 67 |
$this->images->setProjet($source);
|
67 |
$this->images->setProjet($source);
|
| 68 |
$nnr = $this->nomCourant->getNnr();
|
68 |
$nnr = $this->nomCourant->getNnr();
|
| 69 |
$infos_image = $this->images->getUrlPremiereImageParIdsNoms(array($nnr));
|
69 |
$infos_image = $this->images->setApi(Eflore::API_EFLORE)->getInfosPremiereImageParIdsNoms(array($nnr));
|
| 70 |
if ($infos_image != array()) {
|
70 |
if ($infos_image != array()) {
|
| 71 |
$image = array_shift($infos_image);
|
71 |
$image = array_shift($infos_image);
|
| 72 |
$donnees['imageUrl'] = $image['binaire.href'];
|
72 |
$donnees['imageUrl'] = $image['binaire.href'];
|
| 73 |
}
|
73 |
}
|
| Line 77... |
Line 77... |
| 77 |
public function getCoste() {
|
77 |
public function getCoste() {
|
| 78 |
$coste = array();
|
78 |
$coste = array();
|
| 79 |
$tax = $this->nomCourant->getNomRetenu()->get('num_taxonomique');
|
79 |
$tax = $this->nomCourant->getNomRetenu()->get('num_taxonomique');
|
| 80 |
$this->images->setProjet('coste');
|
80 |
$this->images->setProjet('coste');
|
| 81 |
$this->images->setNnTaxon($tax);
|
81 |
$this->images->setNnTaxon($tax);
|
| 82 |
$costeImg = $this->images->getInfosImagesTaxons();
|
82 |
$costeImg = $this->images->setApi(Eflore::API_EFLORE)->getInfosImagesTaxons();
|
| 83 |
foreach ($costeImg as $infos) {
|
83 |
foreach ($costeImg as $infos) {
|
| 84 |
$coste['images'][] = $infos['binaire.href'];
|
84 |
$coste['images'][] = $infos['binaire.href'];
|
| 85 |
}
|
85 |
}
|
| 86 |
$this->meta->setProjet('coste');
|
86 |
$this->meta->setProjet('coste');
|
| 87 |
$meta = $this->meta->getMetaDonnees();
|
87 |
$meta = $this->meta->getMetaDonnees();
|
| Line 95... |
Line 95... |
| 95 |
if ($projet != "") {
|
95 |
if ($projet != "") {
|
| 96 |
$dessin = array();
|
96 |
$dessin = array();
|
| 97 |
$tax = $this->nomCourant->getNomRetenu()->get('num_taxonomique');
|
97 |
$tax = $this->nomCourant->getNomRetenu()->get('num_taxonomique');
|
| 98 |
$this->images->setProjet($projet);
|
98 |
$this->images->setProjet($projet);
|
| 99 |
$this->images->setNnTaxon($tax);
|
99 |
$this->images->setNnTaxon($tax);
|
| 100 |
$costeImg = $this->images->getInfosImagesTaxons();
|
100 |
$costeImg = $this->images->setApi(Eflore::API_EFLORE)->getInfosImagesTaxons();
|
| 101 |
foreach ($costeImg as $infos) {
|
101 |
foreach ($costeImg as $infos) {
|
| 102 |
$dessin['images'][] = $infos['binaire.href'];
|
102 |
$dessin['images'][] = $infos['binaire.href'];
|
| 103 |
}
|
103 |
}
|
| 104 |
$this->meta->setProjet('coste');
|
104 |
$this->meta->setProjet('coste');
|
| 105 |
$meta = $this->meta->getMetaDonnees();
|
105 |
$meta = $this->meta->getMetaDonnees();
|
| Line 112... |
Line 112... |
| 112 |
public function getPhotos() {
|
112 |
public function getPhotos() {
|
| 113 |
$projets[] = Config::get($this->referentiel.'.baseImages');
|
113 |
$projets[] = Config::get($this->referentiel.'.baseImages');
|
| 114 |
$projets[] = Config::get($this->referentiel.'.baseImagesSupp');
|
114 |
$projets[] = Config::get($this->referentiel.'.baseImagesSupp');
|
| 115 |
foreach ($projets as $projet) {
|
115 |
foreach ($projets as $projet) {
|
| 116 |
if ($projet != "") {
|
116 |
if ($projet != "") {
|
| - |
|
117 |
if ($projet == "cel") {
|
| - |
|
118 |
$this->images->setApi(Eflore::API_EFLORE); // prêt à passer à API_DEL
|
| - |
|
119 |
} else {
|
| - |
|
120 |
$this->images->setApi(Eflore::API_EFLORE);
|
| - |
|
121 |
}
|
| 117 |
$images = $this->initialiserPhotos($projet);
|
122 |
$images = $this->initialiserPhotos($projet);
|
| 118 |
$this->formaterListePhotos($projet, $images);
|
123 |
$this->formaterListePhotos($projet, $images);
|
| 119 |
$this->formaterMetaPhotos($projet);
|
124 |
$this->formaterMetaPhotos($projet);
|
| 120 |
}
|
125 |
}
|
| 121 |
}
|
126 |
}
|