Ldap/Filter/And.php

Show: inherited
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 [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: And.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Ldap_Filter_And

Package: Zend\Ldap\Filter

Zend_Ldap_Filter_And provides an 'and' filter.

Parent(s)
\Zend_Ldap_Filter_Logical < \Zend_Ldap_Filter_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

Constant  TYPE_AND = '&'
inheritedInherited from: \Zend_Ldap_Filter_Logical::TYPE_AND
Constant  TYPE_OR = '|'
inheritedInherited from: \Zend_Ldap_Filter_Logical::TYPE_OR

Properties

Propertyprivatearray $_subfilters =
inherited

All the sub-filters for this grouping filter.

Inherited from: \Zend_Ldap_Filter_Logical::$$_subfilters
Details
Type
array
Inherited_from
\Zend_Ldap_Filter_Logical::$$_subfilters  
Propertyprivatestring $_symbol =
inherited

The grouping symbol.

Inherited from: \Zend_Ldap_Filter_Logical::$$_symbol
Details
Type
string
Inherited_from
\Zend_Ldap_Filter_Logical::$$_symbol  

Methods

methodpublic__construct(array $subfilters) : void

Creates an 'and' grouping filter.

Parameters
Name Type Description
$subfilters array
methodpublic__toString() : string
inherited

Returns a string representation of the filter.

Inherited from: \Zend_Ldap_Filter_Abstract::__toString()\Zend_Ldap_Filter_Logical::__toString()
Returns
Type Description
string
Details
See
\global\toString()  
methodpublicaddAnd( $filter) : \Zend_Ldap_Filter_And
inherited

Creates an 'and' filter.

Inherited from: \Zend_Ldap_Filter_Abstract::addAnd()\Zend_Ldap_Filter_Logical::addAnd()
Parameters
Name Type Description
$filter
Returns
Type Description
\Zend_Ldap_Filter_And
methodpublicaddFilter(\Zend_Ldap_Filter_Abstract $filter) : \Zend_Ldap_Filter_Logical
inherited

Adds a filter to this grouping filter.

Inherited from: \Zend_Ldap_Filter_Logical::addFilter()
Parameters
Name Type Description
$filter \Zend_Ldap_Filter_Abstract
Returns
Type Description
\Zend_Ldap_Filter_Logical
methodpublicaddOr( $filter) : \Zend_Ldap_Filter_Or
inherited

Creates an 'or' filter.

Inherited from: \Zend_Ldap_Filter_Abstract::addOr()\Zend_Ldap_Filter_Logical::addOr()
Parameters
Name Type Description
$filter
Returns
Type Description
\Zend_Ldap_Filter_Or
methodpublicescapeValue(string | array $values = array()) : array
staticinherited

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

Inherited from: \Zend_Ldap_Filter_Abstract::escapeValue()\Zend_Ldap_Filter_Logical::escapeValue()

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
Name Type Description
$values string | array

Array of values to escape

Returns
Type Description
array Array $values, but escaped
Details
Author
Benedikt Hallinger  
Link
http://pear.php.net/package/Net_LDAP2  
See
\global\Net_LDAP2_Util::escape_filter_value()  
methodpublicnegate() : \Zend_Ldap_Filter_Abstract
Returns
Type Description
\Zend_Ldap_Filter_Abstract
methodpublictoString() : string
inherited

Returns a string representation of the filter.

Inherited from: \Zend_Ldap_Filter_Logical::toString()
Returns
Type Description
string
methodpublicunescapeValue(string | array $values = array()) : array
staticinherited

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

Inherited from: \Zend_Ldap_Filter_Abstract::unescapeValue()\Zend_Ldap_Filter_Logical::unescapeValue()

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

Parameters
Name Type Description
$values string | array

Array of values to escape

Returns
Type Description
array Array $values, but unescaped
Details
Author
Benedikt Hallinger  
Link
http://pear.php.net/package/Net_LDAP2  
See
\global\Net_LDAP2_Util::escape_filter_value()  
Documentation was generated by phpDocumentor 2.0.0a8.