@@ -200,8 +200,8 @@ discard block |
||
| 200 | 200 | * |
| 201 | 201 | * @param String $action - see GoogleMapDataResponse::allowed_actions to get a list of actions |
| 202 | 202 | * @param String $title |
| 203 | - * @param float $lng - default LATITUDE |
|
| 204 | - * @param float $lat - default LONGITUDE |
|
| 203 | + * @param integer $lng - default LATITUDE |
|
| 204 | + * @param integer $lat - default LONGITUDE |
|
| 205 | 205 | * @param String $filterCode - can be a SiteTree class name, e.g. "ProductPage" |
| 206 | 206 | * filter depends on the type of action |
| 207 | 207 | * |
@@ -224,7 +224,6 @@ discard block |
||
| 224 | 224 | /** |
| 225 | 225 | * add a layer to a Google Map |
| 226 | 226 | * |
| 227 | - * @param String $action - see GoogleMapDataResponse::allowed_actions to get a list of actions |
|
| 228 | 227 | * @param String $title |
| 229 | 228 | * @param String $filterCode - can be a SiteTree class name, e.g. "ProductPage" |
| 230 | 229 | * filter depends on the type of action |
@@ -387,7 +386,7 @@ discard block |
||
| 387 | 386 | * @param String $title |
| 388 | 387 | * @param Int $lng |
| 389 | 388 | * @param Int $lat |
| 390 | - * @param String $filter |
|
| 389 | + * @param String $filterCode |
|
| 391 | 390 | * |
| 392 | 391 | * @return String |
| 393 | 392 | */ |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | /** |
| 207 | - * @return Boolean |
|
| 207 | + * @return boolean|null |
|
| 208 | 208 | */ |
| 209 | 209 | public function CanEdit($member = null) |
| 210 | 210 | { |
@@ -400,6 +400,10 @@ discard block |
||
| 400 | 400 | * @var String |
| 401 | 401 | */ |
| 402 | 402 | protected $address = ""; |
| 403 | + |
|
| 404 | + /** |
|
| 405 | + * @param string $v |
|
| 406 | + */ |
|
| 403 | 407 | public function setAddress($v) |
| 404 | 408 | { |
| 405 | 409 | $this->address = Convert::raw2js($v); |
@@ -487,6 +491,10 @@ discard block |
||
| 487 | 491 | * @var String |
| 488 | 492 | */ |
| 489 | 493 | protected $updateServerUrlAddressSearchPoint = "/googlemap/showaroundmexml/"; |
| 494 | + |
|
| 495 | + /** |
|
| 496 | + * @param string $v |
|
| 497 | + */ |
|
| 490 | 498 | public function setUpdateServerUrlAddressSearchPoint($v) |
| 491 | 499 | { |
| 492 | 500 | $this->updateServerUrlAddressSearchPoint = Director::absoluteBaseURL().$v; |
@@ -500,6 +508,10 @@ discard block |
||
| 500 | 508 | * @var String |
| 501 | 509 | */ |
| 502 | 510 | protected $updateServerUrlDragend = ""; |
| 511 | + |
|
| 512 | + /** |
|
| 513 | + * @param string $v |
|
| 514 | + */ |
|
| 503 | 515 | public function setUpdateServerUrlDragend($v) |
| 504 | 516 | { |
| 505 | 517 | $this->updateServerUrlDragend = Director::absoluteBaseURL().$v; |
@@ -460,7 +460,7 @@ |
||
| 460 | 460 | /** |
| 461 | 461 | * reduce a string by removing leading and trailing comments and whitespace |
| 462 | 462 | * |
| 463 | - * @param $str string string value to strip of comments and whitespace |
|
| 463 | + * @param string $str string string value to strip of comments and whitespace |
|
| 464 | 464 | * |
| 465 | 465 | * @return string string value stripped of comments and whitespace |
| 466 | 466 | * @access private |
@@ -226,7 +226,7 @@ |
||
| 226 | 226 | * |
| 227 | 227 | * @param Array |
| 228 | 228 | * |
| 229 | - * @return Array |
|
| 229 | + * @return string |
|
| 230 | 230 | */ |
| 231 | 231 | private static function json_encoder($content) |
| 232 | 232 | { |
@@ -325,7 +325,7 @@ |
||
| 325 | 325 | * test to see if address is found. If address if found then |
| 326 | 326 | * it will write the object, otherwise it returns null. |
| 327 | 327 | * @params array $array (optional) |
| 328 | - * @return this|null |
|
| 328 | + * @return GoogleMapLocationsObject|null |
|
| 329 | 329 | */ |
| 330 | 330 | public function findGooglePointsAndWriteIfFound($params = []) |
| 331 | 331 | { |