summaryrefslogtreecommitdiff
path: root/lib/KolabAdmin/Sieve/Segment.php
blob: 7ecc6d24b17fc8c5c01160c113c0fc52b9f24e6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
/**
 * A sieve script that handles mail delivery to a specific folder.
 *
 * PHP version 5
 *
 * @category Kolab
 * @package  KolabAdmin
 * @author   Gunnar Wrobel <wrobel@pardus.de>
 * @license  http://www.fsf.org/copyleft/lgpl.html LGPL
 * @link     http://www.kolab.org
 */

/**
 * A sieve script that handles mail delivery to a specific folder.
 *
 * Copyright 2010 Klarälvdalens Datakonsult AB
 *
 * See the enclosed file COPYING for license information (LGPL). If you did not
 * receive this file, see
 * http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
 *
 * @category Kolab
 * @package  KolabAdmin
 * @author   Gunnar Wrobel <wrobel@pardus.de>
 * @license  http://www.fsf.org/copyleft/lgpl.html LGPL
 * @link     http://www.kolab.org
 */
class KolabAdmin_Sieve_Segment
{
    /**
     * Is this particular segment active?
     *
     * @var bool
     */
    private $_active = false;

    /**
     * Constructor.
     */
    public function __construct()
    {
    }

    /**
     * Is this particular segment active?
     *
     * @return bool True if the segment is active.
     */
    public function isActive()
    {
        return $this->_active;
    }

    /**
     * Set the segment active.
     *
     * @return NULL
     */
    public function setActive()
    {
        $this->_active = true;
    }

    /**
     * Set the segment inactive.
     *
     * @return NULL
     */
    public function setInactive()
    {
        $this->_active = false;
    }

    public function generate()
    {
        return '';
    }
}