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

