Метод getAverageEfficiency

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу строки 743–793
~/bitrix/modulestasks/lib/internals/effective.php

Исходный код

PHP
public static

Сигнатура метода

public static function getAverageEfficiency(DateTime $dateFrom = null, DateTime $dateTo = null, $userId = 0, $groupId = 0)

Описание

Returns average efficiency for given dates. If at least one of dates is not set, it will try to take the dates from the filter preset user pinned as default. If filter options were not set in b_user_options for some reason and we still haven't dates, it will take the default dates from static::getDatesRange(). For now they are borders of current month.

Параметры

4
Имя Тип По умолчанию Флаги
$dateFrom DateTime null
-
$dateTo DateTime null
-
$userId - 0
-
$groupId - 0
-