Overview
Comment: | Correctif : renvoi de valeurs booléennes pour les filtres booléens |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA1: |
5d9609e6827ce82aa350f1f1970b99c9 |
User & Date: | bohwaz on 2020-02-28 02:01:10 |
Other Links: | manifest | tags |
Context
2020-02-29
| ||
23:15 | Limiter la taille des blobs check-in: 1c80667228 user: bohwaz tags: trunk, stable | |
2020-02-28
| ||
02:01 | Correctif : renvoi de valeurs booléennes pour les filtres booléens check-in: 5d9609e682 user: bohwaz tags: trunk, stable | |
2020-02-01
| ||
15:20 | Debug commité par erreur check-in: 63f1ea546f user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Squelette_Filtres.php from [719077c361] to [4ef78402d4].
︙ | ︙ | |||
209 210 211 212 213 214 215 | } // Compatibilité SPIP static public function egal_a($value, $test) { if ($value == $test) | | | | 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 | } // Compatibilité SPIP static public function egal_a($value, $test) { if ($value == $test) return true; else return false; } static public function different_de($value, $test) { if ($value != $test) return true; else return false; } // disponible aussi avec : | ?{sioui, sinon} static public function choixsivide($value, $un, $deux = '') { |
︙ | ︙ | |||
327 328 329 330 331 332 333 | static public function date_w3c($date) { return date(DATE_W3C, $date); } static public function et($value, $test) { | | | | | | | | | | | 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 | static public function date_w3c($date) { return date(DATE_W3C, $date); } static public function et($value, $test) { return ($value && $test) ? true : false; } static public function ou($value, $test) { return ($value || $test) ? true : false; } static public function xou($value, $test) { return ($value XOR $test) ? true : false; } static public function oui($value) { return $value ? true : false; } static public function non($value) { return !$value ? true : false; } static public function superieur_a($value, $test) { return ($value > $test) ? true : false; } static public function superieur_ou_egal_a($value, $test) { return ($value >= $test) ? true : false; } static public function inferieur_a($value, $test) { return ($value < $test) ? true : false; } static public function inferieur_ou_egal_a($value, $test) { return ($value <= $test) ? true : false; } static public function euros($value) { return str_replace(' ', ' ', number_format($value, (round($value) == round($value, 2) ? 0 : 2), ',', ' ')) . ' €'; } static public function taille_en_octets($value) { return Utils::format_bytes($value); } } |