Go to most recent revision |
Details |
Last modification |
View Log
| RSS feed
Rev |
Author |
Line No. |
Line |
146 |
jpm |
1 |
<?php
|
|
|
2 |
class ResultatFormateurFabrique {
|
|
|
3 |
|
|
|
4 |
public static function creer(ParametresResultats $parametres, Array $resultats){
|
161 |
jpm |
5 |
$typeResultat = ucwords($parametres->typeResultat);
|
|
|
6 |
$typeNom = ($parametres->typeNom == 'nom_vernaculaire') ? 'Verna' : '';
|
|
|
7 |
$Classe = $typeResultat.$typeNom.'Formateur';
|
146 |
jpm |
8 |
$ResultatFormateur = null;
|
1140 |
raphael |
9 |
if (class_exists($Classe)) return new $Classe($parametres, $resultats);
|
|
|
10 |
throw new Exception("La classe '$Classe' est introuvable.");
|
146 |
jpm |
11 |
}
|
|
|
12 |
}
|
|
|
13 |
?>
|