method public static

ItemsPool::getByIndex()

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

Сигнатура

public static getByIndex(mixed $code, mixed $type, int $index) : null|mixed

Параметры

$code mixed
$type mixed
$index int

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

null|mixed

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

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

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

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

Loader::includeModule('sale');

$code = null;
$type = null;
$index = 1;
$result = ItemsPool::getByIndex($code, $type, $index);
// $result: null|mixed

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

getByIndex() есть и у других классов модуля «Интернет-магазин»: ActionEntity, EventsPool, PoolBase.

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

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