3 declare(strict_types=1);
    46         $ilUser = $DIC[
'ilUser'];
    49         $this->
user = $DIC->user();
    51         $this->
ctrl = $DIC->ctrl();
    53         $this->
lng->loadLanguageModule(
'dateplaner');
    60         $this->parentobject = $a_parentobject;
    74             "tpl.calendar_block_frame.html",
    77             "components/ILIAS/Calendar"    81             "tpl.calendar_block.html",
    84             "components/ILIAS/Calendar"    88         $ftpl->setVariable(
"BLOCK_TITLE", $this->
lng->txt(
"calendar"));
    89         $ftpl->setVariable(
"CONTENT", $tpl->
get());
   101         $a_tpl->
setVariable(
'TXT_WEEKDAY', $this->
lng->txt(
"cal_week_abbrev"));
   103         for ($i = $this->user_settings->getWeekStart(); $i < (7 + $this->user_settings->getWeekStart()); $i++) {
   110         $scheduler->calculate();
   116             $this->user_settings->getWeekStart()
   123             if (count($scheduler->getByDay($date, $this->user->getTimeZone()))) {
   125                 #$a_tpl->setVariable('TD_CLASS','calminiapp');   143             $this->
ctrl->clearParametersByClass(
'ilcalendardaygui');
   144             $this->
ctrl->setParameterByClass(
'ilcalendardaygui', 
'seed', $date->get(
IL_CAL_DATE));
   145             $a_tpl->
setVariable(
'OPEN_DAY_VIEW', $this->
ctrl->getLinkTargetByClass(
'ilcalendardaygui', 
''));
   146             $this->
ctrl->clearParametersByClass(
'ilcalendardaygui');
   151             if ($counter and !($counter % 7)) {
   160                 $this->
ctrl->clearParametersByClass(
'ilcalendarweekgui');
   161                 $this->
ctrl->setParameterByClass(
'ilcalendarweekgui', 
'seed', $date->get(
IL_CAL_DATE));
   162                 $this->
ctrl->clearParametersByClass(
'ilcalendarweekgui');
   174         $myseed = clone($this->seed);
   175         $this->
ctrl->setParameterByClass(
'ilcalendarmonthgui', 
'seed', $myseed->get(
IL_CAL_DATE));
   176         $a_tpl->
setVariable(
'OPEN_MONTH_VIEW', $this->
ctrl->getLinkTargetByClass(
'ilcalendarmonthgui', 
''));
   183             $this->
ctrl->getLinkTarget($this->getParentObject(), 
"")
   190             $this->
ctrl->getLinkTarget($this->getParentObject(), 
"")
 parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
static _buildMonthDayList(int $a_month, int $a_year, int $weekstart)
Build a month day list. 
 
__construct(ilDate $seed, object $a_par_obj)
 
static _before(ilDateTime $start, ilDateTime $end, string $a_compare_field='', string $a_tz='')
compare two dates and check start is before end This method does not consider tz offsets. 
 
ilGlobalTemplateInterface $tpl
 
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string. 
 
static _getInstanceByUserId(int $a_user_id)
 
ilCalendarUserSettings $user_settings
 
addMiniMonth(ilTemplate $a_tpl)
Add mini version of monthly overview (Maybe extracted to another class, if used in pd calendar tab...
 
setVariable($variable, $value='')
Sets a variable value. 
 
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
static _numericDayToString(int $a_day, bool $a_long=true, ilLanguage $lng=null)
 
static _equals(ilDateTime $start, ilDateTime $end, string $a_compare_field='', string $a_tz='')
Check if two date are equal. 
 
const PRESENTATION_CALENDAR
 
getHTML()
Get HTML for calendar. 
 
setParentObject(object $a_parentobject)
 
static _isToday(ilDateTime $date)
 
Represents a list of calendar appointments (including recurring events) for a specific user in a give...