ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilPDCalendarBlockGUI.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
30
class
ilPDCalendarBlockGUI
extends
ilCalendarBlockGUI
31
{
32
public
static
string
$block_type
=
"pdcal"
;
33
protected
bool
$initialized
=
false
;
34
38
public
function
__construct
()
39
{
40
parent::__construct
();
41
$this->
setBlockId
(
'0'
);
42
}
43
47
public
function
getBlockType
(): string
48
{
49
return
self::$block_type;
50
}
51
55
protected
function
initCategories
(): void
56
{
57
if
(!$this->initialized) {
58
if
(
ilCalendarUserSettings::_getInstance
()->getCalendarSelectionType() ==
ilCalendarUserSettings::CAL_SELECTION_MEMBERSHIP
) {
59
$this->mode =
ilCalendarCategories::MODE_PERSONAL_DESKTOP_MEMBERSHIP
;
60
}
else
{
61
$this->mode =
ilCalendarCategories::MODE_PERSONAL_DESKTOP_ITEMS
;
62
}
63
64
$cats =
\ilCalendarCategories::_getInstance
();
65
if
($this->
getForceMonthView
()) {
66
// nothing to do here
67
} elseif (!$cats->getMode()) {
68
$cats->initialize($this->mode, (
int
) $this->requested_ref_id,
true
);
69
}
70
}
71
$this->initialized =
true
;
72
}
73
77
public
function
returnToUpperContext
(): void
78
{
79
$this->
ctrl
->redirectByClass(
"ildashboardgui"
,
"show"
);
80
}
81
}
ilBlockGUI\setBlockId
setBlockId(string $a_block_id="0")
Definition:
class.ilBlockGUI.php:168
ilCalendarCategories\MODE_PERSONAL_DESKTOP_MEMBERSHIP
const MODE_PERSONAL_DESKTOP_MEMBERSHIP
Definition:
class.ilCalendarCategories.php:33
ilPDCalendarBlockGUI\initCategories
initCategories()
Definition:
class.ilPDCalendarBlockGUI.php:55
ilCalendarUserSettings\CAL_SELECTION_MEMBERSHIP
const CAL_SELECTION_MEMBERSHIP
Definition:
class.ilCalendarUserSettings.php:29
ilPDCalendarBlockGUI
Calendar blocks, displayed on personal desktop.
Definition:
class.ilPDCalendarBlockGUI.php:30
ilPDCalendarBlockGUI\returnToUpperContext
returnToUpperContext()
Definition:
class.ilPDCalendarBlockGUI.php:77
ILIAS\Repository\ctrl
ctrl()
Definition:
trait.GlobalDICGUIServices.php:63
ilCalendarBlockGUI\getForceMonthView
getForceMonthView()
Definition:
class.ilCalendarBlockGUI.php:199
ilCalendarUserSettings\_getInstance
static _getInstance()
Definition:
class.ilCalendarUserSettings.php:77
ilPDCalendarBlockGUI\__construct
__construct()
Definition:
class.ilPDCalendarBlockGUI.php:38
ilCalendarCategories\_getInstance
static _getInstance($a_usr_id=0)
get singleton instance
Definition:
class.ilCalendarCategories.php:89
ilPDCalendarBlockGUI\$block_type
static string $block_type
Definition:
class.ilPDCalendarBlockGUI.php:32
ilCalendarBlockGUI
Calendar blocks, displayed in different contexts, e.g.
Definition:
class.ilCalendarBlockGUI.php:33
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
ilPDCalendarBlockGUI\getBlockType
getBlockType()
Definition:
class.ilPDCalendarBlockGUI.php:47
ilPDCalendarBlockGUI\$initialized
bool $initialized
Definition:
class.ilPDCalendarBlockGUI.php:33
ilCalendarCategories\MODE_PERSONAL_DESKTOP_ITEMS
const MODE_PERSONAL_DESKTOP_ITEMS
Definition:
class.ilCalendarCategories.php:34
components
ILIAS
Calendar
classes
class.ilPDCalendarBlockGUI.php
Generated on Sun Aug 31 2025 23:02:28 for ILIAS by
1.8.13 (using
Doxyfile
)