Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 334 Rev 336
Line 27... Line 27...
27
		$this->appUrls = $this->conteneur->getAppUrls();
27
		$this->appUrls = $this->conteneur->getAppUrls();
28
	}
28
	}
Line 29... Line 29...
29
 
29
 
30
	public function obtenirDonnees() {
30
	public function obtenirDonnees() {
-
 
31
		$donnees = array();
31
		$donnees = array();
32
		$donnees['flores_synonymes'] = $this->getFlores();
32
		$donnees['synonymes']['noms'] = $this->getSynonymes();
33
		$donnees['synonymes']['noms'] = $this->getSynonymes();
33
		$donnees['date_maj'] = $this->nomCourant->getNomselectionne()->get('maj_modif');
34
		$donnees['date_maj'] = $this->nomCourant->getNomselectionne()->get('maj_modif');
34
		$meta = $this->meta->getMetaDonnees();
35
		$meta = $this->meta->getMetaDonnees();
35
		$titreMeta = $meta[0]['titre'];
36
		$titreMeta = $meta[0]['titre'];
Line 44... Line 45...
44
	public function getBloc() {
45
	public function getBloc() {
45
		$synonymes = $this->getSynonymes();
46
		$synonymes = $this->getSynonymes();
46
		$donnees['synonymesNbre'] = count($synonymes);
47
		$donnees['synonymesNbre'] = count($synonymes);
47
		return $donnees;
48
		return $donnees;
48
	}
49
	}
-
 
50
	
-
 
51
	private function getFlores() {
-
 
52
		$nns = $this->nomCourant->getNns();
-
 
53
		$flores = $this->noms->getFlores($nns);
-
 
54
		$flores['resultat'] = (isset($flores['resultat']) && is_array($flores['resultat'])) ? $flores['resultat'] : array();
-
 
55
		return $flores['resultat'];
-
 
56
	}
Line 49... Line 57...
49
 
57
 
50
	private function getSynonymes() {
58
	private function getSynonymes() {
51
		$nns = $this->nomCourant->getNns();
59
		$nns = $this->nomCourant->getNns();
52
		$synonymes = $this->noms->getSynonymes($nns);
60
		$synonymes = $this->noms->getSynonymes($nns);