HumHub Documentation (unofficial)

Collection
in package
implements Iterator, Countable

Laminas\Ldap\Collection wraps a list of LDAP entries.

Tags
template

TItem

template-implements

Iterator<int, TItem>

Table of Contents

Interfaces

Iterator
Countable

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()  : mixed
next()  : mixed
rewind()  : mixed
toArray()  : array<int, TItem>
Get all entries as an array
valid()  : mixed
createEntry()  : TItem
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

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) : TItem
Parameters
$data : array<string|int, mixed>
Tags
psalm-param

array{dn: string, ...} $data

Return values
TItem

        
On this page

Search results