public function DatexPoorMansJaliliCalendar::validate in Datex 8
Overrides DatexPartialImplementation::validate
File
- src/
Datex/ DatexPoorMansJaliliCalendar.php, line 49 - Fallback calendar implementation in case php-intl is not avaiable.
Class
- DatexPoorMansJaliliCalendar
- Jalali calendar for datex.
Namespace
Drupal\datex\DatexCode
public function validate(array $arr) {
if ((!isset($arr['year']) || empty($arr['year'])) && (!isset($arr['month']) || empty($arr['month'])) && (!isset($arr['day']) || empty($arr['day']))) {
return NULL;
}
return self::validate_($arr['year'], $arr['month'], $arr['day']);
}