PHP 클래스 LdapTools\Object\LdapObjectCollection

저자: Chad Sikorra ([email protected])
상속: implements IteratorAggregate, implements Countable
파일 보기 프로젝트 열기: ldaptools/ldaptools 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

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[]