Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 361 | Rev 380 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
291 jpm 1
<?php
293 delphine 2
class NomCourant {
291 jpm 3
	private $nns = null;
4
	private $selectionne = null;
5
	private $retenu = null;
6
 
7
	public function __construct($num_nom_selectionne, Noms $noms, Taxons $taxons) {
8
		$this->nns = $num_nom_selectionne;
9
		$this->selectionne = new Nom($noms->getNom($this->nns));
10
		$this->retenu = new Nom($taxons->getTaxon($this->nns));
379 delphine 11
		$taxons_sup = $taxons->getTaxonsSup($this->nns);
12
		$this->taxons_sup = $taxons_sup[$this->nns];
291 jpm 13
	}
14
 
15
	/**
293 delphine 16
	 * Retour le numéro du nom sélectionné courant.
291 jpm 17
	 *
18
	 * @return le numéro du nom sélectionné.
19
	 */
20
	public function getNns() {
21
		return $this->nns;
22
	}
23
 
24
	public function getNomSelectionne() {
25
		return $this->selectionne;
26
	}
27
 
28
	public function getNomRetenu() {
361 delphine 29
		return $this->retenu;
291 jpm 30
	}
31
 
32
}
33
?>