Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

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