Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1551 → Rev 1552

/trunk/modules/fiche/formateurs/Ethnobotanique.php
27,6 → 27,7
$this->nomsVernaculaires = $this->conteneur->getApiNomsVernaculaires();
$this->referentiel = $this->conteneur->getParametre('referentiel');
$this->wikini = $this->conteneur->getApiWikini();
$this->textes = $this->conteneur->getApiTextes ();
$this->meta = $this->conteneur->getApiMetaDonnees();
$this->appUrls = $this->conteneur->getAppUrls();
}
35,6 → 36,9
$this->getNomsVernaculaires('.referentielVerna');
$this->getNomsVernaculaires('.referentielVernaGrec');
$this->getChorologie();
if ($this->referentiel == 'bdtfx') {
$this->getPlantUse();
}
$this->donnees['wikini'] = $this->getWikini();
return $this->donnees;
}
52,6 → 56,23
}
}
private function getPlantUse() {
$plantuse = array ();
$this->textes->setProjet('plantuse');
$this->textes->setId ($this->nomCourant->getNomRetenu()->get('nom_sci'));
$texte = $this->textes->getUsage();
if ($texte['resultats']) {
$plantuse ['titre'] = "Résumé des usages de Pl@ntUse";
$plantuse ['description'] = $texte['resultats'];
}
$this->meta->setProjet('plantuse');
$meta = $this->meta->getMetaDonnees ();
$plantuse ['meta'] = $meta [0];
$plantuse ['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('plantuse');
$this->donnees['plantuse'] = $plantuse;
}
public function getBloc() {
$nt = $this->nomCourant->getNomRetenu()->get('num_taxonomique');
$projet = Config::get($this->referentiel.'.referentielVerna');