method public

BasketPropertiesCollectionBase::getItemByIndex()

Класс: \Bitrix\Sale\BasketPropertiesCollectionBase

Сигнатура

public getItemByIndex(mixed $index) : CollectableEntity|null

Параметры

$index mixed

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

CollectableEntity|null

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

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

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

use Bitrix\Main\Loader;
use Bitrix\Sale\BasketPropertiesCollectionBase;

Loader::includeModule('sale');

/** @var BasketPropertiesCollectionBase $object */
$index = null;
$result = $object->getItemByIndex($index);
// $result: CollectableEntity|null

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

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

Исходный файл: source/sale/lib/basketpropertiesbase.php:227

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