19 declare(strict_types=1);
31 private string $title,
32 private string $description,
35 private array $additional_data = []
39 $this->obj_id = $obj_id;
40 $this->title = $title;
41 $this->description = $description;
42 $this->startDate = $startDate;
43 $this->endDate = $endDate;
44 $this->additional_data = $additional_data;
52 public function setType(
string $type): void
74 $this->obj_id = $obj_id;
84 $this->title = $title;
89 return $this->description;
94 $this->description = $description;
99 return $this->startDate;
104 $this->startDate = $startDate;
109 return $this->endDate;
114 $this->endDate = $endDate;
119 return $this->startDate && $this->startDate->get(
IL_CAL_UNIX) > time();
124 return $this->endDate && $this->endDate->get(
IL_CAL_UNIX) < time();
134 return $this->startDate || $this->endDate;
139 return $this->additional_data;
144 $this->additional_data = $additional_data;
150 'type' => $this->type,
152 'obj_id' => $this->obj_id,
153 'title' => $this->title,
154 'description' => $this->description,
157 'additional_data' => $this->additional_data
__construct(private string $type, private int $ref_id, private int $obj_id, private string $title, private string $description, private ?ilDateTime $startDate=null, private ?ilDateTime $endDate=null, private array $additional_data=[])
setAdditionalData(array $additional_data)
setEndDate(?ilDateTime $endDate)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
setStartDate(?ilDateTime $startDate)
setDescription(string $description)