| Line 25... |
Line 25... |
| 25 |
$this->conteneur = $conteneur;
|
25 |
$this->conteneur = $conteneur;
|
| 26 |
$this->nomCourant = $this->conteneur->getNomCourant();
|
26 |
$this->nomCourant = $this->conteneur->getNomCourant();
|
| 27 |
$this->nomsVernaculaires = $this->conteneur->getApiNomsVernaculaires();
|
27 |
$this->nomsVernaculaires = $this->conteneur->getApiNomsVernaculaires();
|
| 28 |
$this->referentiel = $this->conteneur->getParametre('referentiel');
|
28 |
$this->referentiel = $this->conteneur->getParametre('referentiel');
|
| 29 |
$this->wikini = $this->conteneur->getApiWikini();
|
29 |
$this->wikini = $this->conteneur->getApiWikini();
|
| - |
|
30 |
$this->textes = $this->conteneur->getApiTextes ();
|
| 30 |
$this->meta = $this->conteneur->getApiMetaDonnees();
|
31 |
$this->meta = $this->conteneur->getApiMetaDonnees();
|
| 31 |
$this->appUrls = $this->conteneur->getAppUrls();
|
32 |
$this->appUrls = $this->conteneur->getAppUrls();
|
| 32 |
}
|
33 |
}
|
| Line 33... |
Line 34... |
| 33 |
|
34 |
|
| 34 |
public function obtenirDonnees() {
|
35 |
public function obtenirDonnees() {
|
| 35 |
$this->getNomsVernaculaires('.referentielVerna');
|
36 |
$this->getNomsVernaculaires('.referentielVerna');
|
| 36 |
$this->getNomsVernaculaires('.referentielVernaGrec');
|
37 |
$this->getNomsVernaculaires('.referentielVernaGrec');
|
| - |
|
38 |
$this->getChorologie();
|
| - |
|
39 |
if ($this->referentiel == 'bdtfx') {
|
| - |
|
40 |
$this->getPlantUse();
|
| 37 |
$this->getChorologie();
|
41 |
}
|
| 38 |
$this->donnees['wikini'] = $this->getWikini();
|
42 |
$this->donnees['wikini'] = $this->getWikini();
|
| 39 |
return $this->donnees;
|
43 |
return $this->donnees;
|
| Line 40... |
Line 44... |
| 40 |
}
|
44 |
}
|
| Line 50... |
Line 54... |
| 50 |
$this->donnees[$projet]['meta'] = $meta[0];
|
54 |
$this->donnees[$projet]['meta'] = $meta[0];
|
| 51 |
$this->donnees[$projet]['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees($projet);
|
55 |
$this->donnees[$projet]['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees($projet);
|
| 52 |
}
|
56 |
}
|
| 53 |
}
|
57 |
}
|
| Line -... |
Line 58... |
| - |
|
58 |
|
| - |
|
59 |
private function getPlantUse() {
|
| - |
|
60 |
$plantuse = array ();
|
| - |
|
61 |
$this->textes->setProjet('plantuse');
|
| - |
|
62 |
$this->textes->setId ($this->nomCourant->getNomRetenu()->get('nom_sci'));
|
| - |
|
63 |
$texte = $this->textes->getUsage();
|
| - |
|
64 |
|
| - |
|
65 |
if ($texte['resultats']['usages']) {
|
| - |
|
66 |
$plantuse['titre'] = "Résumé des usages de Pl@ntUse";
|
| - |
|
67 |
$plantuse['usages'] = $texte['resultats']['usages'];
|
| - |
|
68 |
$plantuse['url'] = $texte['resultats']['url'];
|
| - |
|
69 |
}
|
| - |
|
70 |
$this->meta->setProjet('plantuse');
|
| - |
|
71 |
$meta = $this->meta->getMetaDonnees ();
|
| - |
|
72 |
$plantuse ['meta'] = $meta [0];
|
| - |
|
73 |
$plantuse ['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('plantuse');
|
| - |
|
74 |
$this->donnees['plantuse'] = $plantuse;
|
| - |
|
75 |
}
|
| - |
|
76 |
|
| 54 |
|
77 |
|
| 55 |
public function getBloc() {
|
78 |
public function getBloc() {
|
| 56 |
$nt = $this->nomCourant->getNomRetenu()->get('num_taxonomique');
|
79 |
$nt = $this->nomCourant->getNomRetenu()->get('num_taxonomique');
|
| 57 |
$projet = Config::get($this->referentiel.'.referentielVerna');
|
80 |
$projet = Config::get($this->referentiel.'.referentielVerna');
|
| 58 |
if ($projet != "") {
|
81 |
if ($projet != "") {
|