Subversion Repositories eFlore/Projets.eflore-projets

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
163 jpm 1
<?php
2
class NomDO {
3
	private $infos;
4
 
5
	public function __construct(Array $infos) {
6
		$this->infos = $infos;
7
	}
8
 
9
	public function getTag($tag) {
10
		return $this->infos[$tag];
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
	public function getNomDetails() {
22
		return $this->getTitle().' by '.$this->getAuthor();
23
	}
24
}
25
?>