PHP Класс LdapTools\Object\LdapObjectCollection

Автор: Chad Sikorra ([email protected])
Наследование: implements IteratorAggregate, implements Countable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$objects LdapObject[]

Открытые методы

Метод Описание
__construct ( variadic $ldapObjects )
add ( variadic $ldapObjects ) Add LdapObjects to the collection.
count ( ) : integer The number of LdapObjects in the collection.
current ( ) : LdapObject | false Gets the current element in the collection array.
first ( ) : LdapObject | boolean Sets the collection array pointer to the first element and returns it.
getIterator ( ) : ArrayIterator Allows this object to be iterated over.
key ( ) : integer Gets the index of the current position in the collection.
last ( ) : LdapObject | boolean Sets the collection array pointer to the last element and returns it.
next ( ) : LdapObject | boolean Sets the collection array pointer to the next element and returns it.
previous ( ) : LdapObject | boolean Sets the collection array pointer to the previous element and returns it.
toArray ( ) : LdapObject[] Returns an array of LdapObjects. To get the results in a simple array for you should change the hydration when executing the query.

Описание методов

__construct() публичный метод

public __construct ( variadic $ldapObjects )
$ldapObjects variadic

add() публичный метод

Add LdapObjects to the collection.
public add ( variadic $ldapObjects )
$ldapObjects variadic

count() публичный метод

The number of LdapObjects in the collection.
public count ( ) : integer
Результат integer

current() публичный метод

Gets the current element in the collection array.
public current ( ) : LdapObject | false
Результат LdapObject | false

first() публичный метод

Sets the collection array pointer to the first element and returns it.
public first ( ) : LdapObject | boolean
Результат LdapObject | boolean

getIterator() публичный метод

Allows this object to be iterated over.
public getIterator ( ) : ArrayIterator
Результат ArrayIterator

key() публичный метод

Gets the index of the current position in the collection.
public key ( ) : integer
Результат integer

last() публичный метод

Sets the collection array pointer to the last element and returns it.
public last ( ) : LdapObject | boolean
Результат LdapObject | boolean

next() публичный метод

Sets the collection array pointer to the next element and returns it.
public next ( ) : LdapObject | boolean
Результат LdapObject | boolean

previous() публичный метод

Sets the collection array pointer to the previous element and returns it.
public previous ( ) : LdapObject | boolean
Результат LdapObject | boolean

toArray() публичный метод

Returns an array of LdapObjects. To get the results in a simple array for you should change the hydration when executing the query.
public toArray ( ) : LdapObject[]
Результат LdapObject[]

Описание свойств

$objects защищенное свойство

protected LdapObject[],LdapTools\Object $objects
Результат LdapObject[]