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