method
public
static
EventsPool::getByIndex()
Сигнатура
public static getByIndex(mixed $code, mixed $type, int $index) : null|mixed
Параметры
$code
mixed
$type
mixed
$index
int
Возвращаемое значение
null|mixed
Как применяется в EventsPool
EventsPool::getByIndex() — метод класса \Bitrix\Sale\Internals\EventsPool модуля «Интернет-магазин».
Статический метод — вызывается через имя класса EventsPool, без создания объекта.
use Bitrix\Main\Loader;
use Bitrix\Sale\Internals\EventsPool;
Loader::includeModule('sale');
$code = null;
$type = null;
$index = 1;
$result = EventsPool::getByIndex($code, $type, $index);
// $result: null|mixedДругие методы EventsPool
add()addEvent()delete()get()getEvents()getEventsByType()getPoolByCode()isEventTypeExists()isTypeExists()resetEvents()resetPool()
getByIndex() есть и у других классов модуля «Интернет-магазин»: ActionEntity, ItemsPool, PoolBase.
Исходный файл: source/sale/lib/internals/eventspool.php:36

