Copyright 2008-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Gunnar Wrobel (wrobel@pardus.de)
Inheritance: implements Horde_Kolab_Server_Query_Element_Interface
示例#1
0
文件: Not.php 项目: raz0rsdge/horde
 /**
  * Constructor.
  *
  * @param array  $elements The group elements.
  */
 public function __construct(Horde_Kolab_Server_Query_Element_Interface $element)
 {
     parent::__construct(array($element));
 }
示例#2
0
文件: Ldap.php 项目: jubinpatel/horde
 /**
  * Convert the group element to query format.
  *
  * @param Horde_Kolab_Server_Query_Element_Group $group    The element to convert.
  * @param string                                 $operator The element operation.
  *
  * @return mixed The query element in query format.
  *
  * @throws Horde_Kolab_Server_Exception If the query is malformed.
  */
 public function _convertGroup(Horde_Kolab_Server_Query_Element_Group $group, $operator)
 {
     $filters = array();
     foreach ($group->getElements() as $element) {
         $filters[] = $element->convert($this);
     }
     try {
         return Horde_Ldap_Filter::combine($operator, $filters);
     } catch (Horde_Ldap_Exception $e) {
         throw new Horde_Kolab_Server_Exception($e->getMessage(), Horde_Kolab_Server_Exception::INVALID_QUERY, $e);
     }
 }