Subversion Repositories eFlore/Applications.coel-consultation

Rev

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

Rev 114 Rev 156
1
<?php
1
<?php
2
// declare(encoding='UTF-8');
2
// declare(encoding='UTF-8');
3
/**
3
/**
4
 * classe Controleur du module Syndication.
4
 * classe Controleur du module Syndication.
5
 *
5
 *
6
 * @package		Collection
6
 * @package		Collection
7
 * @category	Php5
7
 * @category	Php5
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
 * @copyright	2010 Tela-Botanica
9
 * @copyright	2010 Tela-Botanica
10
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
10
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
12
 * @version		SVN: $Id$
12
 * @version		SVN: $Id$
13
 */
13
 */
14
class Syndication extends aControleur {
14
class Syndication extends aControleur {
15
	
15
	
16
	//+----------------------------------------------------------------------------------------------------------------+
16
	//+----------------------------------------------------------------------------------------------------------------+
17
	// Méthodes
17
	// Méthodes
18
	/**
18
	/**
19
	 * Fonction d'affichage par défaut
19
	 * Fonction d'affichage par défaut
20
	 */
20
	 */
21
	public function executerActionParDefaut() {
21
	public function executerActionParDefaut() {
22
		return $this->afficher();
22
		return $this->afficher();
23
	}
23
	}
24
	
24
	
25
	/**
25
	/**
26
	 * Cartographier les collections.
26
	 * Cartographier les collections.
27
	 * @return string la vue correspondante
27
	 * @return string la vue correspondante
28
	 */
28
	 */
29
	public function afficher() {
29
	public function afficher() {
30
		// Initialisation de variable
30
		// Initialisation de variable
31
		$donnees = array();
31
		$donnees = array();
32
		
32
		
33
		// Récupération des infos sur les flux disponibles
33
		// Récupération des infos sur les flux disponibles
34
		$syndicationDao = $this->getModele('SyndicationDao');
34
		$syndicationDao = new SyndicationDao();
35
		$donnees['syndications'] = $syndicationDao->getListeDesFlux();
35
		$donnees['syndications'] = $syndicationDao->getListeDesFlux();
36
		
36
		
37
		// Limitation des entrées des flux
37
		// Limitation des entrées des flux
38
		$donnees['limite'] = Config::get('flux_limite');
38
		$donnees['limite'] = Config::get('flux_limite');
39
		
39
		
40
		// Traitement du squelette et retour
40
		// Traitement du squelette et retour
41
		$resultat = $this->getVue('syndication', $donnees);
41
		$resultat = $this->getVue('syndication', $donnees);
42
		$this->setSortie(self::RENDU_CORPS, $resultat);
42
		$this->setSortie(self::RENDU_CORPS, $resultat);
43
		$this->chargerPiedDePage();
43
		$this->chargerPiedDePage();
44
	}
44
	}
45
}
45
}
46
?>
46
?>