ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilCalendarAppointmentTemplate.php
Go to the documentation of this file.
1
<?
php
2
/*
3
+-----------------------------------------------------------------------------+
4
| ILIAS open source |
5
+-----------------------------------------------------------------------------+
6
| Copyright (c) 1998-2006 ILIAS open source, University of Cologne |
7
| |
8
| This program is free software; you can redistribute it and/or |
9
| modify it under the terms of the GNU General Public License |
10
| as published by the Free Software Foundation; either version 2 |
11
| of the License, or (at your option) any later version. |
12
| |
13
| This program is distributed in the hope that it will be useful, |
14
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
15
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16
| GNU General Public License for more details. |
17
| |
18
| You should have received a copy of the GNU General Public License |
19
| along with this program; if not, write to the Free Software |
20
| Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21
+-----------------------------------------------------------------------------+
22
*/
23
24
define(
'IL_CALENDAR_ACTION_CREATE'
,1);
25
define(
'IL_CALENDAR_ACTION_UPDATE'
,2);
26
define(
'IL_CALENDAR_ACTION_DELETE'
,3);
27
28
include_once(
'./Services/Calendar/classes/class.ilDate.php'
);
29
include_once(
'./Services/Calendar/classes/class.ilCalendarEntry.php'
);
30
40
class
ilCalendarAppointmentTemplate
41
{
42
protected
$context_id
;
43
protected
$title
;
44
protected
$subtitle
;
45
protected
$description
;
46
protected
$information
;
47
protected
$location
;
48
protected
$start
;
49
protected
$end
;
50
protected
$fullday
=
false
;
51
protected
$translation_type
=
IL_CAL_TRANSLATION_SYSTEM
;
52
53
protected
$type
;
54
61
public
function
__construct
($a_id)
62
{
63
$this->context_id = $a_id;
64
}
65
72
public
function
setTitle
($a_title)
73
{
74
$this->title = $a_title;
75
}
76
83
public
function
getTitle
()
84
{
85
return
$this->title
;
86
}
87
97
public
function
setSubtitle
($a_subtitle)
98
{
99
$this->subtitle = $a_subtitle;
100
}
101
108
public
function
getSubtitle
()
109
{
110
return
$this->subtitle
;
111
}
112
119
public
function
setDescription
($a_description)
120
{
121
$this->description = $a_description;
122
}
123
130
public
function
getDescription
()
131
{
132
return
$this->description
;
133
}
134
141
public
function
setInformation
($a_information)
142
{
143
$this->information = $a_information;
144
}
145
152
public
function
getInformation
()
153
{
154
return
$this->information
;
155
}
156
164
public
function
setLocation
($a_location)
165
{
166
$this->location = $a_location;
167
}
168
175
public
function
getLocation
()
176
{
177
return
$this->location
;
178
}
179
187
public
function
setStart
(
ilDateTime
$start
)
188
{
189
$this->start =
$start
;
190
}
191
198
public
function
getStart
()
199
{
200
return
$this->start
;
201
}
202
209
public
function
setEnd
(
ilDateTime
$end
)
210
{
211
$this->end =
$end
;
212
}
213
220
public
function
getEnd
()
221
{
222
return
$this->end ? $this->end : $this->
getStart
();
223
}
224
232
public
function
setFullday
($a_fullday)
233
{
234
$this->fullday = $a_fullday;
235
}
236
243
public
function
isFullday
()
244
{
245
return
$this->fullday
;
246
}
247
255
public
function
setTranslationType
(
$a_type
)
256
{
257
$this->translation_type =
$a_type
;
258
}
259
267
public
function
getTranslationType
()
268
{
269
return
$this->translation_type
;
270
}
271
278
public
function
getContextId
()
279
{
280
return
$this->context_id
;
281
}
282
283
}
284
?>
ilCalendarAppointmentTemplate\$information
$information
Definition:
class.ilCalendarAppointmentTemplate.php:46
ilCalendarAppointmentTemplate\getTranslationType
getTranslationType()
get translation type
Definition:
class.ilCalendarAppointmentTemplate.php:267
ilCalendarAppointmentTemplate\setTitle
setTitle($a_title)
set title
Definition:
class.ilCalendarAppointmentTemplate.php:72
ilCalendarAppointmentTemplate\getDescription
getDescription()
get description
Definition:
class.ilCalendarAppointmentTemplate.php:130
ilCalendarAppointmentTemplate\getSubtitle
getSubtitle()
get subtitle
Definition:
class.ilCalendarAppointmentTemplate.php:108
ilCalendarAppointmentTemplate\isFullday
isFullday()
is fullday
Definition:
class.ilCalendarAppointmentTemplate.php:243
ilCalendarAppointmentTemplate\getTitle
getTitle()
get title
Definition:
class.ilCalendarAppointmentTemplate.php:83
IL_CAL_TRANSLATION_SYSTEM
const IL_CAL_TRANSLATION_SYSTEM
Definition:
class.ilCalendarEntry.php:8
ilCalendarAppointmentTemplate\$end
$end
Definition:
class.ilCalendarAppointmentTemplate.php:49
ilCalendarAppointmentTemplate\$type
$type
Definition:
class.ilCalendarAppointmentTemplate.php:53
ilCalendarAppointmentTemplate
Apointment templates are used for automatic generated apointments.
Definition:
class.ilCalendarAppointmentTemplate.php:40
ilCalendarAppointmentTemplate\setStart
setStart(ilDateTime $start)
set start
Definition:
class.ilCalendarAppointmentTemplate.php:187
ilCalendarAppointmentTemplate\$translation_type
$translation_type
Definition:
class.ilCalendarAppointmentTemplate.php:51
ilCalendarAppointmentTemplate\getEnd
getEnd()
get end
Definition:
class.ilCalendarAppointmentTemplate.php:220
ilCalendarAppointmentTemplate\$start
$start
Definition:
class.ilCalendarAppointmentTemplate.php:48
$a_type
$a_type
Definition:
workflow.php:93
ilCalendarAppointmentTemplate\$context_id
$context_id
Definition:
class.ilCalendarAppointmentTemplate.php:42
ilCalendarAppointmentTemplate\getInformation
getInformation()
get information
Definition:
class.ilCalendarAppointmentTemplate.php:152
ilCalendarAppointmentTemplate\$fullday
$fullday
Definition:
class.ilCalendarAppointmentTemplate.php:50
ilDateTime
Date and time handling
Definition:
class.ilDateTime.php:32
ilCalendarAppointmentTemplate\__construct
__construct($a_id)
Constructor.
Definition:
class.ilCalendarAppointmentTemplate.php:61
ilCalendarAppointmentTemplate\setInformation
setInformation($a_information)
set information
Definition:
class.ilCalendarAppointmentTemplate.php:141
ilCalendarAppointmentTemplate\setTranslationType
setTranslationType($a_type)
set translation type
Definition:
class.ilCalendarAppointmentTemplate.php:255
ilCalendarAppointmentTemplate\setLocation
setLocation($a_location)
set location
Definition:
class.ilCalendarAppointmentTemplate.php:164
ilCalendarAppointmentTemplate\setEnd
setEnd(ilDateTime $end)
set end
Definition:
class.ilCalendarAppointmentTemplate.php:209
ilCalendarAppointmentTemplate\setFullday
setFullday($a_fullday)
set fullday
Definition:
class.ilCalendarAppointmentTemplate.php:232
ilCalendarAppointmentTemplate\setDescription
setDescription($a_description)
get description
Definition:
class.ilCalendarAppointmentTemplate.php:119
ilCalendarAppointmentTemplate\$subtitle
$subtitle
Definition:
class.ilCalendarAppointmentTemplate.php:44
php
ilCalendarAppointmentTemplate\$location
$location
Definition:
class.ilCalendarAppointmentTemplate.php:47
ilCalendarAppointmentTemplate\getStart
getStart()
get start
Definition:
class.ilCalendarAppointmentTemplate.php:198
ilCalendarAppointmentTemplate\getContextId
getContextId()
get context id
Definition:
class.ilCalendarAppointmentTemplate.php:278
ilCalendarAppointmentTemplate\getLocation
getLocation()
get location
Definition:
class.ilCalendarAppointmentTemplate.php:175
ilCalendarAppointmentTemplate\setSubtitle
setSubtitle($a_subtitle)
set subtitle Used for automatic generated appointments.
Definition:
class.ilCalendarAppointmentTemplate.php:97
ilCalendarAppointmentTemplate\$description
$description
Definition:
class.ilCalendarAppointmentTemplate.php:45
ilCalendarAppointmentTemplate\$title
$title
Definition:
class.ilCalendarAppointmentTemplate.php:43
Services
Calendar
classes
class.ilCalendarAppointmentTemplate.php
Generated on Fri Jan 17 2025 19:01:08 for ILIAS by
1.8.13 (using
Doxyfile
)