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
$filter
The underlying filter.
private
AbstractFilter
$filter
Methods
__construct()
Creates a Laminas\Ldap\Filter\NotFilter.
public
__construct(AbstractFilter $filter) : mixed
Parameters
- $filter : AbstractFilter
__toString()
Returns a string representation of the filter.
public
__toString() : string
Tags
Return values
stringaddAnd()
Creates an 'and' filter.
public
addAnd(AbstractFilter $filter) : AndFilter
Parameters
- $filter : AbstractFilter
-
,...
Return values
AndFilteraddOr()
Creates an 'or' filter.
public
addOr(AbstractFilter $filter) : OrFilter
Parameters
- $filter : AbstractFilter
-
,...
Return values
OrFilterescapeValue()
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
negate()
Negates the filter.
public
negate() : AbstractFilter
Return values
AbstractFiltertoString()
Returns a string representation of the filter.
public
toString() : string
Return values
stringunescapeValue()
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