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.
Zend_Ldap_Collection_Iterator_Default is the default collection iterator implementation using ext/ldap
ATTRIBUTE_TO_LOWER = '1'
ATTRIBUTE_TO_UPPER = '2'
ATTRIBUTE_NATIVE = '3'
integer|callback $_attributeNameTreatment = 'self'
The method that will be applied to the attribute's names.
resource $_current = 'null'
Current result entry identifier
integer $_itemCount = '1'
Number of items in query result
Zend_Ldap $_ldap = 'null'
LDAP Connection
resource $_resultId = 'null'
Result identifier resource
__construct(
Zend_Ldap $ldap, resource $resultId
)
:
void
Constructor.
__destruct(
)
:
close(
)
:
bool
Closes the current result set
count(
)
:
int
Returns the number of items in current result Implements Countable
current(
)
:
array|null
Return the current result item Implements Iterator
getAttributeNameTreatment(
)
:
integer|callback
Returns the currently set attribute name treatment
getLdap(
)
:
Zend_Ldap
Gets the current LDAP connection.
key(
)
:
string|null
Return the result item key Implements Iterator
next(
)
:
Move forward to next result item Implements Iterator
rewind(
)
:
Rewind the Iterator to the first result item Implements Iterator
setAttributeNameTreatment(
integer|callback $attributeNameTreatment
)
:
Zend_Ldap_Collection_Iterator_Default
Sets 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.
valid(
)
:
boolean
Check if there is a current result item after calls to rewind() or next() Implements Iterator