• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/provider/schedule/shiftplanprovider.php
  • Класс: BitrixTimemanProviderScheduleShiftPlanProvider
  • Вызов: ShiftPlanProvider::findActiveByComplexId
public function findActiveByComplexId($shiftId, $userId, $dateAssigned)
{
	if (!($dateAssigned instanceof Date))
	{
		return null;
	}
	$key = $this->buildComplexIdKey($shiftId, $userId, $dateAssigned);
	if ($this->activePlansByComplexId[$key] === null)
	{
		$this->activePlansByComplexId[$key] = false;
		$result = parent::findActiveByComplexId($shiftId, $userId, $dateAssigned);
		if ($result !== null)
		{
			$this->activePlansByComplexId[$key] = $result;
		}
	}
	return $this->activePlansByComplexId[$key] === false ? null : $this->activePlansByComplexId[$key];
}