method
public
static
EventHandler::getInstance()
Класс: \Bitrix\Tasks\Internals\Notification\Event\EventHandler
Сигнатура
public static getInstance() : EventHandler
Возвращаемое значение
EventHandler
Как применяется в EventHandler
EventHandler::getInstance() — метод класса \Bitrix\Tasks\Internals\Notification\Event\EventHandler модуля «Задачи».
Статический метод — вызывается через имя класса EventHandler, без создания объекта.
use Bitrix\Main\Loader;
use Bitrix\Tasks\Internals\Notification\Event\EventHandler;
Loader::includeModule('tasks');
$result = EventHandler::getInstance();
// $result: EventHandlerДругие методы EventHandler
getInstance() есть и у других классов модуля «Задачи»: Counter, CounterService, EventCollection, EventHandler, EventResourceCollection, Group, GroupProvider, GroupRegistry.
Исходный файл: source/tasks/lib/internals/notification/event/eventhandler.php:18

