Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 163 Rev 196
Line 5... Line 5...
5
	public function __construct(Array $infos) {
5
	public function __construct(Array $infos) {
6
		$this->infos = $infos;
6
		$this->infos = $infos;
7
	}
7
	}
Line 8... Line 8...
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;
Line 11... Line 11...
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;
-
 
19
	}
-
 
20
 
-
 
21
	public function getNomDetails() {
-
 
22
		return $this->getTitle().' by '.$this->getAuthor();
18
		return $existe;
23
	}
19
	}
24
}
20
}