Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 321 | Go to most recent revision | Details | 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
	}
8
 
9
	public function get($cle) {
10
		$valeur = '';
11
		if (array_key_exists($cle, $this->infos)) {
12
			$valeur = $this->infos[$cle];
13
		}
14
		return $valeur;
15
	}
16
}
17
?>