/trunk/bibliotheque/Conteneur.php |
---|
71,14 → 71,14 |
return $meta; |
} |
public function getNomCourrant() { |
if (!isset($this->partages['NomCourrant'])){ |
public function getNomCourant() { |
if (!isset($this->partages['NomCourant'])){ |
$nns = $this->getParametre('num_nom'); |
$noms = $this->getApiNoms(); |
$taxons = $this->getApiTaxons(); |
$this->partages['NomCourrant'] = new NomCourrant($nns, $noms, $taxons); |
$this->partages['NomCourant'] = new NomCourant($nns, $noms, $taxons); |
} |
return $this->partages['NomCourrant']; |
return $this->partages['NomCourant']; |
} |
public function getUtilisateur() { |
/trunk/bibliotheque/NomCourant.php |
---|
New file |
0,0 → 1,31 |
<?php |
class NomCourant { |
private $nns = 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)); |
} |
/** |
* 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 getNomSelectionne() { |
return $this->selectionne; |
} |
public function getNomRetenu() { |
return $this->selectionne; |
} |
} |
?> |