method
public
ProviderCollection::add()
Класс: \Bitrix\Tasks\Internals\Notification\ProviderCollection
Сигнатура
public add(ProviderInterface $provider) : void
Параметры
$provider
ProviderInterface
Возвращаемое значение
void
Как применяется в ProviderCollection
ProviderCollection::add() — метод класса \Bitrix\Tasks\Internals\Notification\ProviderCollection модуля «Задачи».
Метод объекта: сначала нужен экземпляр ProviderCollection.
use Bitrix\Main\Loader;
use Bitrix\Tasks\Internals\Notification\ProviderCollection;
Loader::includeModule('tasks');
/** @var ProviderCollection $object */
$provider = null; // ProviderInterface
$object->add($provider);Другие методы ProviderCollection
add() есть и у других классов модуля «Задачи»: AccessTable, Agent, CheckListTable, DependenceTable, ElapsedTimeTable, EventManager, EventTable, FavoriteTable.
Исходный файл: source/tasks/lib/internals/notification/providercollection.php:31

