Ldap/Collection.php

Show: PublicProtectedPrivateinherited
Table of Contents
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

Package: Zend_Ldap
Zend_Ldap_Collection wraps a list of LDAP entries.
Implements
Children
\Zend_Ldap_Node_Collection
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedarray $_cache = array()
Container for item caching to speed up multiple iterations
Default valuearray()Details
Type
array
>VPropertyprotectedinteger $_current = -1
Current item number
Default value-1Details
Type
integer
>VPropertyprotected\Zend_Ldap_Collection_Iterator_Default $_iterator = null
Iterator
Default valuenullDetails
Type
\Zend_Ldap_Collection_Iterator_Default

Methods

methodpublic__construct(\Zend_Ldap_Collection_Iterator_Default $iterator) : void

Constructor.

Parameters
NameTypeDescription
$iterator\Zend_Ldap_Collection_Iterator_Default
methodpublic__destruct() : void

methodprotected_createEntry(array $data) : array

Creates the data structure for the given entry data

Parameters
NameTypeDescription
$dataarray
Returns
TypeDescription
array
methodpublicclose() : boolean

Closes the current result set

Returns
TypeDescription
boolean
methodpubliccount() : int

Returns the number of items in current result Implements Countable

Returns
TypeDescription
int
methodpubliccurrent() : array | null

Return the current result item Implements Iterator

Returns
TypeDescription
array | null
Throws
ExceptionDescription
\Zend_Ldap_Exception
methodpublicdn() : string | null

Return the current result item DN

Returns
TypeDescription
string | null
methodpublicgetFirst() : array

Get first entry

Returns
TypeDescription
array
methodpublicgetInnerIterator() : \Zend_Ldap_Collection_Iterator_Default

Returns the underlying iterator

methodpublickey() : int | null

Return the current result item key Implements Iterator

Returns
TypeDescription
int | null
methodpublicnext() : void

Move forward to next result item Implements Iterator

Throws
ExceptionDescription
\Zend_Ldap_Exception
methodpublicrewind() : void

Rewind the Iterator to the first result item Implements Iterator

Throws
ExceptionDescription
\Zend_Ldap_Exception
methodpublictoArray() : array

Get all entries as an array

Returns
TypeDescription
array
methodpublicvalid() : boolean

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

Returns
TypeDescription
boolean
Documentation was generated by phpDocumentor 2.2.0 .