Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 535 | Rev 563 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 535 Rev 536
Line 42... Line 42...
42
	/** tableau contenant tous les champs d'une table (est rempli par la fonction Commun::recupererNomChamp($table)) */
42
	/** tableau contenant tous les champs d'une table (est rempli par la fonction Commun::recupererNomChamp($table)) */
43
	protected $champs_table = array();
43
	protected $champs_table = array();
44
	private static $tri_multi_dimension = array();
44
	private static $tri_multi_dimension = array();
45
	private static $tri_type = '';
45
	private static $tri_type = '';
Line -... Line 46...
-
 
46
 
-
 
47
	public function __construct() {
-
 
48
		$this->config = is_null($config) ? Config::get($this->serviceNom) : $config;
-
 
49
	}
46
 
50
	
47
	public function consulter($ressources, $parametres) {
51
	public function consulter($ressources, $parametres) {
48
		$this->ressources = $ressources;
52
		$this->ressources = $ressources;
49
		$this->parametres = $parametres;
53
		$this->parametres = $parametres;
Line 72... Line 76...
72
 
76
 
73
	private function chargerNomDuService() {
77
	private function chargerNomDuService() {
74
		$this->serviceNom = get_class($this);
78
		$this->serviceNom = get_class($this);
Line 75... Line 79...
75
	}
79
	}
76
 
80
 
77
	public function traiterResultat($resultat, $version) {
81
		public function traiterResultat($resultat, $version) {
78
		$versionResultat = null;
82
		$versionResultat = null;
79
		if ($resultat == '') {
83
		if ($resultat == '') {
80
			//cas ou la requete comporte des erreurs
84
			//cas ou la requete comporte des erreurs
Line 284... Line 288...
284
			$param_url['navigation.depart'] = $depart_precedent;
288
			$param_url['navigation.depart'] = $depart_precedent;
285
			$param_url['navigation.limite'] = $limite;
289
			$param_url['navigation.limite'] = $limite;
286
		}
290
		}
287
	}
291
	}
Line -... Line 292...
-
 
292
 
-
 
293
	public function getDureeCache() {
-
 
294
		$dureecache = 0;
-
 
295
		$dureecache = Config::get('dureecache');
-
 
296
		if ($dureecache == null || !is_numeric($dureecache) || $dureecache < 0) {
-
 
297
			$dureecache = 0;
-
 
298
		}
-
 
299
		return (int) $dureecache;
-
 
300
	}
288
 
301
	
289
	public function ajouterHref($service, $val) {
302
	public function ajouterHref($service, $val) {
290
		// http://tela-botanica.org/service:eflore:0.1/[projet]/[version_projet]/[service]/[ressource]:[valeur]
303
		// http://tela-botanica.org/service:eflore:0.1/[projet]/[version_projet]/[service]/[ressource]:[valeur]
291
		if ($this->version_projet == '+') {
304
		if ($this->version_projet == '+') {
292
			$url = Config::get('url_service_base').Config::get('nom_projet').'/'.$service.'/'.$val;
305
			$url = Config::get('url_service_base').Config::get('nom_projet').'/'.$service.'/'.$val;