class ICal in Opigno calendar event 8
Same name and namespace in other branches
- 3.x src/iCal/ICal.php \Drupal\opigno_calendar_event\iCal\ICal
Class ICal.
Hierarchy
- class \Drupal\opigno_calendar_event\iCal\ICal
Expanded class hierarchy of ICal
1 string reference to 'ICal'
1 service uses ICal
File
- src/
iCal/ ICal.php, line 8
Namespace
Drupal\opigno_calendar_event\iCalView source
class ICal {
/**
* Build iCal file for events.
*
* @param array $params
* Params.
*
* @return bool|string
* Calendar event.
*/
public function buildICalEvent(array $params) {
$event = new ICalendarEvent($params);
$params['events'] = [
$event,
];
$calendar = new ICalendar($params);
return $calendar
->generateString();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ICal:: |
public | function | Build iCal file for events. |