• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/classes/general/calendar_reminder.php
  • Класс: CCalendarReminder
  • Вызов: CCalendarReminder::GetTextReminders
static function GetTextReminders($valueList = array())
{
	if (is_array($valueList))
	{
		foreach($valueList as $i => $value)
		{
			if($value['type'] == 'min')
			{
				$value['text'] = Loc::getMessage('EC_REMIND1_VIEW_'.$value['count']);
				if(!$value['text'])
				{
					$value['text'] = Loc::getMessage('EC_REMIND1_VIEW_MIN_COUNT', array('#COUNT#' => intval($value['count'])));
				}
			}
			elseif($value['type'] == 'hour')
			{
				$value['text'] = Loc::getMessage('EC_REMIND1_VIEW_HOUR_COUNT', array('#COUNT#' => intval($value['count'])));
			}
			elseif($value['type'] == 'day')
			{
				$value['text'] = Loc::getMessage('EC_REMIND1_VIEW_DAY_COUNT', array('#COUNT#' => intval($value['count'])));
			}
			$valueList[$i] = $value;
		}
	}
	return $valueList;
}