TimeManager::stop

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. TimeManager
  4. stop
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/dispatcher/publicaction/integration/timemanager.php
  • Класс: BitrixTasksDispatcherPublicActionIntegrationTimeManager
  • Вызов: TimeManager::stop
public function stop($taskId)
{
	$result = array();

	if($taskId = $this->checkTaskId($taskId))
	{
		global $USER;

		$timer = CTaskTimerManager::getInstance($USER->GetId());
		if($timer->stop($taskId) === false)
		{
			$this->errors->add('TIMER_ACTION_FAILED.STOP', 'Timer action failed');
		}
	}

	return $result;
}

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