method public

BasketItemCollection::offsetSet()

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

Сигнатура

public offsetSet(mixed $offset, mixed $value) : void

Описание

Смещение для установки.

Параметры

$offset mixed
$value mixed

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

void

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

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

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

use Bitrix\Main\Loader;
use Bitrix\Sale\BasketItemCollection;

Loader::includeModule('sale');

/** @var BasketItemCollection $object */
$offset = null;
$value = null;
$object->offsetSet($offset, $value);

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

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

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

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