Subversion Repositories eFlore/Applications.del

Rev

Rev 1892 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1892 Rev 1920
Line 16... Line 16...
16
*/
16
*/
17
class Navigation {
17
class Navigation {
Line 18... Line 18...
18
 
18
 
19
	private $conteneur;
19
	private $conteneur;
-
 
20
	private $parametresUrl;
20
	private $parametresUrl;
21
	private $ressourcesUrl;
21
	private $serviceNom;
22
	private $serviceNom;
22
	private $filtresPossibles;
23
	private $filtresPossibles;
Line 23... Line 24...
23
	private $filtresActifs;
24
	private $filtresActifs;
Line 34... Line 35...
34
 
35
 
35
		$contexte = $this->conteneur->getContexte();
36
		$contexte = $this->conteneur->getContexte();
36
		$this->parametresUrl = $contexte->getQS();
37
		$this->parametresUrl = $contexte->getQS();
Line -... Line 38...
-
 
38
		$this->serviceNom = $contexte->getRessource(1);
-
 
39
 
-
 
40
		$ressources = $contexte->getRessource();
37
		$this->serviceNom = $contexte->getRessource(1);
41
		$this->ressourcesUrl = implode('/', array_slice($ressources, 1));
38
 
42
 
39
		$this->filtresPossibles = $this->conteneur->getparametreTableau($this->serviceNom.'.masques_possibles');
43
		$this->filtresPossibles = $this->conteneur->getparametreTableau($this->serviceNom.'.masques_possibles');
Line 40... Line 44...
40
		$this->chargerFiltresActifs();
44
		$this->chargerFiltresActifs();
Line 84... Line 88...
84
	private function obtenirUrlNavigation($depart, $limite) {
88
	private function obtenirUrlNavigation($depart, $limite) {
85
		$parametres = $this->parametresUrl;
89
		$parametres = $this->parametresUrl;
86
		$parametres['navigation.depart'] = $depart;
90
		$parametres['navigation.depart'] = $depart;
87
		$parametres['navigation.limite'] = $limite;
91
		$parametres['navigation.limite'] = $limite;
Line 88... Line 92...
88
 
92
 
89
		$urlServiceBase = $this->conteneur->getParametre('url_service_base').$this->serviceNom;
93
		$urlServiceBase = $this->conteneur->getParametre('url_service_base').$this->ressourcesUrl;
90
		$urlNavigation = $this->conteneur->getUrl($urlServiceBase);
94
		$urlNavigation = $this->conteneur->getUrl($urlServiceBase);
91
		$urlNavigation->setOption(Url::OPTION_ENCODER_VALEURS, true);
95
		$urlNavigation->setOption(Url::OPTION_ENCODER_VALEURS, true);
92
		$urlNavigation->setRequete($parametres);
96
		$urlNavigation->setRequete($parametres);
93
		$url = $urlNavigation->getURL();
97
		$url = $urlNavigation->getURL();