You are here

public function DatexPoorMansJaliliCalendar::__construct in Datex 8

Default constructor.

Overrides DatexPartialImplementation::__construct

File

src/Datex/DatexPoorMansJaliliCalendar.php, line 26
Fallback calendar implementation in case php-intl is not avaiable.

Class

DatexPoorMansJaliliCalendar
Jalali calendar for datex.

Namespace

Drupal\datex\Datex

Code

public function __construct($tz, $lang_code) {
  $lang_code = $lang_code !== 'fa' && $lang_code !== 'en' ? 'fa' : $lang_code;
  parent::__construct($tz, 'persian', $lang_code);
}