676. Class

676.1. Zend\Ldap\Filter\AbstractFilter

ZendLdapFilterAbstractFilter provides a base implementation for filters.

676.1.1. Methods

676.1.1.1. toString

toString()

Returns a string representation of the filter.

Return type:string

676.1.1.2. __toString

__toString()

Returns a string representation of the filter.

Return type:string

676.1.1.3. negate

negate()

Negates the filter.

Return type:AbstractFilter

676.1.1.4. addAnd

addAnd()

Creates an ‘and’ filter.

Parameters:AbstractFilter
Return type:AndFilter

676.1.1.5. addOr

addOr()

Creates an ‘or’ filter.

Parameters:AbstractFilter
Return type:OrFilter

676.1.1.6. escapeValue

escapeValue()

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

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:string|array – Array of values to escape
Return type:array Array $values, but escaped

676.1.1.7. unescapeValue

unescapeValue()

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

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

Parameters:string|array – Array of values to escape
Return type:array Array $values, but unescaped

Project Versions

Table Of Contents

Previous topic

675. Class

Next topic

677. Class

This Page