ReadyTodoCompatible::applyFilter

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. ReadyTodoCompatible
  4. applyFilter
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/counterquerybuilder/deadlinebased/datefilters/readytodocompatible.php
  • Класс: Bitrix\Crm\Counter\CounterQueryBuilder\DeadlineBased\DateFilters\ReadyTodoCompatible
  • Вызов: ReadyTodoCompatible::applyFilter
public function applyFilter(ConditionTree $ct, QueryParams $params): void
{
	$lightCounterAt = Dates::now($params);
	$lightCounterAt->add('PT' . DateFilter::LIGHT_TIME_COMPATIBLE_OFFSET_MINUTES .  'M');

	$todayBegins = Dates::beginOfCurrentDay($params);

	$ct->where('DEADLINE', '<=', $lightCounterAt);
	$ct->where('DEADLINE', '>=', $todayBegins);

	if ($params->periodFrom() && $params->periodTo())
	{
		$this->deadlineBounds->applyFilerToField('DEADLINE', $ct, $params);
	}
}

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