New file |
0,0 → 1,46 |
<?php |
// declare(encoding='UTF-8'); |
/** |
* classe Controleur du module Syndication. |
* |
* @package Collection |
* @category Php5 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
* @copyright 2010 Tela-Botanica |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL |
* @version SVN: $Id$ |
*/ |
class Syndication extends aControleur { |
|
//+----------------------------------------------------------------------------------------------------------------+ |
// Méthodes |
/** |
* Fonction d'affichage par défaut |
*/ |
public function executerActionParDefaut() { |
return $this->afficher(); |
} |
|
/** |
* Cartographier les collections. |
* @return string la vue correspondante |
*/ |
public function afficher() { |
// Initialisation de variable |
$donnees = array(); |
|
// Récupération des infos sur les flux disponibles |
$syndicationDao = new SyndicationDao(); |
$donnees['syndications'] = $syndicationDao->getListeDesFlux(); |
|
// Limitation des entrées des flux |
$donnees['limite'] = Config::get('flux_limite'); |
|
// Traitement du squelette et retour |
$resultat = $this->getVue('syndication', $donnees); |
$this->setSortie(self::RENDU_CORPS, $resultat); |
$this->chargerPiedDePage(); |
} |
} |
?> |