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
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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