Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1659 Rev 1686
Line 228... Line 228...
228
	*
228
	*
229
	* @param array $ids_elements_lies
229
	* @param array $ids_elements_lies
230
	* @return bool
230
	* @return bool
231
	*/
231
	*/
232
	public function consulterClesParLots($ids_elements_lies) {
232
	public function consulterClesParLots($ids_elements_lies) {
233
		$ids = $this->protegerTableau($ids_elements_lies);
-
 
234
		$requete = "SELECT cle FROM {$this->table_champs_etendus} WHERE {$this->champ_id} IN (".implode(',',$ids).") ";
-
 
235
		$cles = $this->executerRequete($requete);
-
 
236
		$cles_fmt = array();
233
		$cles_fmt = array();
-
 
234
		if(!empty($ids_elements_lies)) {
-
 
235
			$ids = $this->protegerTableau($ids_elements_lies);
-
 
236
			$requete = "SELECT cle FROM {$this->table_champs_etendus} WHERE {$this->champ_id} IN (".implode(',',$ids).") ";
-
 
237
			$cles = $this->executerRequete($requete);
237
		foreach($cles as &$cle) {
238
			foreach($cles as &$cle) {
238
			$cles_fmt[] = $cle['cle'];
239
				$cles_fmt[] = $cle['cle'];
-
 
240
			}
239
		}
241
		}
240
		return $cles_fmt; 
242
		return $cles_fmt; 
241
	}
243
	}
Line 242... Line 244...
242
 
244