method public

BasketItemCollection::clearCollection()

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

Сигнатура

public clearCollection() : mixed

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

mixed

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

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

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

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

Loader::includeModule('sale');

/** @var BasketItemCollection $object */
$result = $object->clearCollection();
// $result: mixed

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

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

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

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