ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilCalendarAppointmentTemplate.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
27{
28 protected int $context_id = 0;
29 protected string $context_info = '';
30 protected string $title = '';
31 protected string $subtitle = '';
32 protected string $description = '';
33 protected string $information = '';
34 protected string $location = '';
35 protected ?ilDateTime $start = null;
36 protected ?ilDateTime $end = null;
37 protected bool $fullday = false;
39
40 public function __construct(int $a_id)
41 {
42 $this->context_id = $a_id;
43 }
44
45 public function setContextInfo(string $a_info): void
46 {
47 $this->context_info = $a_info;
48 }
49
50 public function getContextInfo(): string
51 {
53 }
54
55 public function setTitle(string $a_title): void
56 {
57 $this->title = $a_title;
58 }
59
60 public function getTitle(): string
61 {
62 return $this->title;
63 }
64
70 public function setSubtitle(string $a_subtitle): void
71 {
72 $this->subtitle = $a_subtitle;
73 }
74
78 public function getSubtitle(): string
79 {
80 return $this->subtitle;
81 }
82
83 public function setDescription(string $a_description): void
84 {
85 $this->description = $a_description;
86 }
87
88 public function getDescription(): string
89 {
90 return $this->description;
91 }
92
93 public function setInformation(string $a_information): void
94 {
95 $this->information = $a_information;
96 }
97
98 public function getInformation(): string
99 {
100 return $this->information;
101 }
102
103 public function setLocation(string $a_location): void
104 {
105 $this->location = $a_location;
106 }
107
108 public function getLocation(): string
109 {
110 return $this->location;
111 }
112
113 public function setStart(ilDateTime $start): void
114 {
115 $this->start = $start;
116 }
117
118 public function getStart(): ?ilDateTime
119 {
120 return $this->start;
121 }
122
123 public function setEnd(ilDateTime $end): void
124 {
125 $this->end = $end;
126 }
127
131 public function getEnd(): ?ilDateTime
132 {
133 return $this->end ?: $this->getStart();
134 }
135
136 public function setFullday(bool $a_fullday): void
137 {
138 $this->fullday = $a_fullday;
139 }
140
141 public function isFullday(): bool
142 {
143 return $this->fullday;
144 }
145
146 public function setTranslationType(int $a_type): void
147 {
148 $this->translation_type = $a_type;
149 }
150
151 public function getTranslationType(): int
152 {
154 }
155
156 public function getContextId(): int
157 {
158 return $this->context_id;
159 }
160}
Apointment templates are used for automatic generated apointments.
setSubtitle(string $a_subtitle)
set subtitle Used for automatic generated appointments.
@classDescription Date and time handling