ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 $title;
44  protected $subtitle;
45  protected $description;
46  protected $information;
47  protected $location;
48  protected $start;
49  protected $end;
50  protected $fullday = false;
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  {
270  }
271 
278  public function getContextId()
279  {
280  return $this->context_id;
281  }
282 
283 }
284 ?>