method public

BasketPropertiesCollection::getIndexById()

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

Сигнатура

public getIndexById(mixed $id) : bool|int|null

Параметры

$id mixed

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

bool|int|null

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

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

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

use Bitrix\Main\Loader;
use Bitrix\Sale\BasketPropertiesCollection;

Loader::includeModule('sale');

/** @var BasketPropertiesCollection $object */
$id = null;
$result = $object->getIndexById($id);
// $result: bool|int|null

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

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

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

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