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

