• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/classes/general/elapseditem.php
  • Класс: CTaskElapsedItem
  • Вызов: CTaskElapsedItem::delete
public function delete()
{
	if ( ! $this->isActionAllowed(self::ACTION_ELAPSED_TIME_REMOVE) )
		throw new TasksException('', TasksException::TE_ACTION_NOT_ALLOWED);

	/** @noinspection PhpDeprecationInspection */
	$rc = CTaskElapsedTime::delete($this->itemId, array('USER_ID' => $this->executiveUserId));

	// Reset tagged system cache by tag 'tasks_user_' . $userId for each task member
	$this->resetSystemWideTasksCacheByTag();

	// Reset cache
	$this->resetCache();

	if ( ! $rc )
		throw new TasksException('', TasksException::TE_ACTION_FAILED_TO_BE_PROCESSED);
}