Subversion Repositories eFlore/Applications.del

Rev

Rev 1621 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1621 Rev 1682
Line 1... Line 1...
1
<?php
1
<?php
2
//declare(encoding='UTF-8');
2
//declare(encoding='UTF-8');
3
/**
3
/**
4
 * Exemple de lancement du script : :
4
 * Exemple de lancement du script : :
5
 * /opt/lampp/bin/php cli.php coste -a chargerTous
5
 * /opt/lampp/bin/php cli.php commentaires -a alerteMail
6
 *
6
 *
7
 * @category	php 5.2
7
 * @category	php 5.4
-
 
8
 * @package		DEL
8
 * @package		eFlore/Scripts
9
 * @subpackage	Scripts
9
 * @author		Aurélien PERONNET <aurelien@tela-botanica.org>
10
 * @author		Aurélien PERONNET <aurelien@tela-botanica.org>
10
 * @copyright	Copyright (c) 2012, Tela Botanica (accueil@tela-botanica.org)
11
 * @copyright	Copyright (c) 2012, Tela Botanica (accueil@tela-botanica.org)
11
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
12
* @license		CeCILL v2 http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt
12
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
13
 * @license		GNU-GPL http://www.gnu.org/licenses/gpl.html
13
 * @version		$Id$
-
 
14
 */
14
 */
15
class Commentaires extends DelScript {
15
class Commentaires extends DelScript {
Line 16... Line 16...
16
 
16
 
17
	public function executer() {
17
	public function executer() {
Line 30... Line 30...
30
			}
30
			}
31
		} catch (Exception $e) {
31
		} catch (Exception $e) {
32
			$this->traiterErreur($e->getMessage());
32
			$this->traiterErreur($e->getMessage());
33
		}
33
		}
34
	}
34
	}
35
	
35
 
36
	private function chargerClasse($classe) {
36
	private function chargerClasse($classe) {
37
		require_once $classe.'.php';
37
		require_once $classe.'.php';
38
		return new $classe($this->parametres, $this);
38
		$conteneur = new Conteneur($this->parametres);
-
 
39
		return new $classe($conteneur);
39
	}
40
	}
40
}
41
}
41
?>
42
?>
42
43