• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/lib/Calc/Libs/DateLib.php
  • Класс: BitrixBizprocCalcLibsDateLib
  • Вызов: DateLib::getCalendarWorkdays
private function getCalendarWorkdays()
{
	if (static::$yearWorkdays === null)
	{
		$yearWorkdays = [];

		$calendarSettings = CCalendar::GetSettings();
		$calendarYearWorkdays = $calendarSettings['year_workdays'] ?? '';

		foreach (explode(',', $calendarYearWorkdays) as $yearWorkday)
		{
			$date = explode('.', trim($yearWorkday));
			if (count($date) === 2 && $date[0] && $date[1])
			{
				$yearWorkdays[] = (int)$date[0] . '.' . (int)$date[1];
			}
		}

		static::$yearWorkdays = $yearWorkdays;
	}

	return [static::$yearWorkdays];
}