Show calendar subscription info.
More...
◆ __construct()
ilCalendarSubscriptionGUI::__construct |
( |
int |
$a_calendar_id, |
|
|
int |
$a_ref_id = 0 |
|
) |
| |
◆ createToken()
ilCalendarSubscriptionGUI::createToken |
( |
|
$user_id, |
|
|
|
$selection, |
|
|
|
$id |
|
) |
| |
|
private |
◆ executeCommand()
ilCalendarSubscriptionGUI::executeCommand |
( |
| ) |
|
◆ getModalForSubscription()
ilCalendarSubscriptionGUI::getModalForSubscription |
( |
| ) |
|
|
protected |
Definition at line 105 of file class.ilCalendarSubscriptionGUI.php.
References $cal_id, $id, $url, ilCalendarCategory\_getInstanceByObjId(), ilObject\_lookupObjId(), CLIENT_ID, createToken(), exit, ILIAS\UICore\GlobalTemplate\get(), ILIAS\Repository\lng(), ilCalendarAuthenticationToken\SELECTION_CALENDAR, ilCalendarAuthenticationToken\SELECTION_PD, ILIAS\UICore\GlobalTemplate\setVariable(), and ILIAS\Repository\user().
108 'tpl.subscription_dialog.html',
111 'components/ILIAS/Calendar' 116 if ($this->cal_id > 0) {
119 } elseif ($this->ref_id > 0) {
122 $id = $category->getCategoryID();
128 $url = ILIAS_HTTP_PATH .
'/calendar.php?client_id=' .
CLIENT_ID .
'&token=' . $hash;
136 $roundtrip = $this->ui_factory->modal()->roundtrip(
137 $this->
lng->txt(
'cal_calendar_subscription_modal_title'),
138 $this->ui_factory->legacy()->content(
$tpl->
get())
140 echo $this->ui_renderer->render($roundtrip);
static _getInstanceByObjId(int $a_obj_id)
get instance by obj_id
setVariable(string $variable, $value='')
Sets the given variable to the given value.
static _lookupObjId(int $ref_id)
createToken($user_id, $selection, $id)
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
ilGlobalTemplateInterface $tpl
exit
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ show()
ilCalendarSubscriptionGUI::show |
( |
| ) |
|
|
protected |
Show subscription info.
Definition at line 66 of file class.ilCalendarSubscriptionGUI.php.
References $cal_id, $GLOBALS, $id, $url, ilCalendarCategory\_getInstanceByObjId(), ilObject\_lookupObjId(), CLIENT_ID, createToken(), ILIAS\Repository\lng(), ilCalendarAuthenticationToken\SELECTION_CALENDAR, ilCalendarAuthenticationToken\SELECTION_PD, and ILIAS\Repository\user().
68 $this->tpl->setOnScreenMessage(
'info', $this->
lng->txt(
'cal_subscription_info'));
71 $info->setFormAction(
$GLOBALS[
'DIC'][
'ilCtrl']->getFormAction($this));
73 if ($this->cal_id > 0) {
76 } elseif ($this->ref_id > 0) {
79 $id = $category->getCategoryID();
86 $url = ILIAS_HTTP_PATH .
'/calendar.php?client_id=' .
CLIENT_ID .
'&token=' . $hash;
87 $info->addSection($this->
lng->txt(
"cal_subscription"));
88 $info->addProperty($this->
lng->txt(
'cal_ical_url'),
$url,
$url);
90 $this->tpl->setContent($info->getHTML());
static _getInstanceByObjId(int $a_obj_id)
get instance by obj_id
static _lookupObjId(int $ref_id)
createToken($user_id, $selection, $id)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ $cal_id
int ilCalendarSubscriptionGUI::$cal_id = 0 |
|
private |
◆ $ctrl
◆ $lng
◆ $ref_id
int ilCalendarSubscriptionGUI::$ref_id = 0 |
|
private |
◆ $tpl
◆ $ui_factory
Factory ilCalendarSubscriptionGUI::$ui_factory |
|
protected |
◆ $ui_renderer
Renderer ilCalendarSubscriptionGUI::$ui_renderer |
|
protected |
◆ $user
The documentation for this class was generated from the following file: