Subversion Repositories eFlore/Projets.eflore-projets

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
231 jpm 1
<?php
2
class OntologieDO {
3
	private $infos;
4
 
5
	public function __construct(Array $infos) {
6
		$this->infos = $infos;
7
	}
8
 
9
	public function getTag($tag) {
10
		return isset($this->infos[$tag]) ? $this->infos[$tag] : null;
11
	}
12
 
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
?>