• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/model/schedule/schedulecollection.php
  • Класс: BitrixTimemanModelScheduleScheduleCollection
  • Вызов: ScheduleCollection::obtainActiveShifts
public function obtainActiveShifts()
{
	$shifts = new ShiftCollection();
	foreach ($this->getAll() as $schedule)
	{
		foreach ($schedule->obtainActiveShifts() as $shift)
		{
			$shifts->add($shift);
		}
	}
	return $shifts;
}