Ldap/Filter/Abstract.php

Show: PublicProtectedPrivateinherited
Table of Contents
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 license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Ldap  
Subpackage
Filter  
Version
$Id$  

\Zend_Ldap_Filter_Abstract

Package: Zend_Ldap\Filter
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-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Methods

methodpublic__toString() : string

Returns a string representation of the filter.

Returns
TypeDescription
string
Details
See
 
methodpublicaddAnd( $filter) : \Zend_Ldap_Filter_And

Creates an 'and' filter.

Parameters
NameTypeDescription
$filter
Returns
TypeDescription
\Zend_Ldap_Filter_And
methodpublicaddOr( $filter) : \Zend_Ldap_Filter_Or

Creates an 'or' filter.

Parameters
NameTypeDescription
$filter
Returns
TypeDescription
\Zend_Ldap_Filter_Or
methodpublicescapeValue(string | array $values = array()) : array
static

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
NameTypeDescription
$valuesstring | array

Array of values to escape

Returns
TypeDescription
arrayArray $values, but escaped
Details
Author
Benedikt Hallinger  
Link
http://pear.php.net/package/Net_LDAP2  
See
from Benedikt Hallinger  
methodpublicnegate() : \Zend_Ldap_Filter_Abstract

Negates the filter.

Returns
TypeDescription
\Zend_Ldap_Filter_Abstract
methodpublictoString() : string
abstract

Returns a string representation of the filter.

Returns
TypeDescription
string
methodpublicunescapeValue(string | array $values = array()) : array
static

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

Converts any sequences of a backslash followed by two hex digits into the corresponding character.
Parameters
NameTypeDescription
$valuesstring | array

Array of values to escape

Returns
TypeDescription
arrayArray $values, but unescaped
Details
Author
Benedikt Hallinger  
Link
http://pear.php.net/package/Net_LDAP2  
See
from Benedikt Hallinger  
Documentation was generated by phpDocumentor 2.2.0 .