summaryrefslogtreecommitdiff
path: root/lib/KolabAdmin
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@pardus.de>2010-03-31 22:32:22 (GMT)
committerGunnar Wrobel <wrobel@pardus.de>2010-03-31 22:32:22 (GMT)
commit6363eb1921c8da939723d2f01c1177f91d35cedc (patch)
tree8f21512e5323001c651b92c2324fc16b486ffb61 /lib/KolabAdmin
parent9835db6ac69e334c3e0dafab1cf4885f233370ac (diff)
downloadkolab-webadmin-6363eb1921c8da939723d2f01c1177f91d35cedc.tar.gz
Add the first bit of the class hierarchy that will handle the different script segments.
Diffstat (limited to 'lib/KolabAdmin')
-rw-r--r--lib/KolabAdmin/Sieve.php62
-rw-r--r--lib/KolabAdmin/Sieve/Segment/Delivery.php37
2 files changed, 99 insertions, 0 deletions
diff --git a/lib/KolabAdmin/Sieve.php b/lib/KolabAdmin/Sieve.php
new file mode 100644
index 0000000..c500dd6
--- /dev/null
+++ b/lib/KolabAdmin/Sieve.php
@@ -0,0 +1,62 @@
+<?php
+/**
+ * Manages Kolab user sieve scripts.
+ *
+ * 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
+ */
+
+/**
+ * Manages Kolab user sieve scripts.
+ *
+ * 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
+{
+
+ /**
+ * The sieve connection.
+ */
+ private $_sieve;
+
+ /**
+ * The sieve script segments.
+ */
+ private $_segments;
+
+ /**
+ * Constructor.
+ */
+ public function __construct(Net_Sieve $sieve)
+ {
+ $this->_sieve = $sieve;
+ }
+
+ private function _init()
+ {
+ if ($this->_segments === null) {
+ $this->_segments['delivery'] = new KolabAdmin_Sieve_Segment_Delivery();
+ }
+ }
+
+ public function fetchDeliverySegment()
+ {
+ $this->_init();
+ return $this->_segments['delivery'];
+ }
+} \ No newline at end of file
diff --git a/lib/KolabAdmin/Sieve/Segment/Delivery.php b/lib/KolabAdmin/Sieve/Segment/Delivery.php
new file mode 100644
index 0000000..ba07410
--- /dev/null
+++ b/lib/KolabAdmin/Sieve/Segment/Delivery.php
@@ -0,0 +1,37 @@
+<?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_Delivery
+{
+ /**
+ * Constructor.
+ */
+ public function __construct()
+ {
+ }
+} \ No newline at end of file