method public

EntityCollection::offsetExists()

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

Сигнатура

public offsetExists(mixed $offset) : bool

Описание

Существует ли смещение.

Параметры

$offset mixed

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

bool

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

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

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

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

Loader::includeModule('sale');

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

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

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

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

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