method public

BasketPropertiesCollectionBase::isAnyItemAdded()

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

Сигнатура

public isAnyItemAdded() : bool

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

bool

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

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

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

use Bitrix\Main\Loader;
use Bitrix\Sale\BasketPropertiesCollectionBase;

Loader::includeModule('sale');

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

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

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

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

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