You are here

function cmfcCalendarV1Arabic::smartGet in Calendar Systems 8.2

Same name and namespace in other branches
  1. 7.2 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::smartGet()

@desc accept array,timestamp and string as input datetime in jalali or gregorian format

Overrides cmfcCalendarV1::smartGet

File

calendar/v1/calendarSystems/arabic.class.inc.php, line 793

Class

cmfcCalendarV1Arabic

Code

function smartGet($type, $value = "now") {
  if ($value != 'now') {
    $value = $this
      ->strtotime($value);
  }
  if (empty($value)) {
    return;
  }
  return $this
    ->date($type, $value);
}