1: <?php
2: /**
3: * Representation of a Kolab distribution list.
4: *
5: * PHP version 5
6: *
7: * @category Kolab
8: * @package Kolab_Server
9: * @author Gunnar Wrobel <wrobel@pardus.de>
10: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
11: * @link http://pear.horde.org/index.php?package=Kolab_Server
12: */
13:
14: /**
15: * This class provides methods to deal with distribution lists for Kolab.
16: *
17: * Copyright 2008-2012 Horde LLC (http://www.horde.org/)
18: *
19: * See the enclosed file COPYING for license information (LGPL). If you
20: * did not receive this file, see http://www.horde.org/licenses/lgpl21.
21: *
22: * @category Kolab
23: * @package Kolab_Server
24: * @author Gunnar Wrobel <wrobel@pardus.de>
25: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
26: * @link http://pear.horde.org/index.php?package=Kolab_Server
27: */
28: class Horde_Kolab_Server_Object_Kolab_Distlist extends Horde_Kolab_Server_Object_Kolabgroupofnames
29: {
30: /**
31: * Return the filter string to retrieve this object type.
32: *
33: * @return string The filter to retrieve this object type from the server
34: * database.
35: */
36: public static function getFilter()
37: {
38: $criteria = array('AND' => array(
39: array('field' => self::ATTRIBUTE_MAIL,
40: 'op' => 'any'),
41: array('field' => self::ATTRIBUTE_OC,
42: 'op' => '=',
43: 'test' => self::OBJECTCLASS_KOLABGROUPOFNAMES),
44: ),
45: );
46: return $criteria;
47: }
48: };
49: