Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 332 Rev 408
Line 15... Line 15...
15
class Ethnobotanique extends aControleur {
15
class Ethnobotanique extends aControleur {
Line 16... Line 16...
16
 
16
 
17
	private $conteneur = null;
17
	private $conteneur = null;
18
	private $nomCourant = null;
18
	private $nomCourant = null;
-
 
19
	private $nomsVernaculaires = null;
Line 19... Line 20...
19
	private $nomsVernaculaires = null;
20
	private $wikini;
20
 
21
 
21
	public function __construct(Conteneur $conteneur) {
22
	public function __construct(Conteneur $conteneur) {
22
		$this->conteneur = $conteneur;
23
		$this->conteneur = $conteneur;
-
 
24
		$this->nomCourant = $this->conteneur->getNomCourant();
23
		$this->nomCourant = $this->conteneur->getNomCourant();
25
		$this->nomsVernaculaires = $this->conteneur->getApiNomsVernaculaires();
24
		$this->nomsVernaculaires = $this->conteneur->getApiNomsVernaculaires();
26
		$this->wikini = $this->conteneur->getApiWikini();
25
		$this->meta = $this->conteneur->getApiMetaDonnees();
27
		$this->meta = $this->conteneur->getApiMetaDonnees();
Line 26... Line 28...
26
		$this->appUrls = $this->conteneur->getAppUrls();
28
		$this->appUrls = $this->conteneur->getAppUrls();
27
	}
29
	}
28
 
30
 
-
 
31
	public function obtenirDonnees() {
29
	public function obtenirDonnees() {
32
		$donnees['nvjfl'] = $this->getNvjfl();
30
		$donnees['nvjfl'] = $this->getNvjfl();
33
		$donnees['chorologie'] = $this->getChorologie();
Line 31... Line 34...
31
		$donnees['chorologie'] = $this->getChorologie();
34
		$donnees['wikini'] = $this->getWikini();
32
		return $donnees;
35
		return $donnees;
Line 123... Line 126...
123
				break;
126
				break;
124
		}
127
		}
Line 125... Line 128...
125
	
128
	
126
		return $lieu;
129
		return $lieu;
-
 
130
	}
-
 
131
	
-
 
132
	private function getWikini() {
-
 
133
		$wikini = array();
-
 
134
		$wikini['titre'] = 'Wikini';
-
 
135
		$referentiel = $this->conteneur->getParametre('referentiel');
-
 
136
		$num_tax = $this->nomCourant->getNomSelectionne()->get('num_taxonomique');
-
 
137
		$page_wiki = $this->wikini->getPageWikiPourRefEtNumTax($referentiel, $num_tax);
-
 
138
		$wikini['ethnobotanique'] = $this->wikini->getTexteFormate($page_wiki, 'ethnobotanique');
-
 
139
		return $wikini;
127
	}
140
	}
128
}
141
}
129
?>
142
?>