Ldap/Filter/Abstract.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Ldap
- Subpackage
- Filter
- Version
- $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Ldap_Filter_Abstract
Zend_Ldap_Filter_Abstract provides a base implementation for filters.
- Children
- \Zend_Ldap_Filter_String
- \Zend_Ldap_Filter_Logical
- \Zend_Ldap_Filter_Not
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Methods

__toString() : stringReturns a string representation of the filter.
| Type | Description |
|---|---|
| string |
- See
- \global\toString()

addAnd( $filter) : \Zend_Ldap_Filter_AndCreates an 'and' filter.
| Name | Type | Description |
|---|---|---|
| $filter |
| Type | Description |
|---|---|
| \Zend_Ldap_Filter_And |

addOr( $filter) : \Zend_Ldap_Filter_OrCreates an 'or' filter.
| Name | Type | Description |
|---|---|---|
| $filter |
| Type | Description |
|---|---|
| \Zend_Ldap_Filter_Or |

escapeValue(string | array $values = array()) : arrayEscapes 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.
| Name | Type | Description |
|---|---|---|
| $values | string | array | Array of values to escape |
| Type | Description |
|---|---|
| array | Array $values, but escaped |
- Author
- Benedikt Hallinger
- Link
- http://pear.php.net/package/Net_LDAP2
- See
- \global\Net_LDAP2_Util::escape_filter_value()

negate() : \Zend_Ldap_Filter_AbstractNegates the filter.
| Type | Description |
|---|---|
| \Zend_Ldap_Filter_Abstract |

toString() : stringReturns a string representation of the filter.
| Type | Description |
|---|---|
| string |

unescapeValue(string | array $values = array()) : arrayUndoes the conversion done by {@link escapeValue()}.
Converts any sequences of a backslash followed by two hex digits into the corresponding character.
| Name | Type | Description |
|---|---|---|
| $values | string | array | Array of values to escape |
| Type | Description |
|---|---|
| array | Array $values, but unescaped |
- Author
- Benedikt Hallinger
- Link
- http://pear.php.net/package/Net_LDAP2
- See
- \global\Net_LDAP2_Util::escape_filter_value()