Zend\Ldap\Filter\AndFilter provides an 'and' filter.

package Default
inherited_from \Zend\Ldap\Filter\AbstractLogicalFilter

 Methods

Creates an 'and' grouping filter.

__construct(array $subfilters) 
inherited_from \Zend\Ldap\Filter\AbstractLogicalFilter::__construct()

Parameters

$subfilters

array

Returns a string representation of the filter.

__toString() : string
Inherited
see

Returns

string

Creates an 'and' filter.

addAnd($filter) : \Zend\Ldap\Filter\AndFilter
Inherited

Parameters

$filter

Returns

\Zend\Ldap\Filter\AndFilter

Adds a filter to this grouping filter.

addFilter(\Zend\Ldap\Filter\AbstractFilter $filter) : \Zend\Ldap\Filter\AbstractLogicalFilter
Inherited

Parameters

$filter

\Zend\Ldap\Filter\AbstractFilter

Returns

\Zend\Ldap\Filter\AbstractLogicalFilter

Creates an 'or' filter.

addOr($filter) : \Zend\Ldap\Filter\OrFilter
Inherited

Parameters

$filter

Returns

\Zend\Ldap\Filter\OrFilter

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

escapeValue(string|array $values = array()) : array
InheritedStatic

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.

see from Benedikt Hallinger
link http://pear.php.net/package/Net_LDAP2
author Benedikt Hallinger

Parameters

$values

stringarray

Array of values to escape

Returns

arrayArray $values, but escaped

Negates the filter.

negate() : \Zend\Ldap\Filter\AbstractFilter
Inherited

Returns

\Zend\Ldap\Filter\AbstractFilter

Returns a string representation of the filter.

toString() : string
Inherited

Returns

string

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

unescapeValue(string|array $values = array()) : array
InheritedStatic

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

see from Benedikt Hallinger
link http://pear.php.net/package/Net_LDAP2
author Benedikt Hallinger

Parameters

$values

stringarray

Array of values to escape

Returns

arrayArray $values, but unescaped

Creates a new grouping filter.

__construct(array $subfilters, string $symbol) 
Inherited

Parameters

$subfilters

array

$symbol

string

Exceptions

\Zend\Ldap\Filter\Exception\FilterException

 Properties

 

All the sub-filters for this grouping filter.

$subfilters : array

Default

 

The grouping symbol.

$symbol : string

Default

 Constants

 

TYPE_AND

TYPE_AND = '&' 
 

TYPE_OR

TYPE_OR = '|'