PHP 클래스 Scalr\Model\Collections\EntityIterator

This is the iterator of the AbstractEntity objects It is actually outer iterator for ADORecordSet_mysqli
부터: 5.4.0 (13.03.2014)
저자: Vitaliy Demidov ([email protected])
상속: extends IteratorIterator, implements Countable
파일 보기 프로젝트 열기: scalr/scalr

공개 프로퍼티들

프로퍼티 타입 설명
$totalNumber integer This property is set after use find() method

공개 메소드들

메소드 설명
__call ( string $name, array $args ) : ArrayCollection Implements some convenient magic methods
__construct ( string $entityClass, ADORecordSet_mysqli $recordSet ) Constructor
count ( )
current ( ) : AbstractEntity
getArrayCopy ( ) : array Creates a copy of the ArrayObject.
map ( callable $callback ) : array Implementation of array_map for EntityIterator Applies the callback to the elements of the Iterator

메소드 상세

__call() 공개 메소드

Implements some convenient magic methods
public __call ( string $name, array $args ) : ArrayCollection
$name string The method name
$args array The arguments
리턴 ArrayCollection

__construct() 공개 메소드

Constructor
public __construct ( string $entityClass, ADORecordSet_mysqli $recordSet )
$entityClass string The name of the class of the Entity in the collection
$recordSet ADORecordSet_mysqli Result record set

count() 공개 메소드

또한 보기: Countable::count()
public count ( )

current() 공개 메소드

또한 보기: IteratorIterator::current()
public current ( ) : AbstractEntity
리턴 Scalr\Model\AbstractEntity

getArrayCopy() 공개 메소드

Creates a copy of the ArrayObject.
public getArrayCopy ( ) : array
리턴 array Returns copy as an array

map() 공개 메소드

Implementation of array_map for EntityIterator Applies the callback to the elements of the Iterator
public map ( callable $callback ) : array
$callback callable Callback function to run for each element in each array
리턴 array An array containing all the elements after applying the callback function to each one

프로퍼티 상세

$totalNumber 공개적으로 프로퍼티

This property is set after use find() method
public int $totalNumber
리턴 integer