Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 927 Rev 990
Line 127... Line 127...
127
		if (!isset($this->partages['Bdd'])){
127
		if (!isset($this->partages['Bdd'])){
128
			$this->partages['Bdd'] = new Bdd();
128
			$this->partages['Bdd'] = new Bdd();
129
		}
129
		}
130
		return $this->partages['Bdd'];
130
		return $this->partages['Bdd'];
131
	}
131
	}
-
 
132
	
-
 
133
	public function getCache($dossierStockage = null) {
-
 
134
		if (!isset($this->partages['Cache'])){
-
 
135
			$params = array(
-
 
136
				'mise_en_cache' => $this->getParametre('cache'), 
-
 
137
				'stockage_chemin' => is_null($dossierStockage) ? $this->getParametre('chemincache') : $dossierStockage, 
-
 
138
				'duree_de_vie' => $this->getParametre('dureecache')
-
 
139
			);
-
 
140
			$this->partages['Cache'] = new CacheSimple($params);
-
 
141
		}
-
 
142
		return $this->partages['Cache'];
-
 
143
	}
Line 132... Line 144...
132
 
144
 
133
	public function getRestClient() {
145
	public function getRestClient() {
134
		if (!isset($this->partages['RestClient'])){
146
		if (!isset($this->partages['RestClient'])){
135
			$this->partages['RestClient'] = new RestClient();
147
			$this->partages['RestClient'] = new RestClient();
136
		}
148
		}
137
		return $this->partages['RestClient'];
149
		return $this->partages['RestClient'];
-
 
150
	}
-
 
151
	
-
 
152
	public function getQrCode() {
-
 
153
		if (!isset($this->partages['QrCode'])){
-
 
154
			$this->partages['QrCode'] = new QrCode($this);
-
 
155
		}
-
 
156
		return $this->partages['QrCode'];
138
	}
157
	}
139
}
158
}
140
?>
159
?>