1086. Class

1086.1. Zend\Ldap\Collection

ZendLdapCollection wraps a list of LDAP entries.

1086.1.1. Methods

1086.1.1.1. __construct

__construct()

Constructor.

Parameters:CollectionDefaultIterator

1086.1.1.2. __destruct

__destruct()

1086.1.1.3. close

close()

Closes the current result set

Return type:bool

1086.1.1.4. toArray

toArray()

Get all entries as an array

Return type:array

1086.1.1.5. getFirst

getFirst()

Get first entry

Return type:array

1086.1.1.6. getInnerIterator

getInnerIterator()

Returns the underlying iterator

Return type:CollectionDefaultIterator

1086.1.1.7. count

count()

Returns the number of items in current result Implements Countable

Return type:int

1086.1.1.8. current

current()

Return the current result item Implements Iterator

Return type:array|null
Throws :ExceptionLdapException

1086.1.1.9. createEntry

createEntry()

Creates the data structure for the given entry data

Parameters:array
Return type:array

1086.1.1.10. dn

dn()

Return the current result item DN

Return type:string|null

1086.1.1.11. key

key()

Return the current result item key Implements Iterator

Return type:int|null

1086.1.1.13. rewind

rewind()

Rewind the Iterator to the first result item Implements Iterator

1086.1.1.14. valid

valid()

Check if there is a current result item after calls to rewind() or next() Implements Iterator

Return type:bool