Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 291 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
291 jpm 1
<?php
2
class Nom {
3
	private $infos = array();
4
 
5
	public function __construct(Array $infos) {
6
		$this->infos = $infos;
7
	}
321 aurelien 8
 
9
	public function getInfos() {
10
		return $this->infos;
11
	}
291 jpm 12
 
13
	public function get($cle) {
14
		$valeur = '';
15
		if (array_key_exists($cle, $this->infos)) {
16
			$valeur = $this->infos[$cle];
17
		}
18
		return $valeur;
19
	}
20
}
21
?>