Definition at line 25 of file BlockDTO.php.
◆ __construct()
| ILIAS\components\Dashboard\Block\BlockDTO::__construct |
( |
private string |
$type, |
|
|
private readonly int |
$ref_id, |
|
|
private readonly int |
$obj_id, |
|
|
private string |
$title, |
|
|
private string |
$description, |
|
|
private ?ilDateTime |
$start_date = null, |
|
|
private ?ilDateTime |
$end_date = null, |
|
|
private array |
$additional_data = [] |
|
) |
| |
◆ getAdditionalData()
| ILIAS\components\Dashboard\Block\BlockDTO::getAdditionalData |
( |
| ) |
|
|
final |
Definition at line 119 of file BlockDTO.php.
119 : array
120 {
121 return $this->additional_data;
122 }
◆ getDescription()
| ILIAS\components\Dashboard\Block\BlockDTO::getDescription |
( |
| ) |
|
|
final |
Definition at line 69 of file BlockDTO.php.
69 : string
70 {
71 return $this->description;
72 }
◆ getEndDate()
| ILIAS\components\Dashboard\Block\BlockDTO::getEndDate |
( |
| ) |
|
|
final |
Definition at line 89 of file BlockDTO.php.
90 {
91 return $this->end_date;
92 }
@classDescription Date and time handling
◆ getObjId()
| ILIAS\components\Dashboard\Block\BlockDTO::getObjId |
( |
| ) |
|
|
final |
Definition at line 54 of file BlockDTO.php.
54 : int
55 {
56 return $this->obj_id;
57 }
◆ getRefId()
| ILIAS\components\Dashboard\Block\BlockDTO::getRefId |
( |
| ) |
|
|
final |
◆ getStartDate()
| ILIAS\components\Dashboard\Block\BlockDTO::getStartDate |
( |
| ) |
|
|
final |
◆ getTitle()
| ILIAS\components\Dashboard\Block\BlockDTO::getTitle |
( |
| ) |
|
|
final |
◆ getType()
| ILIAS\components\Dashboard\Block\BlockDTO::getType |
( |
| ) |
|
|
final |
◆ hasEnded()
| ILIAS\components\Dashboard\Block\BlockDTO::hasEnded |
( |
| ) |
|
|
final |
◆ hasNotStarted()
| ILIAS\components\Dashboard\Block\BlockDTO::hasNotStarted |
( |
| ) |
|
|
final |
◆ isDated()
| ILIAS\components\Dashboard\Block\BlockDTO::isDated |
( |
| ) |
|
|
final |
Definition at line 114 of file BlockDTO.php.
114 : bool
115 {
116 return $this->start_date || $this->end_date;
117 }
◆ isRunning()
| ILIAS\components\Dashboard\Block\BlockDTO::isRunning |
( |
| ) |
|
|
final |
◆ setAdditionalData()
| ILIAS\components\Dashboard\Block\BlockDTO::setAdditionalData |
( |
array |
$additional_data | ) |
|
|
final |
Definition at line 124 of file BlockDTO.php.
124 : void
125 {
126 $this->additional_data = $additional_data;
127 }
◆ setDescription()
| ILIAS\components\Dashboard\Block\BlockDTO::setDescription |
( |
string |
$description | ) |
|
|
final |
Definition at line 74 of file BlockDTO.php.
74 : void
75 {
76 $this->description = $description;
77 }
◆ setEndDate()
| ILIAS\components\Dashboard\Block\BlockDTO::setEndDate |
( |
?ilDateTime |
$end_date | ) |
|
|
final |
Definition at line 94 of file BlockDTO.php.
94 : void
95 {
96 $this->end_date = $end_date;
97 }
◆ setStartDate()
| ILIAS\components\Dashboard\Block\BlockDTO::setStartDate |
( |
?ilDateTime |
$start_date | ) |
|
|
final |
Definition at line 84 of file BlockDTO.php.
84 : void
85 {
86 $this->start_date = $start_date;
87 }
◆ setTitle()
| ILIAS\components\Dashboard\Block\BlockDTO::setTitle |
( |
string |
$title | ) |
|
|
final |
Definition at line 64 of file BlockDTO.php.
64 : void
65 {
66 $this->title = $title;
67 }
◆ setType()
| ILIAS\components\Dashboard\Block\BlockDTO::setType |
( |
string |
$type | ) |
|
|
final |
Definition at line 44 of file BlockDTO.php.
44 : void
45 {
46 $this->type = $type;
47 }
◆ toArray()
| ILIAS\components\Dashboard\Block\BlockDTO::toArray |
( |
| ) |
|
|
final |
Definition at line 129 of file BlockDTO.php.
129 : array
130 {
131 return [
132 'type' => $this->type,
134 'obj_id' => $this->obj_id,
135 'title' => $this->title,
136 'description' => $this->description,
139 'additional_data' => $this->additional_data
140 ];
141 }
References $ref_id, and IL_CAL_DATETIME.
The documentation for this class was generated from the following file: