You are here

function DatexPartialImplementation::__construct in Datex 8

3 calls to DatexPartialImplementation::__construct()
DatexIntlCalendar::__construct in src/Datex/DatexIntlCalendar.php
DatexPoorMansGregorianCalendar::__construct in src/Datex/DatexPoorMansGregorianCalendar.php
DatexPoorMansJaliliCalendar::__construct in src/Datex/DatexPoorMansJaliliCalendar.php
Default constructor.
3 methods override DatexPartialImplementation::__construct()
DatexIntlCalendar::__construct in src/Datex/DatexIntlCalendar.php
DatexPoorMansGregorianCalendar::__construct in src/Datex/DatexPoorMansGregorianCalendar.php
DatexPoorMansJaliliCalendar::__construct in src/Datex/DatexPoorMansJaliliCalendar.php
Default constructor.

File

src/Datex/DatexPartialImplementation.php, line 15

Class

DatexPartialImplementation

Namespace

Drupal\datex\Datex

Code

function __construct($tz, $calendar, $lang_code) {
  $this->timezone = $tz;
  $this->origin = new \DateTime('now', $this->timezone);
  $this->calendar = $calendar;
  $this->langCode = $lang_code;
}