Rev 300 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php// declare(encoding='UTF-8');/*** Classe Arbre du module Consultation.* Permet de consultater un référentiel sous forme d'arbre** @package Referentiel* @category Php5.2* @author Aurélien PERONNET <aurelien@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 Arbre extends AppliControleur {private $referentiel = null;public function __construct() {parent::__construct();// Récupération de paramêtresif (isset($_GET['ref'])) { // code du projet courrant$this->referentiel = strtolower($_GET['ref']);}}//+----------------------------------------------------------------------------------------------------------------+// Méthodes/*** Fonction d'affichage par défaut*/public function executerActionParDefaut() {$this->definirCommeModulePrincipal(get_class($this));$this->construireMenu($this->referentiel);$this->construireFilAriane($this->referentiel);$this->executerActionReferentiel('Arbre', 'afficherArbre', $this->referentiel, 20);}public function afficherArbre() {$donnees = array();$rechercheDao = new RechercheDao();$parametres = array('mots' => '*','ref' => $this->referentiel,'rg' => 180);$donnees['resultats'] = $rechercheDao->chercher('ParDefaut', $parametres);$donnees['url_service_tpl'] = Config::get('url_jrest');$donnees['url_fiche_taxon_tpl'] = $this->obtenirUrlFicheTaxon($this->referentiel, '%s');$donnees['referentiel'] = $this->referentiel;$resultat = $this->getVue('arbre_taxon', $donnees);$this->setSortie(self::RENDU_CORPS, $resultat);}}?>