24 include_once
'./Services/Calendar/classes/class.ilCalendarAuthenticationToken.php';
57 if(
$_GET[
'client_id'])
83 include_once
'./Services/Calendar/classes/Export/class.ilCalendarExport.php';
84 include_once
'./Services/Calendar/classes/class.ilCalendarCategories.php';
87 #$export = new ilCalendarExport(array($this->getTokenHandler()->getCalendar())); 106 #echo $export->getExportString(); 107 #echo nl2br($export->getExportString()); 109 #$fp = fopen('ilias.ics', 'w'); 110 #fwrite($fp,$export->getExportString()); 125 include_once
"Services/Context/classes/class.ilContext.php";
128 include_once
'./Services/Authentication/classes/class.ilAuthFactory.php';
131 $_POST[
'username'] =
'cal_auth_token';
132 $_POST[
'password'] =
'cal_auth_token';
134 require_once(
"Services/Init/classes/class.ilInitialisation.php");
137 $GLOBALS[
'lng']->loadLanguageModule(
'dateplaner');
static deliverData($a_data, $a_filename, $mime="application/octet-stream", $charset="")
deliver data for download via browser.
parseRequest()
Fetch client id, the chosen calendar...
const MODE_REMOTE_SELECTED
static initILIAS()
ilias initialisation
Export calendar(s) to ical format
static setContext($a_context)
set context
__construct()
Constructor.
static _getInstance($a_usr_id=0)
get singleton instance
static init($a_type)
Init context by type.
static lookupUser($a_token)
Lookup user by hash.
handleRequest()
Handle Request.
const CONTEXT_CALENDAR_TOKEN
Handles calendar authentication tokens for external calendar subscriptions.
Handles requests from external calendar applications