]>
git.agnieray.net Git - galette.git/blob - galette/includes/smarty.inc.php
dfbdfbd80cdd0c5b26438f5b719e969a1ed90d86
3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
6 * Smarty main initialisation
10 * Copyright © 2006-2014 The Galette Team
12 * This file is part of Galette (http://galette.tuxfamily.org).
14 * Galette is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
19 * Galette is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with Galette. If not, see <http://www.gnu.org/licenses/>.
30 * @author Frédéric Jaqcuot <unknown@unknow.com>
31 * @author Georges Khaznadar (i18n using gettext) <unknown@unknow.com>
32 * @author Johan Cwiklinski <johan@x-tnd.be>
33 * @copyright 2006-2014 The Galette Team
34 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
36 * @link http://galette.tuxfamily.org
37 * @since Available since 0.63
40 if (!defined('GALETTE_ROOT')) {
41 die("Sorry. You can't access directly to this file");
44 $smarty->muteExpectedErrors();
45 $smarty->registerClass('GaletteMail', '\Galette\Core\GaletteMail');
48 * Return member name. Smarty cannot directly use static functions
50 * @param array $params Parameters
52 * @return Adherent::getSName
53 * @see Adherent::getSName
55 function getMemberName($params)
59 return Galette\Entity\Adherent
::getSName($container->get('zdb'), $id);
61 $smarty->registerPlugin(
67 $s = new Galette\Entity\
Status($container->get('zdb'));
68 $statuses_list = $s->getList();
73 * @param array $params Parameters
77 function getStatusLabel($params)
80 global $statuses_list;
81 return $statuses_list[$id];
83 $smarty->registerPlugin(