Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 163 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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