ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilMapGUI.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
33abstract class ilMapGUI
34{
35 protected $mapid; // string
36 protected $width = "500px"; // string
37 protected $height = "300px"; // string
38 protected $latitude; // string
39 protected $longitude;
40 protected $zoom;
41 protected $enabletypecontrol = false;
42 protected $enableupdatelistener = false;
43 protected $enablenavigationcontrol = false;
44 protected $enablelargemapcontrol = false;
45 protected $user_marker = array();
46
47 function __construct()
48 {
49 global $DIC;
50 $lng = $DIC['lng'];
51 $tpl = $DIC['tpl'];
52
53 $lng->loadLanguageModule("maps");
54 }
55
61 function setMapId($a_mapid)
62 {
63 $this->mapid = $a_mapid;
64 return $this;
65 }
66
72 function getMapId()
73 {
74 return $this->mapid;
75 }
76
82 function setWidth($a_width)
83 {
84 $this->width = $a_width;
85 return $this;
86 }
87
93 function getWidth()
94 {
95 return $this->width;
96 }
97
103 function setHeight($a_height)
104 {
105 $this->height = $a_height;
106 return $this;
107 }
108
114 function getHeight()
115 {
116 return $this->height;
117 }
118
124 function setLatitude($a_latitude)
125 {
126 $this->latitude = $a_latitude;
127 return $this;
128 }
129
135 function getLatitude()
136 {
137 return $this->latitude;
138 }
139
145 function setLongitude($a_longitude)
146 {
147 $this->longitude = $a_longitude;
148 return $this;
149 }
150
156 function getLongitude()
157 {
158 return $this->longitude;
159 }
160
166 function setZoom($a_zoom)
167 {
168 $this->zoom = $a_zoom;
169 return $this;
170 }
171
177 function getZoom()
178 {
179 return $this->zoom;
180 }
181
187 function setEnableTypeControl($a_enabletypecontrol)
188 {
189 $this->enabletypecontrol = $a_enabletypecontrol;
190 return $this;
191 }
192
199 {
201 }
202
208 function setEnableNavigationControl($a_enablenavigationcontrol)
209 {
210 $this->enablenavigationcontrol = $a_enablenavigationcontrol;
211 return $this;
212 }
213
220 {
222 }
223
229 function setEnableUpdateListener($a_enableupdatelistener)
230 {
231 $this->enableupdatelistener = $a_enableupdatelistener;
232 return $this;
233 }
234
241 {
243 }
244
250 function setEnableLargeMapControl($a_largemapcontrol)
251 {
252 $this->largemapcontrol = $a_largemapcontrol;
253 return $this;
254 }
255
262 {
263 return $this->largemapcontrol;
264 }
265
271 function setEnableCentralMarker($a_centralmarker)
272 {
273 $this->centralmarker = $a_centralmarker;
274 return $this;
275 }
276
283 {
284 return $this->centralmarker;
285 }
286
292 function addUserMarker($a_user_id)
293 {
294 return $this->user_marker[] = $a_user_id;
295 }
296
300 abstract function getHtml();
301
305 abstract function getUserListHtml();
306}
307?>
global $tpl
Definition: ilias.php:8
An exception for terminatinating execution or to throw for unit testing.
User interface class for maps.
getMapId()
Get Map ID.
addUserMarker($a_user_id)
Add user marker.
setWidth($a_width)
Set Width.
getWidth()
Get Width.
setLongitude($a_longitude)
Set Longitude.
getEnableCentralMarker()
Get Enable Central Marker.
setEnableLargeMapControl($a_largemapcontrol)
Set Large Map Control.
getHeight()
Get Height.
getLongitude()
Get Longitude.
setEnableTypeControl($a_enabletypecontrol)
Set Use Map Type Control.
getHtml()
Get HTML.
getEnableTypeControl()
Get Use Map Type Control.
getEnableLargeMapControl()
Get Large Map Control.
getEnableNavigationControl()
Get Use Navigation Control.
getUserListHtml()
Get User List HTML (to be displayed besides the map)
setZoom($a_zoom)
Set Zoom.
setEnableNavigationControl($a_enablenavigationcontrol)
Set Use Navigation Control.
getLatitude()
Get Latitude.
setEnableUpdateListener($a_enableupdatelistener)
Set Activate Update Listener.
setMapId($a_mapid)
Set Map ID.
setEnableCentralMarker($a_centralmarker)
Enable Central Marker.
setHeight($a_height)
Set Height.
getZoom()
Get Zoom.
$enablenavigationcontrol
getEnableUpdateListener()
Get Activate Update Listener.
setLatitude($a_latitude)
Set Latitude.
global $lng
Definition: privfeed.php:17
global $DIC