4include_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        $ilCtrl = 
$DIC[
'ilCtrl'];
 
   43        $next_class = $ilCtrl->getNextClass($this);
 
   44        switch ($next_class) {
 
   46                $cmd = $ilCtrl->getCmd(
"show");
 
   61        include_once 
'./Services/InfoScreen/classes/class.ilInfoScreenGUI.php';
 
   63        $info->setFormAction(
$GLOBALS[
'DIC'][
'ilCtrl']->getFormAction($this));
 
   65        if ($this->cal_id > 0) {
 
   68        } elseif ($this->ref_id > 0) {
 
   71            $id = $category->getCategoryID();
 
   78        $url = ILIAS_HTTP_PATH . 
'/calendar.php?client_id=' . 
CLIENT_ID . 
'&token=' . $hash;
 
   79        $info->addSection($this->lng->txt(
"cal_subscription"));
 
   80        $info->addProperty($this->lng->txt(
'cal_ical_url'), 
$url, 
$url);
 
   82        $this->tpl->setContent($info->getHTML());
 
   90        include_once 
'./Services/Calendar/classes/class.ilCalendarAuthenticationToken.php';
 
   96        $token->setSelectionType($selection);
 
  110        $ui_factory = 
$DIC->ui()->factory();
 
  111        $ui_renderer = 
$DIC->ui()->renderer();
 
  114            'tpl.subscription_dialog.html',
 
  120        $tpl->setVariable(
'TXT_SUBSCRIPTION_INFO', 
$lng->txt(
'cal_subscription_info'));
 
  123        if ($this->cal_id > 0) {
 
  126        } elseif ($this->ref_id > 0) {
 
  129            $id = $category->getCategoryID();
 
  135        $url = ILIAS_HTTP_PATH . 
'/calendar.php?client_id=' . 
CLIENT_ID . 
'&token=' . $hash;
 
  137        $tpl->setVariable(
'LINK', 
$url . 
'&limited=0');
 
  138        $tpl->setVariable(
'TXT_PERMA', 
$lng->txt(
'cal_ical_url'));
 
  140        $tpl->setVariable(
'LINK_LIMITED', 
$url . 
'&limited=1');
 
  141        $tpl->setVariable(
'TXT_PERMA_LIMITED', 
$lng->txt(
'cal_ical_url_google'));
 
  143        $roundtrip = $ui_factory->modal()->roundtrip(
 
  144            $lng->txt(
'cal_calendar_subscription_modal_title'),
 
  145            $ui_factory->legacy(
$tpl->get())
 
  147        echo $ui_renderer->render($roundtrip);
 
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
An exception for terminatinating execution or to throw for unit testing.
Handles calendar authentication tokens for external calendar subscriptions.
static lookupAuthToken($a_user_id, $a_selection, $a_calendar=0)
static _getInstanceByObjId($a_obj_id)
get instance by obj_id
Show calendar subscription info.
createToken($user_id, $selection, $id)
Create calendar token.
executeCommand()
Execute command.
getModalForSubscription()
gGet modal for subscription
show()
Show subscription info.
__construct($a_calendar_id, $a_ref_id=0)
Constructor.
static _lookupObjId($a_id)
special template class to simplify handling of ITX/PEAR
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl