TaskExpired::expiredForResponsible

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. TaskExpired
  4. expiredForResponsible
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/im/notification/usecase/taskexpired.php
  • Класс: Bitrix\Tasks\Integration\IM\Notification\UseCase\TaskExpired
  • Вызов: TaskExpired::expiredForResponsible
private function expiredForResponsible(Message $message, TaskObject $task): Notification
{
	$sameCreatorMessagePart = 'SAME_CREATOR_';

	$messageKey = ($task->getResponsibleId() === $task->getCreatedBy())
		? "TASKS_TASK_EXPIRED_RESPONSIBLE_{$sameCreatorMessagePart}MESSAGE"
		: 'TASKS_TASK_EXPIRED_RESPONSIBLE_MESSAGE'
	;

	return $this->createNotification($messageKey, $message, $task);
}

Добавить комментарий