51 public static function getList($languageId = LANGUAGE_ID)
56 $listLocal = [
'feb14',
'feb23',
'mar8',
'halloween',
'new_year'];
60 $listLocal = [
'feb14',
'day_mar8',
'halloween',
'new_year'];
64 $listLocal = [
'feb14',
'halloween',
'thanks',
'christmas'];
68 foreach ($listLocal as $code)
70 if (!isset(self::$list[$code]))
75 $period = self::$list[$code];
76 if (is_array($period[0]))
79 $dateFrom = self::createDate($period[0][0], $period[0][1]);
80 $dateTo = self::createDate($period[1][0], $period[1][1]);
84 $date = self::createDate($period[0], $period[1]);
85 $dateFrom = self::createDate($period[0], $period[1])->add(
'-5 days');
86 $dateTo = self::createDate($period[0], $period[1])->add(
'+3 days');
89 $list[] =
new self($code, $date, $dateFrom, $dateTo);
211 return Date::createFromTimestamp(mktime(0, 0, 0, $month, $day,
$year ?: date(
'Y')));