Zend_Ldap_Filter_Abstract provides a base implementation for filters.

category Zend
package Zend_Ldap
subpackage Filter
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Returns a string representation of the filter.

__toString() : string
see

Returns

string

Creates an 'and' filter.

addAnd($filter) : \Zend_Ldap_Filter_And

Parameters

$filter

Returns

\Zend_Ldap_Filter_And

Creates an 'or' filter.

addOr($filter) : \Zend_Ldap_Filter_Or

Parameters

$filter

Returns

\Zend_Ldap_Filter_Or

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

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

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_Abstract

Returns

\Zend_Ldap_Filter_Abstract

Returns a string representation of the filter.

toString() : string

Returns

string

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

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

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