1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<?php
namespace Garradin;
class Squelette_Filtres
{
static private $g2x = null;
static private $alt = [];
static public $filtres_php = [
'strtolower',
'strtoupper',
'ucfirst',
'ucwords',
|
<
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<?php
namespace Garradin;
class Squelette_Filtres
{
static private $alt = [];
static public $filtres_php = [
'strtolower',
'strtoupper',
'ucfirst',
'ucwords',
|
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
|
static public function div($a, $b)
{
return $b ? $a / $b : 0;
}
static public function modulo($a, $mod, $add)
{
return ($mod ? $nb % $mod : 0) + $add;
}
static public function vide($value)
{
return '';
}
|
|
|
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
|
static public function div($a, $b)
{
return $b ? $a / $b : 0;
}
static public function modulo($a, $mod, $add)
{
return ($mod ? $a % $mod : 0) + $add;
}
static public function vide($value)
{
return '';
}
|