ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
41 {
42  protected $context_id;
43  protected $context_info;
44  protected $title;
45  protected $subtitle;
46  protected $description;
47  protected $information;
48  protected $location;
49  protected $start;
50  protected $end;
51  protected $fullday = false;
53 
54  protected $type;
55 
62  public function __construct($a_id)
63  {
64  $this->context_id = $a_id;
65  }
66 
71  public function setContextInfo($a_info)
72  {
73  $this->context_info = $a_info;
74  }
75 
80  public function getContextInfo()
81  {
82  return $this->context_info;
83  }
84 
91  public function setTitle($a_title)
92  {
93  $this->title = $a_title;
94  }
95 
102  public function getTitle()
103  {
104  return $this->title;
105  }
106 
116  public function setSubtitle($a_subtitle)
117  {
118  $this->subtitle = $a_subtitle;
119  }
120 
127  public function getSubtitle()
128  {
129  return $this->subtitle;
130  }
131 
138  public function setDescription($a_description)
139  {
140  $this->description = $a_description;
141  }
142 
149  public function getDescription()
150  {
151  return $this->description;
152  }
153 
160  public function setInformation($a_information)
161  {
162  $this->information = $a_information;
163  }
164 
171  public function getInformation()
172  {
173  return $this->information;
174  }
175 
183  public function setLocation($a_location)
184  {
185  $this->location = $a_location;
186  }
187 
194  public function getLocation()
195  {
196  return $this->location;
197  }
198 
206  public function setStart(ilDateTime $start)
207  {
208  $this->start = $start;
209  }
210 
217  public function getStart()
218  {
219  return $this->start;
220  }
221 
228  public function setEnd(ilDateTime $end)
229  {
230  $this->end = $end;
231  }
232 
239  public function getEnd()
240  {
241  return $this->end ? $this->end : $this->getStart();
242  }
243 
251  public function setFullday($a_fullday)
252  {
253  $this->fullday = $a_fullday;
254  }
255 
262  public function isFullday()
263  {
264  return $this->fullday;
265  }
266 
274  public function setTranslationType($a_type)
275  {
276  $this->translation_type = $a_type;
277  }
278 
286  public function getTranslationType()
287  {
289  }
290 
297  public function getContextId()
298  {
299  return $this->context_id;
300  }
301 }
const IL_CAL_TRANSLATION_SYSTEM
Apointment templates are used for automatic generated apointments.
$a_type
Definition: workflow.php:92
Date and time handling
setInformation($a_information)
set information
setDescription($a_description)
get description
setSubtitle($a_subtitle)
set subtitle Used for automatic generated appointments.