HumHub Documentation (unofficial)

OrFilter extends AbstractLogicalFilter
in package

Laminas\Ldap\Filter\OrFilter provides an 'or' filter.

Table of Contents

Constants

TYPE_AND  = '&'
TYPE_OR  = '|'

Properties

$subfilters  : array<string|int, mixed>
All the sub-filters for this grouping filter.
$symbol  : string
The grouping symbol.

Methods

__construct()  : mixed
Creates an 'or' grouping filter.
__toString()  : string
Returns a string representation of the filter.
addAnd()  : AndFilter
Creates an 'and' filter.
addFilter()  : AbstractLogicalFilter
Adds a filter to this grouping filter.
addOr()  : OrFilter
Creates an 'or' filter.
escapeValue()  : mixed
Escapes the given VALUES according to RFC 2254 so that they can be safely used in LDAP filters.
negate()  : AbstractFilter
Negates the filter.
toString()  : string
Returns a string representation of the filter.
unescapeValue()  : mixed
Undoes the conversion done by {@link escapeValue()}.

Constants

Properties

$subfilters

All the sub-filters for this grouping filter.

private array<string|int, mixed> $subfilters

Methods

__construct()

Creates an 'or' grouping filter.

public __construct(array<string|int, mixed> $subfilters) : mixed
Parameters
$subfilters : array<string|int, mixed>

__toString()

Returns a string representation of the filter.

public __toString() : string
Tags
see
toString()
Return values
string

escapeValue()

Escapes the given VALUES according to RFC 2254 so that they can be safely used in LDAP filters.

public static escapeValue([TInput $values = [] ]) : mixed

Any control characters with an ACII code < 32 as well as the characters with special meaning in LDAP filters "*", "(", ")", and "" (the backslash) are converted into the representation of a backslash followed by two hex digits representing the hexadecimal value of the character.

Parameters
$values : TInput = []

Array of DN Values

Tags
link
http://pear.php.net/package/Net_LDAP2
see
Net_LDAP2_Util::escape_filter_value()

from Benedikt Hallinger beni@php.net

template

TInput of string|array

toString()

Returns a string representation of the filter.

public toString() : string
Return values
string

unescapeValue()

Undoes the conversion done by {@link escapeValue()}.

public static unescapeValue([TInput $values = [] ]) : mixed

Converts any sequences of a backslash followed by two hex digits into the corresponding character.

Parameters
$values : TInput = []

Array of DN Values

Tags
link
http://pear.php.net/package/Net_LDAP2
see
Net_LDAP2_Util::escape_filter_value()

from Benedikt Hallinger beni@php.net

template

TInput of string|array


        
On this page

Search results