| @@ 329-336 (lines=8) @@ | ||
| 326 | * |
|
| 327 | * @return String (XML) |
|
| 328 | */ |
|
| 329 | public function showpagepointsmapxml($request) |
|
| 330 | { |
|
| 331 | $data = GoogleMapLocationsObject::get()->filter(array("ParentID" => $this->owner->ID)); |
|
| 332 | if ($data->count()) { |
|
| 333 | return $this->makeXMLData(null, $data, $this->title, $this->title." "._t("GoogleMap.MAP", "map")); |
|
| 334 | } |
|
| 335 | return $this->showemptymap($request); |
|
| 336 | } |
|
| 337 | ||
| 338 | /** |
|
| 339 | * @param SS_HTTPRequest |
|
| @@ 343-349 (lines=7) @@ | ||
| 340 | * |
|
| 341 | * @return String (XML) |
|
| 342 | */ |
|
| 343 | public function showchildpointsmapxml($request) |
|
| 344 | { |
|
| 345 | if ($children = $this->owner->getChildrenOfType($this->owner, null)) { |
|
| 346 | return $this->makeXMLData($children, null, $this->title, $this->title." "._t("GoogleMap.MAP", "map")); |
|
| 347 | } |
|
| 348 | return $this->showemptymap($request); |
|
| 349 | } |
|
| 350 | ||
| 351 | /** |
|
| 352 | * @param SS_HTTPRequest |
|