HumHub Documentation (unofficial)

NotFilter extends AbstractFilter
in package

Laminas\Ldap\Filter\NotFilter provides a negation filter.

Table of Contents

Properties

$filter  : AbstractFilter
The underlying filter.

Methods

__construct()  : mixed
Creates a Laminas\Ldap\Filter\NotFilter.
__toString()  : string
Returns a string representation of the filter.
addAnd()  : AndFilter
Creates an 'and' 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()}.

Properties

Methods

__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