• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/lib/userabsence.php
  • Класс: BitrixIntranetUserAbsence
  • Вызов: UserAbsence::getActiveVacationTypes
static function getActiveVacationTypes()
{
	if (is_array(self::$activeVacationTypes))
	{
		return self::$activeVacationTypes;
	}

	$defaultVacationTypes = self::$defaultVacationTypes;

	$vacationTypesOption = Option::get('intranet', 'vacation_types', null);
	if ($vacationTypesOption)
	{
		$defaultVacationTypes = unserialize($vacationTypesOption, ["allowed_classes" => false]);
	}

	self::$activeVacationTypes = $defaultVacationTypes;

	return self::$activeVacationTypes;
}