Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 418 | Rev 540 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 418 Rev 422
1
<?php
1
<?php
2
// declare(encoding='UTF-8');
2
// declare(encoding='UTF-8');
3
/**
3
/**
4
 * Classe mère du module Liste.
4
 * Classe mère du module Liste.
5
 *
5
 *
6
 * @category	PHP 5.2
6
 * @category	PHP 5.2
7
 * @package		eflore-consultation
7
 * @package		eflore-consultation
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
 * @author		Delphine CAUQUIL <delphine@tela-botanica.org>
9
 * @author		Delphine CAUQUIL <delphine@tela-botanica.org>
10
 * @copyright	2011 Tela-Botanica
10
 * @copyright	2011 Tela-Botanica
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
12
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
12
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
13
 * @version		$Id$
13
 * @version		$Id$
14
 */
14
 */
15
class Phytosociologie extends aControleur {
15
class Ecologie extends aControleur {
-
 
16
	public function __construct(Conteneur $conteneur) {
-
 
17
		$this->conteneur = $conteneur;
-
 
18
		$this->nomCourant = $this->conteneur->getNomCourant();
-
 
19
		$this->wikini = $this->conteneur->getApiWikini();
-
 
20
	}
-
 
21
	
16
	public function obtenirDonnees($num_nom) {
22
	public function obtenirDonnees() {
17
		$donnees = array();
23
		$donnees = array();
18
		$donnees['wikini'] = $this->getWikini();
24
		$donnees['wikini'] = $this->getWikini();
19
		return $donnees;
25
		return $donnees;
20
	}
26
	}
21
	
27
	
22
	private function getWikini() {
28
	private function getWikini() {
23
		$wikini = array();
29
		$wikini = array();
24
		$wikini['titre'] = 'Wikini';
30
		$wikini['titre'] = 'Wikini';
25
		$referentiel = $this->conteneur->getParametre('referentiel');
31
		$referentiel = $this->conteneur->getParametre('referentiel');
26
		$num_tax = $this->nomCourant->getNomSelectionne()->get('num_taxonomique');
32
		$num_tax = $this->nomCourant->getNomSelectionne()->get('num_taxonomique');
27
		$page_wiki = $this->wikini->getPageWikiPourRefEtNumTax($referentiel, $num_tax);
33
		$page_wiki = $this->wikini->getPageWikiPourRefEtNumTax($referentiel, $num_tax);
28
		$wikini['ecologie'] = $this->wikini->getTexteFormate($page_wiki, 'ecologie');
34
		$wikini['ecologie'] = $this->wikini->getTexteFormate($page_wiki, 'ecologie');
29
		return $wikini;
35
		return $wikini;
30
	}
36
	}
31
}
37
}
32
?>
38
?>