Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 393 → Rev 394

/trunk/modules/fiche/formateurs/Description.php
18,11 → 18,13
private $nomCourant = null;
private $textes = null;
private $meta = null;
private $wikini = null;
 
public function __construct(Conteneur $conteneur) {
$this->conteneur = $conteneur;
$this->nomCourant = $this->conteneur->getNomCourant();
$this->textes = $this->conteneur->getApiTextes();
$this->wikini = $this->conteneur->getApiWikini();
$this->meta = $this->conteneur->getApiMetaDonnees();
$this->appUrls = $this->conteneur->getAppUrls();
}
31,6 → 33,7
$donnees = array();
$donnees['wp'] = $this->getWp();
$donnees['coste'] = $this->getCoste();
$donnees['wikini'] = $this->getWikini();
return $donnees;
}
 
70,6 → 73,16
return $idWp;
}
private function getWikini() {
$wikini = array();
$wikini['titre'] = 'Wikini';
$referentiel = $this->conteneur->getParametre('referentiel');
$num_tax = $this->nomCourant->getNomSelectionne()->get('num_taxonomique');
$page_wiki = $this->wikini->getPageWikiPourRefEtNumTax($referentiel, $num_tax);
$wikini['description'] = $this->wikini->getTexteFormate($page_wiki, 'description');
return $wikini;
}
private function getCoste() {
$coste = array();
$this->textes->setProjet('coste');