Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 448 | Rev 469 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 448 Rev 463
Line 23... Line 23...
23
		$this->conteneur = $conteneur;
23
		$this->conteneur = $conteneur;
24
		$this->nomCourant = $this->conteneur->getNomCourant();
24
		$this->nomCourant = $this->conteneur->getNomCourant();
25
		$this->noms = $this->conteneur->getApiNoms();
25
		$this->noms = $this->conteneur->getApiNoms();
26
		$this->meta = $this->conteneur->getApiMetaDonnees();
26
		$this->meta = $this->conteneur->getApiMetaDonnees();
27
		$this->appUrls = $this->conteneur->getAppUrls();
27
		$this->appUrls = $this->conteneur->getAppUrls();
-
 
28
		$this->wikini = $this->conteneur->getApiWikini();
28
	}
29
	}
Line 29... Line 30...
29
 
30
 
Line 30... Line 31...
30
	public function obtenirDonnees() {
31
	public function obtenirDonnees() {
Line 41... Line 42...
41
		$donnees['urls'] = $this->appUrls;
42
		$donnees['urls'] = $this->appUrls;
42
		$donnees['nom_retenu_formate'] = $this->nomCourant->getNomRetenu()->get('nom_sci_html_complet');
43
		$donnees['nom_retenu_formate'] = $this->nomCourant->getNomRetenu()->get('nom_sci_html_complet');
43
		$donnees['basionyme_nom_retenu'] = $this->nomCourant->getNomRetenu()->get('basionyme_html_complet');
44
		$donnees['basionyme_nom_retenu'] = $this->nomCourant->getNomRetenu()->get('basionyme_html_complet');
44
		$donnees['nom_selectionne'] = $this->nomCourant->getNomSelectionne()->get('nom_sci_html');
45
		$donnees['nom_selectionne'] = $this->nomCourant->getNomSelectionne()->get('nom_sci_html');
45
		$donnees['nom_retenu'] = $this->nomCourant->getNomRetenu()->get('nom_sci_html');
46
		$donnees['nom_retenu'] = $this->nomCourant->getNomRetenu()->get('nom_sci_html');
-
 
47
		$donnees['wikini'] = $this->getWikini();
Line 46... Line 48...
46
		
48
		
47
		return $donnees;
49
		return $donnees;
Line 48... Line 50...
48
	}
50
	}
Line 67... Line 69...
67
		$nns = $this->nomCourant->getNns();
69
		$nns = $this->nomCourant->getNns();
68
		$synonymes = $this->noms->getSynonymes($nns);
70
		$synonymes = $this->noms->getSynonymes($nns);
69
		$synonymes['resultat'] = (isset($synonymes['resultat']) && is_array($synonymes['resultat'])) ? $synonymes['resultat'] : array();
71
		$synonymes['resultat'] = (isset($synonymes['resultat']) && is_array($synonymes['resultat'])) ? $synonymes['resultat'] : array();
70
		return $synonymes['resultat'];
72
		return $synonymes['resultat'];
71
	}
73
	}
-
 
74
	
-
 
75
	private function getWikini() {
-
 
76
		$wikini = array();
-
 
77
		$wikini['titre'] = 'Wikini';
-
 
78
		$referentiel = $this->conteneur->getParametre('referentiel');
-
 
79
		$num_tax = $this->nomCourant->getNomSelectionne()->get('num_taxonomique');
-
 
80
		$page_wiki = $this->wikini->getPageWikiPourRefEtNumTax($referentiel, $num_tax);
-
 
81
		$wikini['nomenclature'] = $this->wikini->getTexteFormate($page_wiki, 'nomenclature');
-
 
82
		return $wikini;
-
 
83
	}
72
}
84
}
73
?>
85
?>
74
86