method public

BasketPropertiesCollection::isAnyItemAdded()

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

Сигнатура

public isAnyItemAdded() : bool

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

bool

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

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

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

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

Loader::includeModule('sale');

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

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

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

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

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