# BasketItemCollection

URL: https://chugunov.pro/api-bitrix/sale/basketitemcollection/
Проверено на 1С-Битрикс 25.x, обновлено 03.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией 1С-Битрикс.

Класс `\Bitrix\Sale\BasketItemCollection`
Модуль: Sale.

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

## Методы (40)

- [`clearCollection()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/clearcollection/)
- [`clearStartField()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/clearstartfield/)
- [`count()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/count/) — Подсчитывает количество элементов объекта.
- [`createItem()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/createitem/)
- [`current()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/current/) — Возвращает текущий элемент.
- [`doFinalAction()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/dofinalaction/)
- [`getBasket()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/getbasket/)
- [`getBasketItems()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/getbasketitems/)
- [`getContext()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/getcontext/)
- [`getExistsItem()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/getexistsitem/) (устаревший)
- [`getExistsItems()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/getexistsitems/) — Получает все элементы корзины для нужных moduleId, productId и свойств.
- [`getIndexById()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/getindexbyid/)
- [`getItemByBasketCode()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/getitembybasketcode/)
- [`getItemById()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/getitembyid/)
- [`getItemByIndex()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/getitembyindex/)
- [`getItemByXmlId()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/getitembyxmlid/)
- [`getIterator()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/getiterator/)
- [`getOrder()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/getorder/)
- [`getOrderId()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/getorderid/)
- [`static getRegistryType()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/getregistrytype/)
- [`hasMeaningfulField()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/hasmeaningfulfield/)
- [`isAnyItemAdded()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/isanyitemadded/)
- [`isAnyItemDeleted()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/isanyitemdeleted/)
- [`isChanged()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/ischanged/)
- [`isClone()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/isclone/)
- [`isEmpty()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/isempty/) — Проверяет, пуста ли коллекция.
- [`isMathActionOnly()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/ismathactiononly/)
- [`isStartField()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/isstartfield/)
- [`key()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/key/) — Возвращает ключ текущего элемента.
- [`loadFromArray()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/loadfromarray/)
- [`next()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/next/) — Переходит к следующему элементу.
- [`offsetExists()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/offsetexists/) — Существует ли смещение.
- [`offsetGet()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/offsetget/) — Смещение для получения.
- [`offsetSet()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/offsetset/) — Смещение для установки.
- [`offsetUnset()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/offsetunset/) — Смещение для удаления.
- [`rewind()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/rewind/) — Перематывает итератор на первый элемент.
- [`setMathActionOnly()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/setmathactiononly/)
- [`toArray()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/toarray/)
- [`valid()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/valid/) — Проверяет, является ли текущая позиция допустимой.
- [`verify()`](https://chugunov.pro/api-bitrix/sale/basketitemcollection/verify/)

Оригинал в официальной документации: https://docs.1c-bitrix.ru/api/classes/Bitrix-Sale-BasketItemCollection.html
