summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@pardus.de>2010-03-31 22:43:34 (GMT)
committerGunnar Wrobel <wrobel@pardus.de>2010-03-31 22:43:34 (GMT)
commit42317c2752572f3a7d45ba07b003981d3ea76e76 (patch)
tree1660918e78555668825afdc43b163401c77b7cb4 /lib
parent6363eb1921c8da939723d2f01c1177f91d35cedc (diff)
downloadkolab-webadmin-42317c2752572f3a7d45ba07b003981d3ea76e76.tar.gz
More stubs.
Diffstat (limited to 'lib')
-rw-r--r--lib/KolabAdmin/Sieve/Segment.php79
-rw-r--r--lib/KolabAdmin/Sieve/Segment/Delivery.php30
2 files changed, 109 insertions, 0 deletions
diff --git a/lib/KolabAdmin/Sieve/Segment.php b/lib/KolabAdmin/Sieve/Segment.php
new file mode 100644
index 0000000..7ecc6d2
--- /dev/null
+++ b/lib/KolabAdmin/Sieve/Segment.php
@@ -0,0 +1,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 '';
+ }
+} \ No newline at end of file
diff --git a/lib/KolabAdmin/Sieve/Segment/Delivery.php b/lib/KolabAdmin/Sieve/Segment/Delivery.php
index ba07410..8164b30 100644
--- a/lib/KolabAdmin/Sieve/Segment/Delivery.php
+++ b/lib/KolabAdmin/Sieve/Segment/Delivery.php
@@ -27,11 +27,41 @@
* @link http://www.kolab.org
*/
class KolabAdmin_Sieve_Segment_Delivery
+extends KolabAdmin_Sieve_Segment
{
/**
+ * The folder to deliver mails to.
+ *
+ * @var string
+ */
+ private $_delivery_folder;
+
+ /**
* Constructor.
*/
public function __construct()
{
}
+
+ /**
+ * Retrieve the delivery folder this script will deliver to.
+ *
+ * @return string The delivery folder.
+ */
+ public function getDeliveryFolder()
+ {
+ return $this->_delivery_folder;
+ }
+
+ /**
+ * Set the delivery folder this script will deliver to.
+ *
+ * @param string $folder The delivery folder.
+ *
+ * @return NULL
+ */
+ public function setDeliveryFolder($folder)
+ {
+ $this->_delivery_folder = $folder;
+ }
} \ No newline at end of file