Subversion Repositories Applications.annuaire

Rev

Rev 42 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
42 aurelien 1
<?php
2
 
3
class Composant {
4
 
5
	public static function fabrique($classe, $options = array()) {
6
		$classe_nom = implode('', array_map('ucfirst', explode('_', $classe)));
7
		require_once dirname(__FILE__).DS.$classe.DS.$classe_nom.'.php';
8
		$Composant = new $classe_nom($options);
9
		return $Composant;
10
	}
11
 
12
}
13
?>