method
public
EventInterface::__construct()
Сигнатура
public __construct(int $userId[, mixed $params = null ]) : mixed
Параметры
$userId
int
$params
mixed
= null
Возвращаемое значение
mixed
Как применяется в EventInterface
EventInterface::__construct() — метод интерфейса \Bitrix\Tasks\Internals\Marketing\EventInterface модуля «Задачи».
Конструктор: создаёт экземпляр EventInterface — обязательные аргументы перечислены в разделе «Параметры».
use Bitrix\Main\Loader;
use Bitrix\Tasks\Internals\Marketing\EventInterface;
Loader::includeModule('tasks');
$userId = 1;
$object = new EventInterface($userId);Другие методы EventInterface
__construct() есть и у других классов модуля «Задачи»: AbstractCase, AbstractConverter, AccessInstaller, AccompliceConverter, Agent, AuditorConverter, BaseEvent, ChecklistAddRule.
Исходный файл: source/tasks/lib/internals/marketing/eventinterface.php:14

