method
public
static
ItemsPool::getByIndex()
Сигнатура
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

