Subversion Repositories eFlore/Applications.coel-consultation

Rev

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

Rev 7 Rev 8
Line 12... Line 12...
12
 * @copyright	2010 Tela-Botanica
12
 * @copyright	2010 Tela-Botanica
13
 * @license		GPL-v3 et CECILL-v2
13
 * @license		GPL-v3 et CECILL-v2
14
 * @version		SVN:<svn_id>
14
 * @version		SVN:<svn_id>
15
 */
15
 */
Line 16... Line 16...
16
 
16
 
Line 17... Line 17...
17
class Collection {
17
class Collection extends Controleur {
18
	
18
	
19
	/**
19
	/**
20
	 * Instance de la classe pointant sur elle même (pour le pattern singleton)
20
	 * Instance de la classe pointant sur elle même (pour le pattern singleton)
Line 27... Line 27...
27
	private static $parametres = array();
27
	private static $parametres = array();
Line 28... Line 28...
28
	
28
	
29
	/**
29
	/**
30
	 * Constructeur vide
30
	 * Constructeur vide
31
	 */
31
	 */
32
	private function __construct() {
32
	public function __construct() {
33
		$meta = array('titre' => '', 'description' => '', 'tags' => '');
33
		$meta = array('titre' => '', 'description' => '', 'tags' => '');
34
		$sortie = array('metadonnees' => $meta, 'corps' => '', 'tete' => '', 'pied' => '', 'navigation' => '');
34
		$sortie = array('metadonnees' => $meta, 'corps' => '', 'tete' => '', 'pied' => '', 'navigation' => '');
35
		$url = new Url(Config::get('url_base'));
35
		$url = new Url(Config::get('url_base'));
36
		self::$parametres = array(	'module' => 'Recherche', 
36
		self::$parametres = array(	'module' => 'Recherche', 
37
			'action' => 'executerActionParDefaut',
37
			'action' => 'executerActionParDefaut',
38
			'sortie' => $sortie,
38
			'sortie' => $sortie,
-
 
39
			'url' => $url);
39
			'url' => $url);
40
		parent::__construct();
Line 40... Line 41...
40
	}
41
	}
41
	
42
	
42
	/**
43
	/**
Line 58... Line 59...
58
		$registre->set('parametres', &self::$parametres);
59
		$registre->set('parametres', &self::$parametres);
Line 59... Line 60...
59
		
60
		
60
		$ClasseModule = self::$parametres['module'];
61
		$ClasseModule = self::$parametres['module'];
61
		$action = self::$parametres['action'];
62
		$action = self::$parametres['action'];
-
 
63
		$module = new $ClasseModule();
62
		$module = new $ClasseModule();
64
		$module->$action();
63
		self::fusionnerSortie($module->$action());
65
		self::fusionnerSortie($module->getSortie());
Line 64... Line 66...
64
	}
66
	}
65
	
67
	
66
	/**
68
	/**