method public

Event::__construct()

Класс: \Bitrix\Main\Event

Сигнатура

public __construct(mixed $moduleId, mixed $type[, array<string|int, mixed> $parameters = array() ][, null|string|array<string|int, string> $filter = null ]) : mixed

Параметры

$moduleId mixed
$type mixed
$parameters array<string|int, mixed> = array()
$filter null|string|array<string|int, string> = null
Фильтр по именам модулей, именам почтовых событий и именам компонентов обработчиков событий

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

mixed

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

Event::__construct() — метод класса \Bitrix\Main\Event модуля «Главный модуль».

Конструктор: создаёт экземпляр Event — обязательные аргументы перечислены в разделе «Параметры».

use Bitrix\Main\Event;

$moduleId = null;
$type = null;
$object = new Event($moduleId, $type);

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

__construct() есть и у других классов модуля «Главный модуль»: AbstractAccessFilter, AbstractRule, AccessAuthProvider, AccessCode, AccessFilter, AccessibleController, Action, AddedData.

Исходный файл: source/main/lib/event.php:29

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