24include_once 
'./Services/Calendar/classes/class.ilCalendarAuthenticationToken.php';
 
   60        if (
$_GET[
'client_id']) {
 
   74        session_name(
'ILCALSESSID');
 
   76        $logger = 
$GLOBALS[
'DIC']->logger()->cal();
 
   80            $logger->warning(
'Calendar token is invalid. Authentication failed.');
 
   85            $GLOBALS[
'DIC'][
'ilAuthSession']->logout();
 
   90        include_once 
'./Services/Calendar/classes/Export/class.ilCalendarExport.php';
 
   91        include_once 
'./Services/Calendar/classes/class.ilCalendarCategories.php';
 
   93            #$export = new ilCalendarExport(array($this->getTokenHandler()->getCalendar())); 
  108        $GLOBALS[
'DIC'][
'ilAuthSession']->logout();
 
  115        $GLOBALS[
'DIC']->logger()->cal()->info(
'Authentication token: ' . 
$_GET[
'token']);
 
  125        include_once 
"Services/Context/classes/class.ilContext.php";
 
  128        include_once 
'./Services/Authentication/classes/class.ilAuthFactory.php';
 
  131        require_once(
"Services/Init/classes/class.ilInitialisation.php");
 
  134        $GLOBALS[
'DIC'][
'lng']->loadLanguageModule(
'dateplaner');
 
  144            $GLOBALS[
'DIC']->logger()->cal()->info(
'Initialisation of authentication token failed');
 
  148            $GLOBALS[
'DIC']->logger()->cal()->info(
'No user id found for calendar synchronisation');
 
  151        include_once 
'./Services/User/classes/class.ilObjUser.php';
 
  153            $GLOBALS[
'DIC']->logger()->cal()->notice(
'No valid user id found for calendar synchronisation');
 
  157        include_once 
'./Services/Init/classes/class.ilInitialisation.php';
 
  162            $GLOBALS[
'DIC']->logger()->cal()->debug(
'no user object defined');
 
  164            $GLOBALS[
'DIC']->logger()->cal()->debug(
'Current user is: ' . 
$GLOBALS[
'DIC']->
user()->getId());
 
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
An exception for terminatinating execution or to throw for unit testing.
const CONTEXT_CALENDAR_TOKEN
static setContext($a_context)
set context
Handles calendar authentication tokens for external calendar subscriptions.
static lookupUser($a_token)
Lookup user by hash.
static _getInstance($a_usr_id=0)
get singleton instance
const MODE_REMOTE_SELECTED
@classDescription Export calendar(s) to ical format
@classDescription Handles requests from external calendar applications
parseRequest()
Fetch client id, the chosen calendar...
handleRequest()
Handle Request.
__construct()
Constructor.
static init($a_type)
Init context by type.
static initILIAS()
ilias initialisation
static initUserAccount()
Init user with current account id.
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data@access public
static deliverData($a_data, $a_filename, $mime="application/octet-stream", $charset="")
deliver data for download via browser.