Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 284 Rev 302
Line 11... Line 11...
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 Ethnobotanique extends aControleur {
15
class Ethnobotanique extends aControleur {
-
 
16
 
-
 
17
	private $conteneur = null;
-
 
18
	private $nomCourant = null;
16
	private $serviceNomsVernaculaires = null;
19
	private $nomsVernaculaires = null;
17
	
20
 
18
	public function __construct($num_tax = null, $type = null, $taille = 630) {
21
	public function __construct(Conteneur $conteneur) {
19
		$this->initialiser($num_tax);
22
		$this->conteneur = $conteneur;
-
 
23
		$this->nomCourant = $this->conteneur->getNomCourant();
-
 
24
		$this->nomsVernaculaires = $this->conteneur->getApiNomsVernaculaires();
20
	}
25
	}
21
	
26
 
22
	public function initialiser($num_tax) {
27
	public function obtenirDonnees() {
23
		$this->serviceNomsVernaculaires = new NomsVernaculaires($num_tax);
28
		$nt = $this->nomCourant->getNomRetenu()->get('num_taxonomique');
24
	}
-
 
25
	
-
 
26
	public function obtenirDonnees($num_tax) {
-
 
27
		$donnees = $this->serviceNomsVernaculaires->getRechercheComplete($num_tax);
29
		$donnees = $this->nomsVernaculaires->getRechercheComplete($nt);
28
		return $donnees;
30
		return $donnees;
29
	}
31
	}
30
}
32
}
31
?>
33
?>
32
34