gunnar: server/kolab-webadmin/kolab-webadmin/lib/KolabAdmin Sieve.php, NONE, 1.1
cvs at kolab.org
cvs at kolab.org
Thu Apr 1 00:32:24 CEST 2010
Author: gunnar
Update of /kolabrepository/server/kolab-webadmin/kolab-webadmin/lib/KolabAdmin
In directory doto:/tmp/cvs-serv19607/kolab-webadmin/lib/KolabAdmin
Added Files:
Sieve.php
Log Message:
Add the first bit of the class hierarchy that will handle the different script segments.
--- NEW FILE: Sieve.php ---
<?php
/**
* Manages Kolab user sieve scripts.
*
* PHP version 5
*
* @category Kolab
* @package KolabAdmin
* @author Gunnar Wrobel <wrobel at 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 at 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'];
}
}
More information about the commits
mailing list