Zend\Ldap\Collection
Zend\Ldap\Collection wraps a list of LDAP entries.
Synopsis
class Collection
implements
Iterator,Countable
{
- // methods
- public void __construct()
- public void __destruct()
- public bool close()
- public array toArray()
- public array getFirst()
- public DefaultIterator getInnerIterator()
- public int count()
- public array|null current()
- protected array createEntry()
- public string|null dn()
- public int|null key()
- public void next()
- public void rewind()
- public bool valid()
Hierarchy
Members
protected
- $cache
—
array
Container for item caching to speed up multiple iterations - $current
—
int
Current item number - $iterator
—
Zend\Ldap\Collection\DefaultIterator
Iterator
Methods
protected
- createEntry() — Creates the data structure for the given entry data
public
- __construct() — Constructor.
- __destruct()
- close() — Closes the current result set
- count() — Returns the number of items in current result Implements Countable
- current() — Return the current result item Implements Iterator
- dn() — Return the current result item DN
- getFirst() — Get first entry
- getInnerIterator() — Returns the underlying iterator
- key() — Return the current 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
- toArray() — Get all entries as an array
- valid() — Check if there is a current result item after calls to rewind() or next() Implements Iterator