4 include_once
'./Services/Calendar/classes/class.ilCalendarCategory.php';
25 $this->cal_id = $a_calendar_id;
26 $this->ref_id = $a_ref_id;
27 $this->
user = $DIC->user();
28 $this->lng = $DIC->language();
29 $this->tpl = $DIC[
"tpl"];
31 include_once
'./Services/Calendar/classes/class.ilCalendarCategory.php';
41 $next_class = $ilCtrl->getNextClass($this);
42 switch ($next_class) {
44 $cmd = $ilCtrl->getCmd(
"show");
59 include_once
'./Services/InfoScreen/classes/class.ilInfoScreenGUI.php';
61 $info->setFormAction(
$GLOBALS[
'ilCtrl']->getFormAction($this));
63 if ($this->cal_id > 0) {
66 } elseif ($this->ref_id > 0) {
69 $id = $category->getCategoryID();
76 $url = ILIAS_HTTP_PATH .
'/calendar.php?client_id=' . CLIENT_ID .
'&token=' . $hash;
77 $info->addSection($this->lng->txt(
"cal_subscription"));
78 $info->addProperty($this->lng->txt(
'cal_ical_url'),
$url,
$url);
80 $this->tpl->setContent(
$info->getHTML());
88 include_once
'./Services/Calendar/classes/class.ilCalendarAuthenticationToken.php';
94 $token->setSelectionType($selection);
95 $token->setCalendar(
$id);
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
if(!array_key_exists('StateId', $_REQUEST)) $id
__construct($a_calendar_id, $a_ref_id=0)
Constructor.
Show calendar subscription info.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
executeCommand()
Execute command.
static _lookupObjId($a_id)
static _getInstanceByObjId($a_obj_id)
get instance by obj_id
createToken($user_id, $selection, $id)
Create calendar token.
static lookupAuthToken($a_user_id, $a_selection, $a_calendar=0)
Handles calendar authentication tokens for external calendar subscriptions.
show()
Show subscription info.