HumHub Documentation (unofficial)

Collection extends Collection
in package

Laminas\Ldap\Node\Collection provides a collection of nodes.

Tags
template-extends

Ldap\Collection<Node>

Table of Contents

Properties

$cache  : array<int, TItem>
Container for item caching to speed up multiple iterations
$current  : int
Current item number
$iterator  : DefaultIterator
Iterator

Methods

__construct()  : mixed
__destruct()  : mixed
close()  : bool
Closes the current result set
count()  : mixed
current()  : mixed
dn()  : string|null
Return the current result item DN
getFirst()  : TItem|null
Get first entry
getInnerIterator()  : DefaultIterator
Returns the underlying iterator
key()  : string
Return the child key (DN).
next()  : mixed
rewind()  : mixed
toArray()  : array<int, TItem>
Get all entries as an array
valid()  : mixed
createEntry()  : Node
Creates the data structure for the given entry data

Properties

$cache

Container for item caching to speed up multiple iterations

protected array<int, TItem> $cache = []

$current

Current item number

protected int $current = -1

Methods

close()

Closes the current result set

public close() : bool
Return values
bool

dn()

Return the current result item DN

public dn() : string|null
Return values
string|null

getFirst()

Get first entry

public getFirst() : TItem|null
Return values
TItem|null

key()

Return the child key (DN).

public key() : string

Implements Iterator and RecursiveIterator

Return values
string

toArray()

Get all entries as an array

public toArray() : array<int, TItem>
Return values
array<int, TItem>

createEntry()

Creates the data structure for the given entry data

protected createEntry(array<string|int, mixed> $data) : Node
Parameters
$data : array<string|int, mixed>
Return values
Node

        
On this page

Search results