Subversion Repositories eFlore/Projets.eflore-projets

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

<?php
class NomDO {
        private $infos;
        
        public function __construct(Array $infos) {
                $this->infos = $infos;
        }
        
        public function getTag($tag) {
                return $this->infos[$tag];
        }
        
        public function verifierTag($tag) {
                $existe = true;
                if ($this->getTag($tag) == null || $this->getTag($tag) == '') {
                        $existe = false;
                }
                return $existe;
        }

        public function getNomDetails() {
                return $this->getTitle().' by '.$this->getAuthor();
        }
}
?>