| Line 10... |
Line 10... |
| 10 |
* @author Aurélien PERONNET <aurelien@tela-botanica.org>
|
10 |
* @author Aurélien PERONNET <aurelien@tela-botanica.org>
|
| 11 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
11 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
| 12 |
* @copyright Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
|
12 |
* @copyright Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
|
| 13 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
13 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
| 14 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
|
14 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
|
| 15 |
* @version $Id: Controleur.php 241 2010-12-06 15:19:07Z jpm $
|
15 |
* @version $Id: Controleur.php 332 2011-03-22 16:54:23Z delphine $
|
| 16 |
* @link /doc/framework/
|
16 |
* @link /doc/framework/
|
| 17 |
*
|
17 |
*
|
| 18 |
*/
|
18 |
*/
|
| 19 |
abstract class Controleur {
|
19 |
abstract class Controleur {
|
| 20 |
/** Variable statique indiquant que les tableaux _GET et _POST ont déjà été encodé au format de l'appli. */
|
20 |
/** Variable statique indiquant que les tableaux _GET et _POST ont déjà été encodé au format de l'appli. */
|
| Line 56... |
Line 56... |
| 56 |
final public function chargerModele($nom_modele) {
|
56 |
final public function chargerModele($nom_modele) {
|
| 57 |
$sortie = true;
|
57 |
$sortie = true;
|
| 58 |
if (!isset($this->$nom_modele)) {
|
58 |
if (!isset($this->$nom_modele)) {
|
| 59 |
$modele = $this->getModele($nom_modele);
|
59 |
$modele = $this->getModele($nom_modele);
|
| 60 |
if ($modele !== false) {
|
60 |
if ($modele !== false) {
|
| 61 |
$this->$nom_modele = new $nom_modele;
|
61 |
$this->$nom_modele = $modele;
|
| 62 |
} else {
|
62 |
} else {
|
| 63 |
$sortie = false;
|
63 |
$sortie = false;
|
| 64 |
}
|
64 |
}
|
| 65 |
}
|
65 |
}
|
| 66 |
return $sortie;
|
66 |
return $sortie;
|