PHP Class LdapTools\Object\LdapObjectCollection

Author: Chad Sikorra ([email protected])
Inheritance: implements IteratorAggregate, implements Countable
Afficher le fichier Open project: ldaptools/ldaptools Class Usage Examples

Protected Properties

Свойство Type Description
$objects LdapObject[]

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

public __construct ( variadic $ldapObjects )
$ldapObjects variadic

add() public méthode

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

count() public méthode

The number of LdapObjects in the collection.
public count ( ) : integer
Résultat integer

current() public méthode

Gets the current element in the collection array.
public current ( ) : LdapObject | false
Résultat LdapObject | false

first() public méthode

Sets the collection array pointer to the first element and returns it.
public first ( ) : LdapObject | boolean
Résultat LdapObject | boolean

getIterator() public méthode

Allows this object to be iterated over.
public getIterator ( ) : ArrayIterator
Résultat ArrayIterator

key() public méthode

Gets the index of the current position in the collection.
public key ( ) : integer
Résultat integer

last() public méthode

Sets the collection array pointer to the last element and returns it.
public last ( ) : LdapObject | boolean
Résultat LdapObject | boolean

next() public méthode

Sets the collection array pointer to the next element and returns it.
public next ( ) : LdapObject | boolean
Résultat LdapObject | boolean

previous() public méthode

Sets the collection array pointer to the previous element and returns it.
public previous ( ) : LdapObject | boolean
Résultat LdapObject | boolean

toArray() public méthode

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[]
Résultat LdapObject[]

Property Details

$objects protected_oe property

protected LdapObject[],LdapTools\Object $objects
Résultat LdapObject[]