ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 $lng, $tpl;
50
51 $lng->loadLanguageModule("maps");
52 }
53
59 function setMapId($a_mapid)
60 {
61 $this->mapid = $a_mapid;
62 return $this;
63 }
64
70 function getMapId()
71 {
72 return $this->mapid;
73 }
74
80 function setWidth($a_width)
81 {
82 $this->width = $a_width;
83 return $this;
84 }
85
91 function getWidth()
92 {
93 return $this->width;
94 }
95
101 function setHeight($a_height)
102 {
103 $this->height = $a_height;
104 return $this;
105 }
106
112 function getHeight()
113 {
114 return $this->height;
115 }
116
122 function setLatitude($a_latitude)
123 {
124 $this->latitude = $a_latitude;
125 return $this;
126 }
127
133 function getLatitude()
134 {
135 return $this->latitude;
136 }
137
143 function setLongitude($a_longitude)
144 {
145 $this->longitude = $a_longitude;
146 return $this;
147 }
148
154 function getLongitude()
155 {
156 return $this->longitude;
157 }
158
164 function setZoom($a_zoom)
165 {
166 $this->zoom = $a_zoom;
167 return $this;
168 }
169
175 function getZoom()
176 {
177 return $this->zoom;
178 }
179
185 function setEnableTypeControl($a_enabletypecontrol)
186 {
187 $this->enabletypecontrol = $a_enabletypecontrol;
188 return $this;
189 }
190
197 {
199 }
200
206 function setEnableNavigationControl($a_enablenavigationcontrol)
207 {
208 $this->enablenavigationcontrol = $a_enablenavigationcontrol;
209 return $this;
210 }
211
218 {
220 }
221
227 function setEnableUpdateListener($a_enableupdatelistener)
228 {
229 $this->enableupdatelistener = $a_enableupdatelistener;
230 return $this;
231 }
232
239 {
241 }
242
248 function setEnableLargeMapControl($a_largemapcontrol)
249 {
250 $this->largemapcontrol = $a_largemapcontrol;
251 return $this;
252 }
253
260 {
261 return $this->largemapcontrol;
262 }
263
269 function setEnableCentralMarker($a_centralmarker)
270 {
271 $this->centralmarker = $a_centralmarker;
272 return $this;
273 }
274
281 {
282 return $this->centralmarker;
283 }
284
290 function addUserMarker($a_user_id)
291 {
292 return $this->user_marker[] = $a_user_id;
293 }
294
298 abstract function getHtml();
299
303 abstract function getUserListHtml();
304}
305?>
global $tpl
Definition: ilias.php:8
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:40