Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 448 | Rev 749 | 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;
448 delphine 4
	private $nnr = null;
291 jpm 5
	private $selectionne = null;
6
	private $retenu = null;
7
 
8
	public function __construct($num_nom_selectionne, Noms $noms, Taxons $taxons) {
511 gduche 9
 
291 jpm 10
		$this->nns = $num_nom_selectionne;
11
		$this->selectionne = new Nom($noms->getNom($this->nns));
12
		$this->retenu = new Nom($taxons->getTaxon($this->nns));
448 delphine 13
		$this->nnr = $this->retenu->get('id');
14
		$this->retenu->setTaxonsSuperieurs($taxons->getTaxonsSup($this->nnr), $this->nnr);
15
		$taxons_sup = $taxons->getTaxonsSup($this->nnr);
16
		$this->taxons_sup = $taxons_sup[$this->nnr];
291 jpm 17
	}
18
 
19
	/**
293 delphine 20
	 * Retour le numéro du nom sélectionné courant.
291 jpm 21
	 *
22
	 * @return le numéro du nom sélectionné.
23
	 */
24
	public function getNns() {
25
		return $this->nns;
26
	}
448 delphine 27
 
28
	public function getNnr() {
29
		return $this->nnr;
30
	}
31
 
291 jpm 32
 
33
	public function getNomSelectionne() {
34
		return $this->selectionne;
35
	}
36
 
37
	public function getNomRetenu() {
361 delphine 38
		return $this->retenu;
291 jpm 39
	}
511 gduche 40
 
41
	public function getNt() {
42
		return $this->retenu->get('num_taxonomique');
43
	}
291 jpm 44
 
45
}
46
?>