Ldap/Collection/Iterator/Default.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 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
- Version
- $Id$
\Zend_Ldap_Collection_Iterator_Default
Package: Zend_Ldap








Returns
Zend_Ldap_Collection_Iterator_Default is the default collection iterator implementation
using ext/ldap
- Implements
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties

integer|callback $_attributeNameTreatment = self::ATTRIBUTE_TO_LOWERThe method that will be applied to the attribute's names.
Default value
self::ATTRIBUTE_TO_LOWERDetails- Type
- integer | callback
Methods

__construct(\Zend_Ldap $ldap, resource $resultId) : voidConstructor.
Parameters
| Name | Type | Description |
|---|---|---|
| $ldap | \Zend_Ldap | |
| $resultId | resource |

count() : intReturns the number of items in current result Implements Countable
Returns
| Type | Description |
|---|---|
| int |

current() : array | nullReturn the current result item Implements Iterator
Returns
Throws
| Type | Description |
|---|---|
| array | null |
| Exception | Description |
|---|---|
| \Zend_Ldap_Exception |

getAttributeNameTreatment() : integer | callbackReturns the currently set attribute name treatment
Returns
| Type | Description |
|---|---|
| integer | callback |

key() : string | nullReturn the result item key Implements Iterator
Returns
| Type | Description |
|---|---|
| string | null |

next() : voidMove forward to next result item Implements Iterator
Throws
| Exception | Description |
|---|---|
| \Zend_Ldap_Exception |

rewind() : voidRewind the Iterator to the first result item Implements Iterator
Throws
| Exception | Description |
|---|---|
| \Zend_Ldap_Exception |

setAttributeNameTreatment(integer | callback $attributeNameTreatment) : \Zend_Ldap_Collection_Iterator_DefaultSets the attribute name treatment.
Can either be one of the following constants
- Zend_Ldap_Collection_Iterator_Default::ATTRIBUTE_TO_LOWER
- Zend_Ldap_Collection_Iterator_Default::ATTRIBUTE_TO_UPPER
- Zend_Ldap_Collection_Iterator_Default::ATTRIBUTE_NATIVE
or a valid callback accepting the attribute's name as it's only
argument and returning the new attribute's name.
Parameters| Name | Type | Description |
|---|---|---|
| $attributeNameTreatment | integer | callback |
| Type | Description |
|---|---|
| \Zend_Ldap_Collection_Iterator_Default | Provides a fluent interface |