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'
Details ATTRIBUTE_TO_UPPER = '2'
Details ATTRIBUTE_NATIVE = '3'
Detailsinteger|callback $_attributeNameTreatment = 'self'The method that will be applied to the attribute's names.
Detailsresource $_current = 'null'Current result entry identifier
Detailsinteger $_itemCount = '1'Number of items in query result
DetailsZend_Ldap $_ldap = 'null'LDAP Connection
Detailsresource $_resultId = 'null'Result identifier resource
Details__construct(
Zend_Ldap $ldap, resource $resultId
)
:
voidConstructor.
Details__destruct(
)
:
Detailsclose(
)
:
boolCloses the current result set
Detailscount(
)
:
intReturns the number of items in current result Implements Countable
Detailscurrent(
)
:
array|nullReturn the current result item Implements Iterator
DetailsgetAttributeNameTreatment(
)
:
integer|callbackReturns the currently set attribute name treatment
DetailsgetLdap(
)
:
Zend_LdapGets the current LDAP connection.
Detailskey(
)
:
string|nullReturn the result item key Implements Iterator
Detailsnext(
)
:
Move forward to next result item Implements Iterator
Detailsrewind(
)
:
Rewind the Iterator to the first result item Implements Iterator
DetailssetAttributeNameTreatment(
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.
Detailsvalid(
)
:
booleanCheck if there is a current result item after calls to rewind() or next() Implements Iterator
Details