method public

BasketItemCollection::isAnyItemAdded()

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

Сигнатура

public isAnyItemAdded() : bool

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

bool

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

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

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

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

Loader::includeModule('sale');

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

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

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

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

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