Completed
Branch AUTOMATED_TESTING (09d9f2)
by Gordon
13:24
created
code/MapAPI.php 1 patch
Doc Comments   +28 added lines, -27 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 	 *
213 213
 	 * @param string  $googleMapKey the googleMapKey
214 214
 	 *
215
-	 * @return void
215
+	 * @return MapAPI
216 216
 	 */
217 217
 
218 218
 	public function setKey($googleMapKey) {
@@ -220,6 +220,9 @@  discard block
 block discarded – undo
220 220
 		return $this;
221 221
 	}
222 222
 
223
+	/**
224
+	 * @param boolean $inclusion
225
+	 */
223 226
 	public function setIncludeDownloadJavascript($inclusion) {
224 227
 		self::$include_download_javascript = $inclusion;
225 228
 		return $this;
@@ -253,13 +256,9 @@  discard block
 block discarded – undo
253 256
 	 * Set the useClusterer parameter (optimization to display a lot of marker)
254 257
 	 *
255 258
 	 * @param boolean $useClusterer           use cluster or not
256
-	 * @param string  $clusterIcon            the cluster icon
257
-	 * @param int     $maxVisibleMarkers      max visible markers
258 259
 	 * @param int     $gridSize               grid size
259
-	 * @param int     $minMarkersPerClusterer minMarkersPerClusterer
260
-	 * @param int     $maxLinesPerInfoBox     maxLinesPerInfoBox
261 260
 	 *
262
-	 * @return void
261
+	 * @return MapAPI
263 262
 	 */
264 263
 
265 264
 	public function setClusterer($useClusterer, $gridSize=50, $maxZoom=17,
@@ -276,7 +275,7 @@  discard block
 block discarded – undo
276 275
 	 *
277 276
 	 * @param string  $googleMapId the google div ID
278 277
 	 *
279
-	 * @return void
278
+	 * @return MapAPI
280 279
 	 */
281 280
 
282 281
 	public function setDivId($googleMapId) {
@@ -289,7 +288,7 @@  discard block
 block discarded – undo
289 288
 	 *
290 289
 	 * @param string  $googleMapDirectionId GoogleMap  Direction ID for the HTML DIV
291 290
 	 *
292
-	 * @return void
291
+	 * @return MapAPI
293 292
 	 */
294 293
 
295 294
 	public function setDirectionDivId($googleMapDirectionId) {
@@ -304,7 +303,7 @@  discard block
 block discarded – undo
304 303
 	 * @param int     $width  GoogleMap  width
305 304
 	 * @param int     $height GoogleMap  height
306 305
 	 *
307
-	 * @return void
306
+	 * @return MapAPI
308 307
 	 */
309 308
 
310 309
 	public function setSize($width, $height) {
@@ -320,7 +319,7 @@  discard block
 block discarded – undo
320 319
 	 * @param int     $iconWidth  GoogleMap  marker icon width
321 320
 	 * @param int     $iconHeight GoogleMap  marker icon height
322 321
 	 *
323
-	 * @return void
322
+	 * @return MapAPI
324 323
 	 */
325 324
 
326 325
 	public function setIconSize($iconWidth, $iconHeight) {
@@ -334,7 +333,7 @@  discard block
 block discarded – undo
334 333
 	 *
335 334
 	 * @param string  $lang GoogleMap  lang : fr,en,..
336 335
 	 *
337
-	 * @return void
336
+	 * @return MapAPI
338 337
 	 */
339 338
 
340 339
 	public function setLang($lang) {
@@ -347,7 +346,7 @@  discard block
 block discarded – undo
347 346
 	 *
348 347
 	 * @param int     $zoom GoogleMap  zoom.
349 348
 	 *
350
-	 * @return void
349
+	 * @return MapAPI
351 350
 	 */
352 351
 
353 352
 	public function setZoom($zoom) {
@@ -358,9 +357,8 @@  discard block
 block discarded – undo
358 357
 	/**
359 358
 	 * Set the zoom of the infowindow
360 359
 	 *
361
-	 * @param int     $zoom GoogleMap  zoom.
362 360
 	 *
363
-	 * @return void
361
+	 * @return MapAPI
364 362
 	 */
365 363
 
366 364
 	public function setInfoWindowZoom($infoWindowZoom) {
@@ -371,9 +369,8 @@  discard block
 block discarded – undo
371 369
 	/**
372 370
 	 * Enable the zoom on the marker when you click on it
373 371
 	 *
374
-	 * @param int     $zoom GoogleMap  zoom.
375 372
 	 *
376
-	 * @return void
373
+	 * @return MapAPI
377 374
 	 */
378 375
 
379 376
 	public function setEnableWindowZoom($enableWindowZoom) {
@@ -384,9 +381,9 @@  discard block
 block discarded – undo
384 381
 	/**
385 382
 	 * Enable theautomatic center/zoom at the gmap load
386 383
 	 *
387
-	 * @param int     $zoom GoogleMap  zoom.
388 384
 	 *
389
-	 * @return void
385
+	 * @param boolean $enableAutomaticCenterZoom
386
+	 * @return MapAPI
390 387
 	 */
391 388
 
392 389
 	public function setEnableAutomaticCenterZoom($enableAutomaticCenterZoom) {
@@ -399,7 +396,7 @@  discard block
 block discarded – undo
399 396
 	 *
400 397
 	 * @param string  $center GoogleMap  center (an address)
401 398
 	 *
402
-	 * @return void
399
+	 * @return MapAPI
403 400
 	 */
404 401
 
405 402
 	public function setCenter($center) {
@@ -412,7 +409,7 @@  discard block
 block discarded – undo
412 409
 	 *
413 410
 	 * @param string  $mapType  Can be one of road,satellite,hybrid or terrain. Defaults to road
414 411
 	 *
415
-	 * @return void
412
+	 * @return MapAPI
416 413
 	 */
417 414
 
418 415
 	public function setMapType($mapType) {
@@ -458,7 +455,7 @@  discard block
 block discarded – undo
458 455
 	 *
459 456
 	 * @param boolean $displayDirectionFields display directions or not in the info window
460 457
 	 *
461
-	 * @return void
458
+	 * @return MapAPI
462 459
 	 */
463 460
 
464 461
 	public function setDisplayDirectionFields($displayDirectionFields) {
@@ -471,7 +468,7 @@  discard block
 block discarded – undo
471 468
 	 *
472 469
 	 * @param boolean $defaultHideMarker hide all the markers on the map by default
473 470
 	 *
474
-	 * @return void
471
+	 * @return MapAPI
475 472
 	 */
476 473
 
477 474
 	public function setDefaultHideMarker($defaultHideMarker) {
@@ -555,7 +552,7 @@  discard block
 block discarded – undo
555 552
 	 * @param string  $category marker category
556 553
 	 * @param string  $icon     an icon url
557 554
 	 *
558
-	 * @return void
555
+	 * @return MapAPI
559 556
 	 */
560 557
 
561 558
 	public function addMarkerByCoords($lat, $lng, $html='', $category='', $icon='') {
@@ -579,7 +576,7 @@  discard block
 block discarded – undo
579 576
 	 * @param string  $category marker category
580 577
 	 * @param string  $icon     an icon url
581 578
 	 *
582
-	 * @return void
579
+	 * @return MapAPI
583 580
 	 */
584 581
 
585 582
 	public function addMarkerByAddress($address, $content='', $category='', $icon='') {
@@ -599,7 +596,7 @@  discard block
 block discarded – undo
599 596
 	 * @param string  $category marker category
600 597
 	 * @param string  $icon     an icon url
601 598
 	 *
602
-	 * @return void
599
+	 * @return MapAPI
603 600
 	 */
604 601
 
605 602
 	public function addArrayMarkerByCoords($coordtab, $category='', $icon='') {
@@ -681,7 +678,7 @@  discard block
 block discarded – undo
681 678
 	 * @param string  $category marker category
682 679
 	 * @param string  $icon     an icon url
683 680
 	 *
684
-	 * @return void
681
+	 * @return MapAPI
685 682
 	 */
686 683
 
687 684
 	public function addArrayMarkerByAddress($coordtab, $category='', $icon='') {
@@ -710,7 +707,7 @@  discard block
 block discarded – undo
710 707
 	 *
711 708
 	 * @param string  $url      url of the kml file compatible with gmap and gearth
712 709
 	 *
713
-	 * @return void
710
+	 * @return MapAPI
714 711
 	 */
715 712
 
716 713
 	public function addKML($url) {
@@ -870,6 +867,10 @@  discard block
 block discarded – undo
870 867
 		return $result;
871 868
 	}
872 869
 
870
+	/**
871
+	 * @param string $templateName
872
+	 * @param ArrayData $templateVariables
873
+	 */
873 874
 	function processTemplateHTML($templateName, $templateVariables = null ) {
874 875
 		if (!$templateVariables) {
875 876
 			$templateVariables = new ArrayList();
Please login to merge, or discard this patch.
code/MapExtension.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
 
185 185
 	/**
186 186
 	 * Access the map editing field for the purpose of adding guide points
187
-	 * @return [LatLongField] instance of location editing field
187
+	 * @return FormField instance of location editing field
188 188
 	 */
189 189
 	public function getMapField() {
190 190
 		if (!isset($this->mapField)) {
Please login to merge, or discard this patch.
code/LatLongField.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@
 block discarded – undo
19 19
 
20 20
 	private static $ctr = 0;
21 21
 
22
+	/**
23
+	 * @param string[] $buttonText
24
+	 */
22 25
 	public function __construct($children = array(), $buttonText = null) {
23 26
 		self::$ctr++;
24 27
 
Please login to merge, or discard this patch.
code/MapField.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -10,6 +10,10 @@
 block discarded – undo
10 10
 		protected $headingLevel = 2;
11 11
 		private $divId;
12 12
 
13
+		/**
14
+		 * @param string $name
15
+		 * @param string $title
16
+		 */
13 17
 		function __construct($name, $title = null, $headingLevel = 2, $allowHTML = false, $form = null) {
14 18
 			$this->divId = $name;
15 19
 				// legacy handling for old parameters: $title, $heading, ...
Please login to merge, or discard this patch.
code/MapUtil.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,6 +79,9 @@  discard block
 block discarded – undo
79 79
 	}
80 80
 
81 81
 
82
+	/**
83
+	 * @param boolean $new_map_already_rendered
84
+	 */
82 85
 	public static function set_map_already_rendered($new_map_already_rendered) {
83 86
 		self::$map_already_rendered = $new_map_already_rendered;
84 87
 	}
@@ -155,7 +158,7 @@  discard block
 block discarded – undo
155 158
 	/**
156 159
 	 * Get a new GoogleMapAPI object and load it with the default settings
157 160
 	 *
158
-	 * @return GoogleMapAPI
161
+	 * @return MapAPI
159 162
 	 */
160 163
 	public static function instance()
161 164
 	{
Please login to merge, or discard this patch.