Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 2184 → Rev 2185

/branches/v1.11-magnesium/services/bibliotheque/Sql.php
288,8 → 288,8
private function ajouterContrainteDepartement() {
if (isset($this->parametres['masque.departement'])) {
$dept = $this->parametres['masque.departement'];
$deptMotif = $this->bdd->proteger("INSEE-C:$dept");
$this->addWhere('masque.departement', "do.ce_zone_geo LIKE $deptMotif");
$deptMotif = $this->bdd->proteger("$dept");
$this->addWhere('masque.departement', "substr(do.ce_zone_geo, 1, 2) = $deptMotif");
 
$this->ajouterJoinObsSiNecessaire();
}
687,12 → 687,12
$keys = array_keys($arr);
 
if ($prefix) {
array_walk($keys, create_function('&$val, $k, $prefix', '$val = sprintf("%s.`%s`", $prefix, $val);'), $prefix);
array_walk($keys, function(&$val, $k, $prefix) { $val = sprintf("%s.`%s`", $prefix, $val);}, $prefix);
} else {
array_walk($keys, create_function('&$val, $k', '$val = sprintf("`%s`", $val);'));
array_walk($keys, function(&$val, $k) { $val = sprintf("`%s`", $val);});
}
 
return implode(', ', array_map(create_function('$v, $k', 'return sprintf("%s AS `%s`", $k, $v);'), $arr, $keys));
return implode(', ', array_map(function($v, $k) {return sprintf("%s AS `%s`", $k, $v);}, $arr, $keys));
}
 
public function getVotesDesImages($idsImages, $protocole = null) {