Subversion Repositories Applications.referentiel

Rev

Rev 134 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 134 Rev 290
1
<?php
1
<?php
2
// declare(encoding='UTF-8');
2
// declare(encoding='UTF-8');
3
/**
3
/**
4
 * Classe Controleur du module Consultation.
4
 * Classe Controleur du module Consultation.
5
 * Permet de consultation la version de travail d'un référentiel. 
5
 * Permet de consultation la version de travail d'un référentiel. 
6
 * 
6
 * 
7
 * @package		Referentiel
7
 * @package		Referentiel
8
 * @category	Php5.2
8
 * @category	Php5.2
9
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
10
 * @copyright	2010 Tela-Botanica
10
 * @copyright	2010 Tela-Botanica
11
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
11
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
12
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
12
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
13
 * @version		SVN: $Id$
13
 * @version		SVN: $Id$
14
 */
14
 */
15
class Consultation extends AppliControleur {
15
class Consultation extends AppliControleur {
16
	
16
	
17
	private $referentiel = null;
17
	private $referentiel = null;
18
	
18
	
19
	public function __construct()  {
19
	public function __construct()  {
20
		parent::__construct();
20
		parent::__construct();
21
		
21
		
22
		// Récupération de paramêtres
22
		// Récupération de paramêtres
23
		if (isset($_GET['ref'])) { // code du projet courrant
23
		if (isset($_GET['ref'])) { // code du projet courrant
24
			$this->referentiel = strtolower($_GET['ref']);
24
			$this->referentiel = strtolower($_GET['ref']);
25
		}
25
		}
26
	}
26
	}
27
	
27
	
28
	//+----------------------------------------------------------------------------------------------------------------+
28
	//+----------------------------------------------------------------------------------------------------------------+
29
	// Méthodes
29
	// Méthodes
30
	/**
30
	/**
31
	 * Fonction d'affichage par défaut
31
	 * Fonction d'affichage par défaut
32
	 */
32
	 */
33
	public function executerActionParDefaut() {
33
	public function executerActionParDefaut() {
34
		$this->definirCommeModulePrincipal(get_class($this));
34
		$this->definirCommeModulePrincipal(get_class($this));
35
		$this->construireMenu($this->referentiel);
35
		$this->construireMenu($this->referentiel);
36
		$this->construireFilAriane($this->referentiel);
36
		$this->construireFilAriane($this->referentiel);
-
 
37
		$_GET['recherche'] = "#";
37
		$this->executerActionReferentiel('Recherche', 'chargerMoteurRecherche', $this->referentiel, 20);
38
		$this->executerActionReferentiel('Recherche', 'rechercher', $this->referentiel, 20);
38
	}	
39
	}	
39
	
40
	
40
	
41
	
41
}
42
}
42
?>
43
?>