You are here

function DatexPartialImplementation::__construct in Datex 7.3

Creates a new DatexPartialImplementation.

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

File

src/Datex/DatexPartialImplementation.php, line 24
Base implementation of DatexInterface.

Class

DatexPartialImplementation
Base implementation of DatexInterface.

Code

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