New file |
0,0 → 1,46 |
<?php |
class NomCourant { |
private $nns = null; |
private $nnr = null; |
private $selectionne = null; |
private $retenu = null; |
|
public function __construct($num_nom_selectionne, Noms $noms, Taxons $taxons) { |
|
$this->nns = $num_nom_selectionne; |
$this->selectionne = new Nom($noms->getNom($this->nns)); |
$this->retenu = new Nom($taxons->getTaxon($this->nns)); |
$this->nnr = $this->retenu->get('id'); |
$taxons_sup = $taxons->getTaxonsSup($this->nnr); |
$this->taxons_sup = $taxons_sup[$this->nnr]; |
$this->retenu->setTaxonsSuperieurs($taxons_sup, $this->nnr); |
} |
|
/** |
* Retour le numéro du nom sélectionné courant. |
* |
* @return le numéro du nom sélectionné. |
*/ |
public function getNns() { |
return $this->nns; |
} |
|
public function getNnr() { |
return $this->nnr; |
} |
|
|
public function getNomSelectionne() { |
return $this->selectionne; |
} |
|
public function getNomRetenu() { |
return $this->retenu; |
} |
|
public function getNt() { |
return $this->retenu->get('num_taxonomique'); |
} |
|
} |
?> |