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

