method
public
EntityCollection::offsetSet()
Сигнатура
public offsetSet(mixed $offset, mixed $value) : void
Описание
Смещение для установки.
Параметры
$offset
mixed
$value
mixed
Возвращаемое значение
void
Как применяется в EntityCollection
EntityCollection::offsetSet() — метод класса \Bitrix\Sale\Internals\EntityCollection модуля «Интернет-магазин».
Метод объекта: сначала нужен экземпляр EntityCollection.
use Bitrix\Main\Loader;
use Bitrix\Sale\Internals\EntityCollection;
Loader::includeModule('sale');
/** @var EntityCollection $object */
$offset = null;
$value = null;
$object->offsetSet($offset, $value);Другие методы EntityCollection
clearCollection()clearStartField()count()Подсчитывает количество элементов объекта.current()Возвращает текущий элемент.doFinalAction()getIndexById()getItemById()getItemByIndex()getIterator()getRegistryType()hasMeaningfulField()isAnyItemAdded()
offsetSet() есть и у других классов модуля «Интернет-магазин»: Basket, BasketBase, BasketItemCollection, BasketPropertiesCollection, BasketPropertiesCollectionBase, Collection, CollectionBase, Fields.
Исходный файл: source/sale/lib/internals/entitycollection.php:53

