method public

EntityCollection::clearCollection()

Класс: \Bitrix\Sale\Internals\EntityCollection

Сигнатура

public clearCollection() : mixed

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

mixed

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

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

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

use Bitrix\Main\Loader;
use Bitrix\Sale\Internals\EntityCollection;

Loader::includeModule('sale');

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

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

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

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

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