public static function DateiCalParse::parse_exceptions in Date 8
Parse exception dates (can be multiple values).
Return value
array an array of date value arrays.
2 calls to DateiCalParse::parse_exceptions()
- DateiCalParse::parse in date_api/
lib/ Drupal/ date_api/ DateiCalParse.php - Returns an array of iCalendar information from an iCalendar file.
- DateiCalParse::split_rrule in date_api/
lib/ Drupal/ date_api/ DateiCalParse.php - Parse an iCal rule into a parsed RRULE array, along with EXDATE and RDATE arrays.
File
- date_api/
lib/ Drupal/ date_api/ DateiCalParse.php, line 493 - Parse iCal data.
Class
- DateiCalParse
- Return an array of iCalendar information from an iCalendar file.
Namespace
Drupal\date_apiCode
public static function parse_exceptions($data, $field = 'EXDATE:') {
$data = str_replace($field . ':', '', $data);
$items = array(
'DATA' => $data,
);
$ex_dates = explode(',', $data);
foreach ($ex_dates as $ex_date) {
$items[] = self::parse_date($ex_date);
}
return $items;
}