ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilMapGUI Class Reference

User interface class for maps. More...

+ Inheritance diagram for ilMapGUI:
+ Collaboration diagram for ilMapGUI:

Public Member Functions

 __construct ()
 
 setMapId (string $map_id)
 
 getMapId ()
 
 setWidth (string $width)
 
 getWidth ()
 
 setHeight (string $height)
 
 getHeight ()
 
 setLatitude (string $latitude)
 
 getLatitude ()
 
 setLongitude (string $longitude)
 
 getLongitude ()
 
 setZoom (?int $zoom)
 
 getZoom ()
 
 setEnableTypeControl (bool $enable_type_control)
 
 getEnableTypeControl ()
 
 setEnableNavigationControl (bool $enable_navigation_control)
 
 getEnableNavigationControl ()
 
 setEnableUpdateListener (bool $enable_update_listener)
 
 getEnableUpdateListener ()
 
 setEnableLargeMapControl (bool $large_map_control)
 
 getEnableLargeMapControl ()
 
 setEnableCentralMarker (bool $central_marker)
 
 getEnableCentralMarker ()
 
 addUserMarker (int $user_id)
 
 getHtml ()
 
 getUserListHtml ()
 Get User List HTML (to be displayed besides the map) More...
 

Protected Attributes

ilGlobalTemplateInterface $tpl
 
ilLanguage $lng
 
string $map_id
 
string $width
 
string $height
 
string $latitude
 
string $longitude
 
int $zoom
 
bool $enable_type_control
 
bool $enable_update_listener
 
bool $enable_navigation_control
 
array $user_marker
 
bool $large_map_control
 
bool $central_marker
 

Detailed Description

User interface class for maps.

Definition at line 10 of file class.ilMapGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilMapGUI::__construct ( )

Definition at line 28 of file class.ilMapGUI.php.

References $DIC, and ILIAS\Repository\lng().

29  {
30  global $DIC;
31  $this->lng = $DIC['lng'];
32  $this->tpl = $DIC['tpl'];
33 
34  $this->lng->loadLanguageModule("maps");
35 
36  $this->map_id = "";
37  $this->width = "500px";
38  $this->height = "300px";
39  $this->latitude = "";
40  $this->longitude = "";
41  $this->zoom = null;
42  $this->enable_type_control = false;
43  $this->enable_update_listener = false;
44  $this->enable_navigation_control = false;
45  $this->user_marker = [];
46  $this->large_map_control = false;
47  $this->central_marker = false;
48  }
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

Member Function Documentation

◆ addUserMarker()

ilMapGUI::addUserMarker ( int  $user_id)

Definition at line 171 of file class.ilMapGUI.php.

References getHtml(), and getUserListHtml().

171  : ilMapGUI
172  {
173  $this->user_marker[] = $user_id;
174  return $this;
175  }
User interface class for maps.
+ Here is the call graph for this function:

◆ getEnableCentralMarker()

ilMapGUI::getEnableCentralMarker ( )

Definition at line 166 of file class.ilMapGUI.php.

References $central_marker.

Referenced by ilGoogleMapGUI\getHtml(), and ilOpenLayersMapGUI\getHtml().

166  : bool
167  {
168  return $this->central_marker;
169  }
bool $central_marker
+ Here is the caller graph for this function:

◆ getEnableLargeMapControl()

ilMapGUI::getEnableLargeMapControl ( )

Definition at line 155 of file class.ilMapGUI.php.

References $large_map_control.

Referenced by ilGoogleMapGUI\getHtml().

155  : bool
156  {
158  }
bool $large_map_control
+ Here is the caller graph for this function:

◆ getEnableNavigationControl()

ilMapGUI::getEnableNavigationControl ( )

Definition at line 133 of file class.ilMapGUI.php.

References $enable_navigation_control.

Referenced by ilGoogleMapGUI\getHtml(), and ilOpenLayersMapGUI\getHtml().

133  : bool
134  {
136  }
bool $enable_navigation_control
+ Here is the caller graph for this function:

◆ getEnableTypeControl()

ilMapGUI::getEnableTypeControl ( )

Definition at line 122 of file class.ilMapGUI.php.

References $enable_type_control.

Referenced by ilGoogleMapGUI\getHtml().

122  : bool
123  {
125  }
bool $enable_type_control
+ Here is the caller graph for this function:

◆ getEnableUpdateListener()

ilMapGUI::getEnableUpdateListener ( )

Definition at line 144 of file class.ilMapGUI.php.

References $enable_update_listener.

Referenced by ilGoogleMapGUI\getHtml(), and ilOpenLayersMapGUI\getHtml().

144  : bool
145  {
147  }
bool $enable_update_listener
+ Here is the caller graph for this function:

◆ getHeight()

ilMapGUI::getHeight ( )

Definition at line 78 of file class.ilMapGUI.php.

References $height.

Referenced by ilGoogleMapGUI\getHtml(), and ilOpenLayersMapGUI\getHtml().

78  : string
79  {
80  return $this->height;
81  }
string $height
+ Here is the caller graph for this function:

◆ getHtml()

ilMapGUI::getHtml ( )
abstract

Referenced by addUserMarker().

+ Here is the caller graph for this function:

◆ getLatitude()

ilMapGUI::getLatitude ( )

Definition at line 89 of file class.ilMapGUI.php.

References $latitude.

Referenced by ilGoogleMapGUI\getHtml(), and ilOpenLayersMapGUI\getHtml().

89  : string
90  {
91  return $this->latitude;
92  }
string $latitude
+ Here is the caller graph for this function:

◆ getLongitude()

ilMapGUI::getLongitude ( )

Definition at line 100 of file class.ilMapGUI.php.

References $longitude.

Referenced by ilGoogleMapGUI\getHtml(), and ilOpenLayersMapGUI\getHtml().

100  : string
101  {
102  return $this->longitude;
103  }
string $longitude
+ Here is the caller graph for this function:

◆ getMapId()

ilMapGUI::getMapId ( )

Definition at line 56 of file class.ilMapGUI.php.

References $map_id.

Referenced by ilGoogleMapGUI\getHtml(), ilOpenLayersMapGUI\getHtml(), ilGoogleMapGUI\getUserListHtml(), and ilOpenLayersMapGUI\getUserListHtml().

56  : string
57  {
58  return $this->map_id;
59  }
string $map_id
+ Here is the caller graph for this function:

◆ getUserListHtml()

ilMapGUI::getUserListHtml ( )
abstract

Get User List HTML (to be displayed besides the map)

Referenced by addUserMarker().

+ Here is the caller graph for this function:

◆ getWidth()

ilMapGUI::getWidth ( )

Definition at line 67 of file class.ilMapGUI.php.

References $width.

Referenced by ilGoogleMapGUI\getHtml(), and ilOpenLayersMapGUI\getHtml().

67  : string
68  {
69  return $this->width;
70  }
string $width
+ Here is the caller graph for this function:

◆ getZoom()

ilMapGUI::getZoom ( )

Definition at line 111 of file class.ilMapGUI.php.

References $zoom.

Referenced by ilGoogleMapGUI\getHtml(), and ilOpenLayersMapGUI\getHtml().

111  : ?int
112  {
113  return $this->zoom;
114  }
+ Here is the caller graph for this function:

◆ setEnableCentralMarker()

ilMapGUI::setEnableCentralMarker ( bool  $central_marker)

Definition at line 160 of file class.ilMapGUI.php.

References $central_marker.

160  : ilMapGUI
161  {
162  $this->central_marker = $central_marker;
163  return $this;
164  }
bool $central_marker
User interface class for maps.

◆ setEnableLargeMapControl()

ilMapGUI::setEnableLargeMapControl ( bool  $large_map_control)

Definition at line 149 of file class.ilMapGUI.php.

References $large_map_control.

149  : ilMapGUI
150  {
151  $this->large_map_control = $large_map_control;
152  return $this;
153  }
bool $large_map_control
User interface class for maps.

◆ setEnableNavigationControl()

ilMapGUI::setEnableNavigationControl ( bool  $enable_navigation_control)

Definition at line 127 of file class.ilMapGUI.php.

References $enable_navigation_control.

127  : ilMapGUI
128  {
129  $this->enable_navigation_control = $enable_navigation_control;
130  return $this;
131  }
bool $enable_navigation_control
User interface class for maps.

◆ setEnableTypeControl()

ilMapGUI::setEnableTypeControl ( bool  $enable_type_control)

Definition at line 116 of file class.ilMapGUI.php.

References $enable_type_control.

116  : ilMapGUI
117  {
118  $this->enable_type_control = $enable_type_control;
119  return $this;
120  }
bool $enable_type_control
User interface class for maps.

◆ setEnableUpdateListener()

ilMapGUI::setEnableUpdateListener ( bool  $enable_update_listener)

Definition at line 138 of file class.ilMapGUI.php.

References $enable_update_listener.

138  : ilMapGUI
139  {
140  $this->enable_update_listener = $enable_update_listener;
141  return $this;
142  }
bool $enable_update_listener
User interface class for maps.

◆ setHeight()

ilMapGUI::setHeight ( string  $height)

Definition at line 72 of file class.ilMapGUI.php.

References $height.

72  : ilMapGUI
73  {
74  $this->height = $height;
75  return $this;
76  }
string $height
User interface class for maps.

◆ setLatitude()

ilMapGUI::setLatitude ( string  $latitude)

Definition at line 83 of file class.ilMapGUI.php.

References $latitude.

83  : ilMapGUI
84  {
85  $this->latitude = $latitude;
86  return $this;
87  }
string $latitude
User interface class for maps.

◆ setLongitude()

ilMapGUI::setLongitude ( string  $longitude)

Definition at line 94 of file class.ilMapGUI.php.

References $longitude.

94  : ilMapGUI
95  {
96  $this->longitude = $longitude;
97  return $this;
98  }
User interface class for maps.
string $longitude

◆ setMapId()

ilMapGUI::setMapId ( string  $map_id)

Definition at line 50 of file class.ilMapGUI.php.

References $map_id.

50  : ilMapGUI
51  {
52  $this->map_id = $map_id;
53  return $this;
54  }
string $map_id
User interface class for maps.

◆ setWidth()

ilMapGUI::setWidth ( string  $width)

Definition at line 61 of file class.ilMapGUI.php.

References $width.

61  : ilMapGUI
62  {
63  $this->width = $width;
64  return $this;
65  }
string $width
User interface class for maps.

◆ setZoom()

ilMapGUI::setZoom ( ?int  $zoom)

Definition at line 105 of file class.ilMapGUI.php.

References $zoom.

105  : ilMapGUI
106  {
107  $this->zoom = $zoom;
108  return $this;
109  }
User interface class for maps.

Field Documentation

◆ $central_marker

bool ilMapGUI::$central_marker
protected

◆ $enable_navigation_control

bool ilMapGUI::$enable_navigation_control
protected

Definition at line 22 of file class.ilMapGUI.php.

Referenced by getEnableNavigationControl(), and setEnableNavigationControl().

◆ $enable_type_control

bool ilMapGUI::$enable_type_control
protected

Definition at line 20 of file class.ilMapGUI.php.

Referenced by getEnableTypeControl(), and setEnableTypeControl().

◆ $enable_update_listener

bool ilMapGUI::$enable_update_listener
protected

Definition at line 21 of file class.ilMapGUI.php.

Referenced by getEnableUpdateListener(), and setEnableUpdateListener().

◆ $height

string ilMapGUI::$height
protected

Definition at line 16 of file class.ilMapGUI.php.

Referenced by getHeight(), and setHeight().

◆ $large_map_control

bool ilMapGUI::$large_map_control
protected

◆ $latitude

string ilMapGUI::$latitude
protected

Definition at line 17 of file class.ilMapGUI.php.

Referenced by getLatitude(), and setLatitude().

◆ $lng

ilLanguage ilMapGUI::$lng
protected

Definition at line 13 of file class.ilMapGUI.php.

◆ $longitude

string ilMapGUI::$longitude
protected

Definition at line 18 of file class.ilMapGUI.php.

Referenced by getLongitude(), and setLongitude().

◆ $map_id

string ilMapGUI::$map_id
protected

Definition at line 14 of file class.ilMapGUI.php.

Referenced by getMapId(), and setMapId().

◆ $tpl

ilGlobalTemplateInterface ilMapGUI::$tpl
protected

Definition at line 12 of file class.ilMapGUI.php.

◆ $user_marker

array ilMapGUI::$user_marker
protected

Definition at line 24 of file class.ilMapGUI.php.

◆ $width

string ilMapGUI::$width
protected

Definition at line 15 of file class.ilMapGUI.php.

Referenced by getWidth(), and setWidth().

◆ $zoom

int ilMapGUI::$zoom
protected

Definition at line 19 of file class.ilMapGUI.php.

Referenced by getZoom(), and setZoom().


The documentation for this class was generated from the following file: