ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilPDCalendarBlockGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 include_once("Services/Calendar/classes/class.ilCalendarBlockGUI.php");
6 
21 {
22  public static $block_type = "pdcal";
23 
27  public function __construct()
28  {
29  parent::__construct(true);
30  $this->allow_moving = true;
31  $this->setBlockId(0);
32  // fix 21445
33  $this->handleDetailLevel();
34  }
35 
39  //TODO execute command.
40  /*
41  function executeCommand()
42  {
43  global $ilCtrl;
44 
45  $next_class = $ilCtrl->getNextClass();
46 
47  switch ($next_class)
48  {
49  case "ilcalendarappointmentpresentationgui":
50  include_once('./Services/Calendar/classes/class.ilCalendarAppointmentPresentationGUI.php');
51  $presentation = ilCalendarAppointmentPresentationGUI::_getInstance($this->seed, $this->appointment);
52  $ilCtrl->forwardCommand($presentation);
53  break;
54  }
55  }*/
56 
62  public static function getBlockType()
63  {
64  return self::$block_type;
65  }
66 
74  protected function initCategories()
75  {
76  include_once './Services/Calendar/classes/class.ilCalendarUserSettings.php';
79  } else {
81  }
82 
83  if (!$this->getForceMonthView()) {
84  include_once('./Services/Calendar/classes/class.ilCalendarCategories.php');
85  ilCalendarCategories::_getInstance()->initialize($this->mode, (int) $_GET['ref_id'], true);
86  }
87  }
88 
92  public function returnToUpperContext()
93  {
94  global $ilCtrl;
95 
96  $ilCtrl->redirectByClass("ilpersonaldesktopgui", "show");
97  }
98 }
static getBlockType()
execute command
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
Calendar blocks, displayed on personal desktop.
returnToUpperContext()
Return to upper context.
getForceMonthView()
Get force month view.
setBlockId($a_block_id=0)
Set Block Id.
static _getInstance()
get instance for logged in user
static _getInstance($a_usr_id=0)
get singleton instance
handleDetailLevel()
Handle read/write current detail level.
Calendar blocks, displayed in different contexts, e.g.