method public static

BasketItemBase::load()

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

Сигнатура

public static load(BasketItemCollection $basketItemCollection, mixed $data) : mixed

Параметры

$basketItemCollection BasketItemCollection
$data mixed

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

mixed

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

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

Статический метод — вызывается через имя класса BasketItemBase, без создания объекта.

use Bitrix\Main\Loader;
use Bitrix\Sale\BasketItemBase;

Loader::includeModule('sale');

$basketItemCollection = null; // BasketItemCollection
$data = null;
$result = BasketItemBase::load($basketItemCollection, $data);
// $result: mixed

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

load() есть и у других классов модуля «Интернет-магазин»: BasketItem, BasketPropertiesCollection, BasketPropertiesCollectionBase, Discount, DiscountCouponsManager, DiscountCouponsManagerBase, Order, OrderBase.

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

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