Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 880 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
163 jpm 1
<?php
2
class NomDO {
3
	private $infos;
196 jpm 4
 
163 jpm 5
	public function __construct(Array $infos) {
6
		$this->infos = $infos;
7
	}
196 jpm 8
 
163 jpm 9
	public function getTag($tag) {
196 jpm 10
		return isset($this->infos[$tag]) ? $this->infos[$tag] : null;
163 jpm 11
	}
196 jpm 12
 
163 jpm 13
	public function verifierTag($tag) {
14
		$existe = true;
15
		if ($this->getTag($tag) == null || $this->getTag($tag) == '') {
16
			$existe = false;
17
		}
18
		return $existe;
19
	}
20
}
21
?>