Line 190... |
Line 190... |
190 |
$menu['nom'] = 'Consultation';
|
190 |
$menu['nom'] = 'Consultation';
|
191 |
$menu['url'] = $this->obtenirUrlMenuConsultation($referentiel);
|
191 |
$menu['url'] = $this->obtenirUrlMenuConsultation($referentiel);
|
192 |
$menu['activite'] = ((preg_match('/^(?:Consultation|Recherche|FicheTaxon)$/', $this->getModulePrincipalCourant())) ? 'actif' : 'inactif');
|
192 |
$menu['activite'] = ((preg_match('/^(?:Consultation|Recherche|FicheTaxon)$/', $this->getModulePrincipalCourant())) ? 'actif' : 'inactif');
|
193 |
$menu['title'] = "Interroger la base en cours de travail.";
|
193 |
$menu['title'] = "Interroger la base en cours de travail.";
|
194 |
$donnees['menus'][] = $menu;
|
194 |
$donnees['menus'][] = $menu;
|
195 |
$menu['nom'] = 'Arbre';
|
195 |
$menu['nom'] = 'Arbre taxo';
|
196 |
$menu['url'] = $this->obtenirUrlMenuArbre($referentiel);
|
196 |
$menu['url'] = $this->obtenirUrlMenuArbre($referentiel);
|
197 |
$menu['activite'] = (($this->getModulePrincipalCourant() == 'Arbre') ? 'actif' : 'inactif');
|
197 |
$menu['activite'] = (($this->getModulePrincipalCourant() == 'Arbre') ? 'actif' : 'inactif');
|
198 |
$menu['title'] = "Consulter l'aborescence du référentiel";
|
198 |
$menu['title'] = "Consulter l'aborescence du référentiel";
|
199 |
$donnees['menus'][] = $menu;
|
199 |
$donnees['menus'][] = $menu;
|
200 |
$menu['nom'] = 'Tests';
|
200 |
$menu['nom'] = 'Tests';
|
Line 295... |
Line 295... |
295 |
|
295 |
|
296 |
protected function obtenirUrlMenuArbre($referentiel) {
|
296 |
protected function obtenirUrlMenuArbre($referentiel) {
|
297 |
return $this->obtenirUrlMenu('Arbre', $referentiel);
|
297 |
return $this->obtenirUrlMenu('Arbre', $referentiel);
|
Line -... |
Line 298... |
- |
|
298 |
}
|
- |
|
299 |
|
- |
|
300 |
protected function obtenirUrlMenuBranche($referentiel, $num_nom) {
|
- |
|
301 |
$this->url->setRequete(false);
|
- |
|
302 |
$this->url->setVariableRequete('module', 'Arbre');
|
- |
|
303 |
$this->url->setVariableRequete('action', 'afficherBranche');
|
- |
|
304 |
$this->url->setVariableRequete('ref', $referentiel);
|
- |
|
305 |
$this->url->setVariableRequete('num_nom', $num_nom);
|
- |
|
306 |
$url = $this->url->getURL();
|
- |
|
307 |
$this->url->unsetVariablesRequete(array('module', 'action', 'ref', 'num_nom'));
|
- |
|
308 |
return $url;
|
- |
|
309 |
}
|
- |
|
310 |
|
- |
|
311 |
protected function obtenirUrlMenuBrancheSynonyme($referentiel, $num_nom) {
|
- |
|
312 |
$this->url->setRequete(false);
|
- |
|
313 |
$this->url->setVariableRequete('module', 'Arbre');
|
- |
|
314 |
$this->url->setVariableRequete('action', 'afficherBrancheSynonyme');
|
- |
|
315 |
$this->url->setVariableRequete('ref', $referentiel);
|
- |
|
316 |
$this->url->setVariableRequete('num_nom', $num_nom);
|
- |
|
317 |
$url = $this->url->getURL();
|
- |
|
318 |
$this->url->unsetVariablesRequete(array('module', 'action', 'ref', 'num_nom'));
|
- |
|
319 |
return $url;
|
298 |
}
|
320 |
}
|
299 |
|
321 |
|
300 |
private function obtenirUrlMenu($menu, $referentiel = null) {
|
322 |
private function obtenirUrlMenu($menu, $referentiel = null) {
|
301 |
$this->url->setRequete(false);
|
323 |
$this->url->setRequete(false);
|
302 |
$this->url->setVariableRequete('module', $menu);
|
324 |
$this->url->setVariableRequete('module', $menu);
|