Task::onBeforeDelete

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Task
  4. onBeforeDelete
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/control/task.php
  • Класс: BitrixTasksControlTask
  • Вызов: Task::onBeforeDelete
private function onBeforeDelete(): bool
{
	$taskData = $this->getFullTaskData();
	if (!$taskData)
	{
		return false;
	}
	foreach (GetModuleEvents('tasks', 'OnBeforeTaskDelete', true) as $arEvent)
	{
		if (ExecuteModuleEventEx($arEvent, [$this->taskId, $taskData, $this->byPassParams]) === false)
		{
			return false;
		}
	}
	return true;
}

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