New file |
0,0 → 1,54 |
<?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êtres |
if (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); |
} |
} |
?> |