method public static

PoolBase::getByIndex()

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

Сигнатура

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

Параметры

$code mixed
$type mixed
$index int

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

null|mixed

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

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

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

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

Loader::includeModule('sale');

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

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

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

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

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