]> git.agnieray.net Git - galette.git/blob - galette/lib/Galette/DynamicFields/Separator.php
59f8893c75f8e4daa69bf3de037f2345ffedae30
[galette.git] / galette / lib / Galette / DynamicFields / Separator.php
1 <?php
2
3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4
5 /**
6 * Separator dynamic field
7 *
8 * PHP version 5
9 *
10 * Copyright © 2012-2014 The Galette Team
11 *
12 * This file is part of Galette (http://galette.tuxfamily.org).
13 *
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.
18 *
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.
23 *
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/>.
26 *
27 * @category DynamicFields
28 * @package Galette
29 *
30 * @author Johan Cwiklinski <johan@x-tnd.be>
31 * @copyright 2012-2014 The Galette Team
32 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
33 * @version SVN: $Id$
34 * @link http://galette.tuxfamily.org
35 * @since Available since 0.7.1dev - 2012-07-28
36 */
37
38 namespace Galette\DynamicFields;
39
40 use Analog\Analog;
41 use Galette\Core\Db;
42
43 /**
44 * Separator field type
45 *
46 * @name Separator
47 * @category DynamicFields
48 * @package Galette
49 *
50 * @author Johan Cwiklinski <johan@x-tnd.be>
51 * @copyright 2012-2014 The Galette Team
52 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
53 * @link http://galette.tuxfamily.org
54 */
55
56 class Separator extends DynamicField
57 {
58 /**
59 * Default constructor
60 *
61 * @param Db $zdb Database instance
62 * @param int $id Optionnal field id to load data
63 */
64 public function __construct(Db $zdb, $id = null)
65 {
66 parent::__construct($zdb, $id);
67 $this->has_permissions = false;
68 }
69
70 /**
71 * Get field type
72 *
73 * @return integer
74 */
75 public function getType()
76 {
77 return self::SEPARATOR;
78 }
79 }