method public

UserRepositoryInterface::getRecepients()

Класс: \Bitrix\Tasks\Internals\Notification\UserRepositoryInterface

Сигнатура

public getRecepients(TaskObject $task, User $sender[, array<string|int, mixed> $optional = [] ]) : array<string|int, mixed>

Описание

Должен возвращать массив объектов Internals/Notification/User, участвующих в переданной задаче

Параметры

$task TaskObject
$sender User
$optional array<string|int, mixed> = []

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

array<string|int, mixed>

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

UserRepositoryInterface::getRecepients() — метод интерфейса \Bitrix\Tasks\Internals\Notification\UserRepositoryInterface модуля «Задачи».

Метод объекта: сначала нужен объект, реализующий UserRepositoryInterface.

use Bitrix\Main\Loader;
use Bitrix\Tasks\Internals\Notification\UserRepositoryInterface;

Loader::includeModule('tasks');

/** @var UserRepositoryInterface $object */
$task = null; // TaskObject
$sender = null; // User
$result = $object->getRecepients($task, $sender);
// $result: array<string|int, mixed>

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

getRecepients() есть и у других классов модуля «Задачи»: UserRepository.

Исходный файл: source/tasks/lib/internals/notification/userrepositoryinterface.php:16

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