Repository navigation
Expand file tree
/
Copy pathclass.tx_wecmap_marker.php
More file actions
executable file
·186 lines (165 loc) · 3.89 KB
/
Copy pathclass.tx_wecmap_marker.php
File metadata and controls
executable file
·186 lines (165 loc) · 3.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?php
/***************************************************************
* Copyright notice
*
* (c) 2005-2009 Christian Technology Ministries International Inc.
* All rights reserved
*
* This file is part of the Web-Empowered Church (WEC)
* (http://WebEmpoweredChurch.org) ministry of Christian Technology Ministries
* International (http://CTMIinc.org). The WEC is developing TYPO3-based
* (http://typo3.org) free software for churches around the world. Our desire
* is to use the Internet to help offer new life through Jesus Christ. Please
* see http://WebEmpoweredChurch.org/Jesus.
*
* You can redistribute this file and/or modify it under the terms of the
* GNU General Public License as published by the Free Software Foundation;
* either version 2 of the License, or (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This file is distributed in the hope that it will be useful for ministry,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the file!
***************************************************************/
/**
* Main class for the wec_map extension. This class sits between the various
* frontend plugins and address lookup service to render map data.
*
* @author Web-Empowered Church Team <map@webempoweredchurch.org>
* @package TYPO3
* @subpackage tx_wecmap
*/
class tx_wecmap_marker {
var $index;
var $latitude;
var $longitude;
var $minzoom = 0;
var $maxzoom;
var $title;
var $description;
var $color;
var $strokeColor;
var $mapName;
var $iconID;
var $groupId = -1;
/**
* Constructor stub. See map_service classes for more details on the marker
* constructor.
*
* @return void
**/
function tx_wecmap_marker() {}
/**
* Getter for internal index for this marker.
*
* @return integer index of the marker
**/
function getIndex() {
return $this->index;
}
/**
* Getter for the marker title.
*
* @return string title of the marker
**/
function getTitle() {
return $this->title;
}
/**
* Getter for marker description
*
* @return string description of the marker
**/
function getDescription() {
return $this->description;
}
/**
* Setter for the marker title.
*
* @return void
**/
function setTitle($newTitle) {
$this->title = $newTitle;
}
/**
* Setter for marker description
*
* @return void
**/
function setDescription($newDesc) {
$this->description = $newDesc;
}
/**
* Getter for marker color
*
* @return string marker color
**/
function getColor() {
return $this->color;
}
/**
* Getter for the marker stroke color
*
* @return string marker stroke color
**/
function getStrokeColor() {
return $this->strokeColor;
}
/**
* Getter for the latitude
*
* @return float latitude
**/
function getLatitude() {
return $this->latitude;
}
/**
* Getter for the longitude
*
* @return float longitude
**/
function getLongitude() {
return $this->longitude;
}
/**
* Setter for map name this marker is a part of
*
* @return void
**/
function setMapName($mapName) {
$this->mapName = $mapName;
}
/**
* set the id of the group this marker belongs to
*
* @return void
**/
function setGroupId($id) {
$this->groupId = $id;
}
/**
* sets the minimum zoom level this marker is displayed on
*
* @return void
**/
function setMinzoom($zoom) {
$this->minzoom = $zoom;
}
/**
* sets the maximum zoom level this marker is displayed on
*
* @return void
**/
function setMaxzoom($zoom) {
$this->maxzoom = $zoom;
}
}
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/wec_map/class.tx_wecmap_marker.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/wec_map/class.tx_wecmap_marker.php']);
}
?>