Subversion Repositories eFlore/Applications.coel-consultation

Rev

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

Rev 97 Rev 112
Line 7... Line 7...
7
 * @package		Collection
7
 * @package		Collection
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
 * @copyright	2010 Tela-Botanica
9
 * @copyright	2010 Tela-Botanica
10
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
10
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
12
 * @version		SVN: $Id: ColControleur.php 97 2010-06-22 08:14:26Z jpm $
12
 * @version		SVN: $Id: ColControleur.php 112 2010-06-28 09:29:46Z jpm $
13
 */
13
 */
14
abstract class ColControleur extends Controleur {
14
abstract class ColControleur extends Controleur {
Line 15... Line 15...
15
	
15
	
16
	const FMT_DATE = '%d/%m/%Y';// Supporte les formats de dates non valides (1989-00-00)
16
	const FMT_DATE = '%d/%m/%Y';// Supporte les formats de dates non valides (1989-00-00)
Line 364... Line 364...
364
		$chaineARetourner = $chaineTermes.$this->formaterAutre($chaineAutres);
364
		$chaineARetourner = $chaineTermes.$this->formaterAutre($chaineAutres);
Line 365... Line 365...
365
		
365
		
366
		return $chaineARetourner;
366
		return $chaineARetourner;
Line -... Line 367...
-
 
367
	}
-
 
368
	
-
 
369
	protected function obtenirUrlRecherche($txt = null) {
-
 
370
		$this->url->setRequete(false);
-
 
371
		$this->url->setVariableRequete('module', 'Recherche');
-
 
372
		$this->url->setVariableRequete('action', 'rechercher');
-
 
373
		if (!is_null($txt)) {
-
 
374
			$this->url->setVariableRequete('recherche', $txt);
-
 
375
		}
-
 
376
		$url = $this->url->getURL();
-
 
377
		$this->url->unsetVariablesRequete(array('module', 'action', 'recherche'));
-
 
378
		return $url;
367
	}
379
	}
368
	
380
	
369
	protected function obtenirUrlFicheStructure($id_structure) {
381
	protected function obtenirUrlFicheStructure($id_structure) {
370
		$this->url->setVariableRequete('module', 'Fiche');
382
		$this->url->setRequete(false);
371
		$this->url->setVariableRequete('action', 'afficherStructure');
383
		$this->url->setVariableRequete('module', 'FicheStructure');
372
		$this->url->setVariableRequete('id', $id_structure);
384
		$this->url->setVariableRequete('id', $id_structure);
373
		$url = $this->url->getURL();
385
		$url = $this->url->getURL();
374
		$this->url->unsetVariablesRequete(array('module', 'action', 'id'));
386
		$this->url->unsetVariablesRequete(array('module', 'id'));
Line 375... Line 387...
375
		return $url;
387
		return $url;
376
	}
388
	}
377
	
389
	
378
	protected function obtenirUrlFicheCollection($id_collection) {
390
	protected function obtenirUrlFicheCollection($id_collection) {
379
		$this->url->setVariableRequete('module', 'Fiche');
391
		$this->url->setRequete(false);
380
		$this->url->setVariableRequete('action', 'afficherCollection');
392
		$this->url->setVariableRequete('module', 'FicheCollection');
381
		$this->url->setVariableRequete('id', $id_collection);
393
		$this->url->setVariableRequete('id', $id_collection);
382
		$url = $this->url->getURL();
394
		$url = $this->url->getURL();
Line 383... Line 395...
383
		$this->url->unsetVariablesRequete(array('module', 'action', 'id'));
395
		$this->url->unsetVariablesRequete(array('module', 'id'));
384
		return $url;
396
		return $url;
385
	}
397
	}
386
	
398
	
387
	protected function obtenirUrlFichePersonne($id_personne) {
399
	protected function obtenirUrlFichePersonne($id_personne) {
388
		$this->url->setVariableRequete('module', 'Fiche');
400
		$this->url->setRequete(false);
389
		$this->url->setVariableRequete('action', 'afficherPersonne');
401
		$this->url->setVariableRequete('module', 'FichePersonne');
390
		$this->url->setVariableRequete('id', $id_personne);
402
		$this->url->setVariableRequete('id', $id_personne);
Line 391... Line 403...
391
		$url = $this->url->getURL();
403
		$url = $this->url->getURL();
392
		$this->url->unsetVariablesRequete(array('module', 'action', 'id'));
404
		$this->url->unsetVariablesRequete(array('module', 'id'));