• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/effective.php
  • Класс: BitrixTasksInternalsEffective
  • Вызов: Effective::getCountersByRange
static function getCountersByRange(DateTime $dateFrom, DateTime $dateTo, $userId = 0, $groupId = 0)
{
	$userId = intval($userId);
	$groupId = intval($groupId);

	return [
		'VIOLATIONS' => static::getViolationsCount($dateFrom, $dateTo, $userId, $groupId),
		'IN_PROGRESS' => static::getInProgressCount($dateFrom, $dateTo, $userId, $groupId),
		'COMPLETED' => static::getCompletedCount($dateFrom, $dateTo, $userId, $groupId)
	] ;
}