Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 291 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
class Nom {
        private $infos = array();

        public function __construct(Array $infos) {
                $this->infos = $infos;
        }
        
        public function getInfos() {
                return $this->infos;
        }

        public function get($cle) {
                $valeur = '';
                if (array_key_exists($cle, $this->infos)) {
                        $valeur = $this->infos[$cle];
                }
                return $valeur;
        }
}
?>