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 91 of file class.ilCalendarSubscriptionGUI.php.
References $cal_id, $id, $url, ilCalendarCategory\_getInstanceByObjId(), ilObject\_lookupObjId(), CLIENT_ID, createToken(), exit, ilGlobalTemplateInterface\get(), ILIAS\Repository\lng(), ilCalendarAuthenticationToken\SELECTION_CALENDAR, ilCalendarAuthenticationToken\SELECTION_PD, ilGlobalTemplateInterface\setVariable(), and ILIAS\Repository\user().
   94             'tpl.subscription_dialog.html',
   102         if ($this->cal_id > 0) {
   105         } elseif ($this->ref_id > 0) {
   108             $id = $category->getCategoryID();
   114         $url = ILIAS_HTTP_PATH . 
'/calendar.php?client_id=' . 
CLIENT_ID . 
'&token=' . $hash;
   122         $roundtrip = $this->ui_factory->modal()->roundtrip(
   123             $this->
lng->txt(
'cal_calendar_subscription_modal_title'),
   124             $this->ui_factory->legacy(
$tpl->
get())
   126         echo $this->ui_renderer->render($roundtrip);
 
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string. 
 
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)
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
ilGlobalTemplateInterface $tpl
 
 
 
 
◆ show()
  
  
      
        
          | ilCalendarSubscriptionGUI::show  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Show subscription info. 
Definition at line 52 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().
   54         $this->tpl->setOnScreenMessage(
'info', $this->
lng->txt(
'cal_subscription_info'));
    57         $info->setFormAction(
$GLOBALS[
'DIC'][
'ilCtrl']->getFormAction($this));
    59         if ($this->cal_id > 0) {
    62         } elseif ($this->ref_id > 0) {
    65             $id = $category->getCategoryID();
    72         $url = ILIAS_HTTP_PATH . 
'/calendar.php?client_id=' . 
CLIENT_ID . 
'&token=' . $hash;
    73         $info->addSection($this->
lng->txt(
"cal_subscription"));
    74         $info->addProperty($this->
lng->txt(
'cal_ical_url'), 
$url, 
$url);
    76         $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: