Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 291 | Rev 380 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 291 Rev 321
1
<?php
1
<?php
2
class Nom {
2
class Nom {
3
	private $infos = array();
3
	private $infos = array();
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
	
-
 
9
	public function getInfos() {
-
 
10
		return $this->infos;
-
 
11
	}
8
 
12
 
9
	public function get($cle) {
13
	public function get($cle) {
10
		$valeur = '';
14
		$valeur = '';
11
		if (array_key_exists($cle, $this->infos)) {
15
		if (array_key_exists($cle, $this->infos)) {
12
			$valeur = $this->infos[$cle];
16
			$valeur = $this->infos[$cle];
13
		}
17
		}
14
		return $valeur;
18
		return $valeur;
15
	}
19
	}
16
}
20
}
17
?>
21
?>