\Horde_Kolab_Server_Query_Ldap

Handler for LDAP server queries.

Copyright 2008-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Summary

Methods
Properties
Constants
__construct()
__toString()
convertEquals()
convertBegins()
convertEnds()
convertContains()
convertLess()
convertGreater()
convertApprox()
convertNot()
convertAnd()
convertOr()
_convertGroup()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_convertSingle()
$_criteria
$_structure
N/A

Properties

$_criteria

$_criteria : \Horde_Kolab_Server_Query_Element

The query criteria.

Type

\Horde_Kolab_Server_Query_Element

$_structure

$_structure : \Horde_Kolab_Server_Structure

The db structure.

Type

\Horde_Kolab_Server_Structure

Methods

__construct()

__construct(array  $criteria, \Horde_Kolab_Server_Structure_Interface  $structure) 

Constructor.

Parameters

array $criteria

The query criteria.

\Horde_Kolab_Server_Structure_Interface $structure

__toString()

__toString() : string

Return the query as a string.

Throws

\Horde_Kolab_Server_Exception

If the query is malformed.

Returns

string —

The query in string format.

convertEquals()

convertEquals(\Horde_Kolab_Server_Query_Element_Equals  $equals) : mixed

Convert the equals element to query format.

Parameters

\Horde_Kolab_Server_Query_Element_Equals $equals

The element to convert.

Throws

\Horde_Kolab_Server_Exception

If the query is malformed.

Returns

mixed —

The query element in query format.

convertBegins()

convertBegins(\Horde_Kolab_Server_Query_Element_Begins  $begins) : mixed

Convert the begins element to query format.

Parameters

\Horde_Kolab_Server_Query_Element_Begins $begins

The element to convert.

Throws

\Horde_Kolab_Server_Exception

If the query is malformed.

Returns

mixed —

The query element in query format.

convertEnds()

convertEnds(\Horde_Kolab_Server_Query_Element_Ends  $ends) : mixed

Convert the ends element to query format.

Parameters

\Horde_Kolab_Server_Query_Element_Ends $ends

The element to convert.

Throws

\Horde_Kolab_Server_Exception

If the query is malformed.

Returns

mixed —

The query element in query format.

convertContains()

convertContains(\Horde_Kolab_Server_Query_Element_Contains  $contains) : mixed

Convert the contains element to query format.

Parameters

\Horde_Kolab_Server_Query_Element_Contains $contains

The element to convert.

Throws

\Horde_Kolab_Server_Exception

If the query is malformed.

Returns

mixed —

The query element in query format.

convertLess()

convertLess(\Horde_Kolab_Server_Query_Element_Less  $less) : mixed

Convert the less element to query format.

Parameters

\Horde_Kolab_Server_Query_Element_Less $less

The element to convert.

Throws

\Horde_Kolab_Server_Exception

If the query is malformed.

Returns

mixed —

The query element in query format.

convertGreater()

convertGreater(\Horde_Kolab_Server_Query_Element_Greater  $greater) : mixed

Convert the greater element to query format.

Parameters

\Horde_Kolab_Server_Query_Element_Greater $greater

Throws

\Horde_Kolab_Server_Exception

If the query is malformed.

Returns

mixed —

The query element in query format.

convertApprox()

convertApprox(\Horde_Kolab_Server_Query_Element_Approx  $approx) : mixed

Convert the approx element to query format.

Parameters

\Horde_Kolab_Server_Query_Element_Approx $approx

The element to convert.

Throws

\Horde_Kolab_Server_Exception

If the query is malformed.

Returns

mixed —

The query element in query format.

convertNot()

convertNot(\Horde_Kolab_Server_Query_Element_Not  $not) : mixed

Convert the not element to query format.

Parameters

\Horde_Kolab_Server_Query_Element_Not $not

Throws

\Horde_Kolab_Server_Exception

If the query is malformed.

Returns

mixed —

The query element in query format.

convertAnd()

convertAnd(\Horde_Kolab_Server_Query_Element_And  $and) : mixed

Convert the and element to query format.

Parameters

\Horde_Kolab_Server_Query_Element_And $and

Throws

\Horde_Kolab_Server_Exception

If the query is malformed.

Returns

mixed —

The query element in query format.

convertOr()

convertOr(\Horde_Kolab_Server_Query_Element_Group  $or) : mixed

Convert the or element to query format.

Parameters

\Horde_Kolab_Server_Query_Element_Group $or

Throws

\Horde_Kolab_Server_Exception

If the query is malformed.

Returns

mixed —

The query element in query format.

_convertGroup()

_convertGroup(\Horde_Kolab_Server_Query_Element_Group  $group, string  $operator) : mixed

Convert the group element to query format.

Parameters

\Horde_Kolab_Server_Query_Element_Group $group

The element to convert.

string $operator

The element operation.

Throws

\Horde_Kolab_Server_Exception

If the query is malformed.

Returns

mixed —

The query element in query format.

_convertSingle()

_convertSingle(\Horde_Kolab_Server_Query_Element_Single  $single, string  $operator) : mixed

Convert the single element to query format.

Parameters

\Horde_Kolab_Server_Query_Element_Single $single

The element to convert.

string $operator

The element operation.

Throws

\Horde_Kolab_Server_Exception

If the query is malformed.

Returns

mixed —

The query element in query format.