method
public
BasketPropertiesCollectionBase::clearCollection()
Сигнатура
public clearCollection() : mixed
Возвращаемое значение
mixed
Как применяется в BasketPropertiesCollectionBase
BasketPropertiesCollectionBase::clearCollection() — метод класса \Bitrix\Sale\BasketPropertiesCollectionBase модуля «Интернет-магазин».
Метод объекта: сначала нужен экземпляр BasketPropertiesCollectionBase.
use Bitrix\Main\Loader;
use Bitrix\Sale\BasketPropertiesCollectionBase;
Loader::includeModule('sale');
/** @var BasketPropertiesCollectionBase $object */
$result = $object->clearCollection();
// $result: mixedДругие методы BasketPropertiesCollectionBase
clearStartField()count()Подсчитывает количество элементов объекта.createItem()current()Возвращает текущий элемент.doFinalAction()getBasketItem()getIndexById()getItemById()getItemByIndex()getIterator()getList()Загружает свойства элемента корзины.getPropertyItemByValue()
clearCollection() есть и у других классов модуля «Интернет-магазин»: Basket, BasketBase, BasketItemCollection, BasketPropertiesCollection, EntityCollection, ShipmentCollection, ShipmentItemCollection, ShipmentItemStoreCollection.
Исходный файл: source/sale/lib/basketpropertiesbase.php:131

