1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс BasketItemCollection
Граф наследования:BasketItemCollection:
EntityCollection EntityCollectionInterface BasketBase BundleCollection Basket

Открытые члены

 createItem ($moduleId, $productId, $basketCode=null)
 getOrder ()
 getBasket ()
 getBasketItems ()
 getOrderId ()
 getExistsItem ($moduleId, $productId, array $properties=array())
Открытые члены унаследованные от EntityCollection
 __construct (EntityInterface ... $items)
 count ()
 isEmpty ()
 getIterator ()
 add (EntityInterface $item)
 find (callable $callback)
 filter (callable $callback)
 map (callable $callback)

Защищенные статические члены

static getItemCollectionClassName ()
Защищенные статические члены унаследованные от EntityCollection
static getEntityClass ()

Дополнительные унаследованные члены

Защищенные данные унаследованные от EntityCollection
array $items = []

Подробное описание

См. определение в файле basketitemcollection.php строка 18

Методы

◆ createItem()

createItem ( $moduleId,
$productId,
$basketCode = null )
Аргументы
$moduleId
$productId
null$basketCode
Возвращает
BasketItemBase
Исключения
NotImplementedException

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ArgumentTypeException

См. определение в файле basketitemcollection.php строка 29

◆ getBasket()

getBasket ( )
abstract
Возвращает
BasketBase

Переопределяется в BasketBase и BundleCollection.

◆ getBasketItems()

getBasketItems ( )
Возвращает
array

См. определение в файле basketitemcollection.php строка 172

◆ getExistsItem()

getExistsItem ( $moduleId,
$productId,
array $properties = array() )

Get first basket item for need moduleId, productId and properties

Аргументы
$moduleId
$productId
array$properties
Возвращает
BasketItem|null
Исключения
NotImplementedException

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ArgumentNullException

См. определение в файле basketitemcollection.php строка 307

◆ getItemCollectionClassName()

getItemCollectionClassName ( )
staticprotected
Возвращает
string
Исключения
NotImplementedException

Bitrix\Main\ArgumentException

См. определение в файле basketitemcollection.php строка 95

◆ getOrder()

getOrder ( )
Возвращает
OrderBase

Переопределяется в BasketBase.

См. определение в файле basketitemcollection.php строка 58

◆ getOrderId()

getOrderId ( )
Возвращает
int

См. определение в файле basketitemcollection.php строка 224


Объявления и описания членов класса находятся в файле: