Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1730 Rev 1740
Line 233... Line 233...
233
		$cles_fmt = array();
233
		$cles_fmt = array();
234
		if(!empty($ids_elements_lies)) {
234
		if(!empty($ids_elements_lies)) {
235
			$ids = $this->protegerTableau($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).") ";
236
			$requete = "SELECT cle FROM {$this->table_champs_etendus} WHERE {$this->champ_id} IN (".implode(',',$ids).") ";
237
			$cles = Cel::db()->executerRequete($requete);
237
			$cles = Cel::db()->executerRequete($requete);
-
 
238
			$i = 0;
238
			foreach($cles as &$cle) {
239
			foreach($cles as &$cle) {
239
				$cles_fmt[] = $cle['cle'];
240
				$cles_fmt[$cle['cle']] = $i++;
240
			}
241
			}
241
		}
242
		}
242
		return $cles_fmt; 
243
		return array_values(array_flip($cles_fmt));
243
	}
244
	}
Line 244... Line 245...
244
 
245
 
245
	/**
246
	/**
246
	 * Transforme un label en clé.
247
	 * Transforme un label en clé.