method public

EntityCollection::offsetGet()

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

Сигнатура

public offsetGet(mixed $offset) : mixed

Описание

Смещение для получения.

Параметры

$offset mixed

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

mixed

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

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

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

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

Loader::includeModule('sale');

/** @var EntityCollection $object */
$offset = null;
$result = $object->offsetGet($offset);
// $result: mixed

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

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

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

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