Rev 1215 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?phpclass 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');}public function getInpn() {return $this->selectionne->get('cd_nom');}}?>