Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

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