ILIAS  release_8 Revision v8.24
class.ilCalendarAppointmentTemplate.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4/*
5 +-----------------------------------------------------------------------------+
6 | ILIAS open source |
7 +-----------------------------------------------------------------------------+
8 | Copyright (c) 1998-2006 ILIAS open source, University of Cologne |
9 | |
10 | This program is free software; you can redistribute it and/or |
11 | modify it under the terms of the GNU General Public License |
12 | as published by the Free Software Foundation; either version 2 |
13 | of the License, or (at your option) any later version. |
14 | |
15 | This program is distributed in the hope that it will be useful, |
16 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18 | GNU General Public License for more details. |
19 | |
20 | You should have received a copy of the GNU General Public License |
21 | along with this program; if not, write to the Free Software |
22 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
23 +-----------------------------------------------------------------------------+
24*/
25
33{
34 protected int $context_id = 0;
35 protected string $context_info = '';
36 protected string $title = '';
37 protected string $subtitle = '';
38 protected string $description = '';
39 protected string $information = '';
40 protected string $location = '';
41 protected ?ilDateTime $start = null;
42 protected ?ilDateTime $end = null;
43 protected bool $fullday = false;
45
46 public function __construct(int $a_id)
47 {
48 $this->context_id = $a_id;
49 }
50
51 public function setContextInfo(string $a_info): void
52 {
53 $this->context_info = $a_info;
54 }
55
56 public function getContextInfo(): string
57 {
59 }
60
61 public function setTitle(string $a_title): void
62 {
63 $this->title = $a_title;
64 }
65
66 public function getTitle(): string
67 {
68 return $this->title;
69 }
70
76 public function setSubtitle(string $a_subtitle): void
77 {
78 $this->subtitle = $a_subtitle;
79 }
80
84 public function getSubtitle(): string
85 {
86 return $this->subtitle;
87 }
88
89 public function setDescription(string $a_description): void
90 {
91 $this->description = $a_description;
92 }
93
94 public function getDescription(): string
95 {
96 return $this->description;
97 }
98
99 public function setInformation(string $a_information): void
100 {
101 $this->information = $a_information;
102 }
103
104 public function getInformation(): string
105 {
106 return $this->information;
107 }
108
109 public function setLocation(string $a_location): void
110 {
111 $this->location = $a_location;
112 }
113
114 public function getLocation(): string
115 {
116 return $this->location;
117 }
118
119 public function setStart(ilDateTime $start): void
120 {
121 $this->start = $start;
122 }
123
124 public function getStart(): ?ilDateTime
125 {
126 return $this->start;
127 }
128
129 public function setEnd(ilDateTime $end): void
130 {
131 $this->end = $end;
132 }
133
137 public function getEnd(): ?ilDateTime
138 {
139 return $this->end ?: $this->getStart();
140 }
141
142 public function setFullday(bool $a_fullday): void
143 {
144 $this->fullday = $a_fullday;
145 }
146
147 public function isFullday(): bool
148 {
149 return $this->fullday;
150 }
151
152 public function setTranslationType(int $a_type): void
153 {
154 $this->translation_type = $a_type;
155 }
156
157 public function getTranslationType(): int
158 {
160 }
161
162 public function getContextId(): int
163 {
164 return $this->context_id;
165 }
166}
Apointment templates are used for automatic generated apointments.
setSubtitle(string $a_subtitle)
set subtitle Used for automatic generated appointments.
@classDescription Date and time handling