You are here

public function DatexIntlCalendar::__construct in Datex 7.3

Creates a new DatexIntlCalendar.

Overrides DatexPartialImplementation::__construct

File

src/Datex/DatexIntlCalendar.php, line 20
Implementation of DatexInterface using php-intl.

Class

DatexIntlCalendar
Implementation of DatexInterface using php-intl.

Code

public function __construct($tz, $calendar, $lang_code) {
  parent::__construct($tz, $calendar, $lang_code);
  $this->locale = $lang_code . '@calendar=' . $calendar;
  $this->intlFormatter = self::intl($this->timezone, $this->locale, $calendar);
}