method public

BasketPropertiesCollection::offsetExists()

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

Сигнатура

public offsetExists(mixed $offset) : bool

Описание

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

Параметры

$offset mixed

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

bool

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

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

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

use Bitrix\Main\Loader;
use Bitrix\Sale\BasketPropertiesCollection;

Loader::includeModule('sale');

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

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

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

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

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