Task::getExpirationFlag

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Task
  4. getExpirationFlag
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/runtime/task.php
  • Класс: BitrixTasksInternalsRunTimeTask
  • Вызов: Task::getExpirationFlag
static function getExpirationFlag(array $parameters)
{
	$result = array();

	$parameters = static::checkParameters($parameters);
	$result[] = new EntityExpressionField(
		$parameters['NAME'],
		"CASE WHEN %s IS NOT NULL AND (%s < %s OR (%s IS NULL AND %s < ".$GLOBALS['DB']->currentTimeFunction().")) THEN 'Y' ELSE 'N' END",
		array('DEADLINE', 'DEADLINE', 'CLOSED_DATE', 'CLOSED_DATE', 'DEADLINE')
	);

	return array('runtime' => $result);
}

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