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