You are here

private static function DatexPoorMansJaliliCalendar::getMonthNames in Datex 8

1 call to DatexPoorMansJaliliCalendar::getMonthNames()
DatexPoorMansJaliliCalendar::_format in src/Datex/DatexPoorMansJaliliCalendar.php

File

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

Class

DatexPoorMansJaliliCalendar
Jalali calendar for datex.

Namespace

Drupal\datex\Datex

Code

private static function getMonthNames($convert, $month, $shorten = FALSE, $len = 3) {
  $ret = $convert ? self::$months_conv[$month - 1] : self::$months[$month - 1];
  return $shorten ? self::substr($ret, 0, $len) : $ret;
}