Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 291 Rev 293
1
<?php
1
<?php
2
class NomCourrant {
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
	}
11
	}
12
 
12
 
13
	/**
13
	/**
14
	 * Retour le numéro du nom sélectionné courrant.
14
	 * Retour le numéro du nom sélectionné courant.
15
	 *
15
	 *
16
	 * @return le numéro du nom sélectionné.
16
	 * @return le numéro du nom sélectionné.
17
	 */
17
	 */
18
	public function getNns() {
18
	public function getNns() {
19
		return $this->nns;
19
		return $this->nns;
20
	}
20
	}
21
 
21
 
22
	public function getNomSelectionne() {
22
	public function getNomSelectionne() {
23
		return $this->selectionne;
23
		return $this->selectionne;
24
	}
24
	}
25
 
25
 
26
	public function getNomRetenu() {
26
	public function getNomRetenu() {
27
		return $this->selectionne;
27
		return $this->selectionne;
28
	}
28
	}
29
 
29
 
30
}
30
}
31
?>
31
?>