core/Database.class.php 1 location
|
@@ 250-259 (lines=10) @@
|
| 247 |
|
*
|
| 248 |
|
* pour intialiser la ou les clauses where d'une requete
|
| 249 |
|
*/
|
| 250 |
|
public function where($champ, $cond, $champ_test, $closure = null) {
|
| 251 |
|
if ( $closure === null) {
|
| 252 |
|
$this->conditions[] = $champ.$cond.$champ_test;
|
| 253 |
|
}
|
| 254 |
|
else {
|
| 255 |
|
$this->conditions[] = $champ.$cond.$champ_test." ".$closure;
|
| 256 |
|
}
|
| 257 |
|
|
| 258 |
|
return $this;
|
| 259 |
|
}
|
| 260 |
|
|
| 261 |
|
/**
|
| 262 |
|
* @return array
|
core/modules/Querybuilder.class.php 1 location
|
@@ 110-119 (lines=10) @@
|
| 107 |
|
*
|
| 108 |
|
* pour intialiser la ou les clauses where d'une requete
|
| 109 |
|
*/
|
| 110 |
|
public function where($champ, $cond, $champ_test, $closure = null) {
|
| 111 |
|
if ( $closure === null) {
|
| 112 |
|
$this->conditions[] = $champ.$cond.$champ_test;
|
| 113 |
|
}
|
| 114 |
|
else {
|
| 115 |
|
$this->conditions[] = $champ.$cond.$champ_test." ".$closure;
|
| 116 |
|
}
|
| 117 |
|
|
| 118 |
|
return $this;
|
| 119 |
|
}
|
| 120 |
|
|
| 121 |
|
/**
|
| 122 |
|
* @return array
|