method public

EntityCollection::getIterator()

Класс: \Bitrix\Sale\Internals\EntityCollection

Сигнатура

public getIterator() : ArrayIterator

Возвращаемое значение

ArrayIterator

Как применяется в EntityCollection

EntityCollection::getIterator() — метод класса \Bitrix\Sale\Internals\EntityCollection модуля «Интернет-магазин».

Метод объекта: сначала нужен экземпляр EntityCollection.

use Bitrix\Main\Loader;
use Bitrix\Sale\Internals\EntityCollection;

Loader::includeModule('sale');

/** @var EntityCollection $object */
$result = $object->getIterator();
// $result: ArrayIterator

Другие методы EntityCollection

getIterator() есть и у других классов модуля «Интернет-магазин»: Basket, BasketBase, BasketItemCollection, BasketPropertiesCollection, BasketPropertiesCollectionBase, CollectionBase, RestrictionInfoCollection, ShipmentCollection.

Исходный файл: source/sale/lib/internals/entitycollection.php:22

Что будем искать? Например,Продвижение