57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
$this->register_modifier('strlen', 'strlen');
$this->register_modifier('get_country_name', ['Garradin\Utils', 'getCountryName']);
$this->register_modifier('format_sqlite_date_to_french', ['Garradin\Utils', 'sqliteDateToFrench']);
$this->register_modifier('format_bytes', ['Garradin\Utils', 'format_bytes']);
$this->register_modifier('format_tel', [$this, 'formatPhoneNumber']);
$this->register_modifier('abs', 'abs');
$this->register_modifier('display_champ_membre', [$this, 'displayChampMembre']);
$this->register_modifier('strftime_fr', function ($ts, $format) {
return Utils::strftime_fr($format, $ts);
});
$this->register_modifier('date_fr', function ($ts, $format = 'd/m/Y H:i:s') {
return Utils::date_fr($format, $ts);
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
$this->register_modifier('strlen', 'strlen');
$this->register_modifier('get_country_name', ['Garradin\Utils', 'getCountryName']);
$this->register_modifier('format_sqlite_date_to_french', ['Garradin\Utils', 'sqliteDateToFrench']);
$this->register_modifier('format_bytes', ['Garradin\Utils', 'format_bytes']);
$this->register_modifier('format_tel', [$this, 'formatPhoneNumber']);
$this->register_modifier('abs', 'abs');
$this->register_modifier('display_champ_membre', [$this, 'displayChampMembre']);
$this->register_modifier('get_nom_compte', function ($compte) {
if (is_null($compte))
{
return '';
}
if (!isset($this->liste_comptes))
{
$this->liste_comptes = (new Compta\Comptes)->getListAll();
}
return $this->liste_comptes[$compte];
});
$this->register_modifier('strftime_fr', function ($ts, $format) {
return Utils::strftime_fr($format, $ts);
});
$this->register_modifier('date_fr', function ($ts, $format = 'd/m/Y H:i:s') {
return Utils::date_fr($format, $ts);
|