PHP Class Horde_Kolab_Server_Query_Ldap, horde

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.
Inheritance: implements Horde_Kolab_Server_Query_Interface
Show file Open project: horde/horde Class Usage Examples

Public Methods

Method Description
__construct ( Horde_Kolab_Server_Query_Element_Interface $criteria, Horde_Kolab_Server_Structure_Interface $structure ) Constructor.
__toString ( ) : string Return the query as a string.
_convertGroup ( Horde_Kolab_Server_Query_Element_Group $group, string $operator ) : mixed Convert the group element to query format.
convertAnd ( Horde_Kolab_Server_Query_Element_And $and ) : mixed Convert the and element to query format.
convertApprox ( Horde_Kolab_Server_Query_Element_Approx $approx ) : mixed Convert the approx element to query format.
convertBegins ( Horde_Kolab_Server_Query_Element_Begins $begins ) : mixed Convert the begins element to query format.
convertContains ( Horde_Kolab_Server_Query_Element_Contains $contains ) : mixed Convert the contains element to query format.
convertEnds ( Horde_Kolab_Server_Query_Element_Ends $ends ) : mixed Convert the ends element to query format.
convertEquals ( Horde_Kolab_Server_Query_Element_Equals $equals ) : mixed Convert the equals element to query format.
convertGreater ( Horde_Kolab_Server_Query_Element_Greater $greater ) : mixed Convert the greater element to query format.
convertLess ( Horde_Kolab_Server_Query_Element_Less $less ) : mixed Convert the less element to query format.
convertNot ( Horde_Kolab_Server_Query_Element_Not $not ) : mixed Convert the not element to query format.
convertOr ( Horde_Kolab_Server_Query_Element_Group $or ) : mixed Convert the or element to query format.

Private Methods

Method Description
_convertSingle ( Horde_Kolab_Server_Query_Element_Single $single, string $operator ) : mixed Convert the single element to query format.

Method Details

__construct() public method

Constructor.
public __construct ( Horde_Kolab_Server_Query_Element_Interface $criteria, Horde_Kolab_Server_Structure_Interface $structure )
$criteria Horde_Kolab_Server_Query_Element_Interface The query criteria.
$structure Horde_Kolab_Server_Structure_Interface

__toString() public method

Return the query as a string.
public __toString ( ) : string
return string The query in string format.

_convertGroup() public method

Convert the group element to query format.
public _convertGroup ( Horde_Kolab_Server_Query_Element_Group $group, string $operator ) : mixed
$group Horde_Kolab_Server_Query_Element_Group The element to convert.
$operator string The element operation.
return mixed The query element in query format.

convertAnd() public method

Convert the and element to query format.
public convertAnd ( Horde_Kolab_Server_Query_Element_And $and ) : mixed
$and Horde_Kolab_Server_Query_Element_And
return mixed The query element in query format.

convertApprox() public method

Convert the approx element to query format.
public convertApprox ( Horde_Kolab_Server_Query_Element_Approx $approx ) : mixed
$approx Horde_Kolab_Server_Query_Element_Approx The element to convert.
return mixed The query element in query format.

convertBegins() public method

Convert the begins element to query format.
public convertBegins ( Horde_Kolab_Server_Query_Element_Begins $begins ) : mixed
$begins Horde_Kolab_Server_Query_Element_Begins The element to convert.
return mixed The query element in query format.

convertContains() public method

Convert the contains element to query format.
public convertContains ( Horde_Kolab_Server_Query_Element_Contains $contains ) : mixed
$contains Horde_Kolab_Server_Query_Element_Contains The element to convert.
return mixed The query element in query format.

convertEnds() public method

Convert the ends element to query format.
public convertEnds ( Horde_Kolab_Server_Query_Element_Ends $ends ) : mixed
$ends Horde_Kolab_Server_Query_Element_Ends The element to convert.
return mixed The query element in query format.

convertEquals() public method

Convert the equals element to query format.
public convertEquals ( Horde_Kolab_Server_Query_Element_Equals $equals ) : mixed
$equals Horde_Kolab_Server_Query_Element_Equals The element to convert.
return mixed The query element in query format.

convertGreater() public method

Convert the greater element to query format.
public convertGreater ( Horde_Kolab_Server_Query_Element_Greater $greater ) : mixed
$greater Horde_Kolab_Server_Query_Element_Greater
return mixed The query element in query format.

convertLess() public method

Convert the less element to query format.
public convertLess ( Horde_Kolab_Server_Query_Element_Less $less ) : mixed
$less Horde_Kolab_Server_Query_Element_Less The element to convert.
return mixed The query element in query format.

convertNot() public method

Convert the not element to query format.
public convertNot ( Horde_Kolab_Server_Query_Element_Not $not ) : mixed
$not Horde_Kolab_Server_Query_Element_Not
return mixed The query element in query format.

convertOr() public method

Convert the or element to query format.
public convertOr ( Horde_Kolab_Server_Query_Element_Group $or ) : mixed
$or Horde_Kolab_Server_Query_Element_Group
return mixed The query element in query format.