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

 Methods

Creates an 'or' grouping filter.

__construct(array $subfilters) 

Parameters

$subfilters

array

Exceptions

\Zend\Ldap\Filter\Exception\FilterException

Returns a string representation of the filter.

__toString() : string
Inherited

see \Zend\Ldap\Filter\toString()
inherited_from \Zend\Ldap\Filter\AbstractFilter::__toString()
inherited_from \Zend\Ldap\Filter\AbstractLogicalFilter::__toString()

Returns

string

Creates an 'and' filter.

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

inherited_from \Zend\Ldap\Filter\AbstractFilter::addAnd()
inherited_from \Zend\Ldap\Filter\AbstractLogicalFilter::addAnd()

Parameters

$filter

Returns

Adds a filter to this grouping filter.

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

inherited_from \Zend\Ldap\Filter\AbstractLogicalFilter::addFilter()

Parameters

Returns

Creates an 'or' filter.

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

inherited_from \Zend\Ldap\Filter\AbstractFilter::addOr()
inherited_from \Zend\Ldap\Filter\AbstractLogicalFilter::addOr()

Parameters

$filter

Returns

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

escapeValue(string | array $values) : array
Inherited

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 \Zend\Ldap\Filter\Net_LDAP2_Util::escape_filter_value()
link http://pear.php.net/package/Net_LDAP2
author Benedikt Hallinger
inherited_from \Zend\Ldap\Filter\AbstractFilter::escapeValue()
inherited_from \Zend\Ldap\Filter\AbstractLogicalFilter::escapeValue()

Parameters

$values

stringarray

Array of values to escape

Returns

arrayArray $values, but escaped

Negates the filter.

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

inherited_from \Zend\Ldap\Filter\AbstractFilter::negate()
inherited_from \Zend\Ldap\Filter\AbstractLogicalFilter::negate()

Returns

Returns a string representation of the filter.

toString() : string
Inherited

inherited_from \Zend\Ldap\Filter\AbstractLogicalFilter::toString()

Returns

string

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

unescapeValue(string | array $values) : array
Inherited

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

see \Zend\Ldap\Filter\Net_LDAP2_Util::escape_filter_value()
link http://pear.php.net/package/Net_LDAP2
author Benedikt Hallinger
inherited_from \Zend\Ldap\Filter\AbstractFilter::unescapeValue()
inherited_from \Zend\Ldap\Filter\AbstractLogicalFilter::unescapeValue()

Parameters

$values

stringarray

Array of values to escape

Returns

arrayArray $values, but unescaped

 Properties

 

All the sub-filters for this grouping filter.

$subfilters : array
Inherited

inherited_from \Zend\Ldap\Filter\AbstractLogicalFilter::$$subfilters
 

The grouping symbol.

$symbol : string
Inherited

inherited_from \Zend\Ldap\Filter\AbstractLogicalFilter::$$symbol

 Constants

 

TYPE_AND

TYPE_AND 
Inherited

inherited_from \Zend\Ldap\Filter\AbstractLogicalFilter::TYPE_AND
 

TYPE_OR

TYPE_OR 
Inherited

inherited_from \Zend\Ldap\Filter\AbstractLogicalFilter::TYPE_OR