public function __toString() { $parent_string = parent::__toString(); $output = array(); $output[] = sprintf("<PhotoOverlay%s>", isset($this->id) ? sprintf(" id=\"%s\"", $this->id) : ""); $output[] = $parent_string; $output[] = "</PhotoOverlay>"; return implode("\n", $output); }
public function __toString() { $parent_string = parent::__toString(); $output = array(); $output[] = sprintf("<GroundOverlay%s>", isset($this->id) ? sprintf(" id=\"%s\"", $this->id) : ""); $output[] = $parent_string; if (isset($this->altitude)) { $output[] = sprintf("\t<altitude>%f</altitude>", $this->altitude); } if (isset($this->altitudeMode)) { $output[] = $this->altitudeMode->__toString(); } if (isset($this->latLonBox)) { $output[] = $this->latLonBox->__toString(); } $output[] = "</GroundOverlay>"; return implode("\n", $output); }
public function __toString() { $parent_string = parent::__toString(); $output = array(); $output[] = sprintf("<ScreenOverlay%s>", isset($this->id) ? sprintf(" id=\"%s\"", $this->id) : ""); $output[] = $parent_string; if (isset($this->rotation)) { $output[] = sprintf("\t<rotation>%s</rotation>", $this->rotation); } if (isset($this->overlayXY)) { $output[] = sprintf("\t<overlayXY %s />", (string) $this->overlayXY); } if (isset($this->screenXY)) { $output[] = sprintf("\t<screenXY %s />", (string) $this->screenXY); } if (isset($this->rotationXY)) { $output[] = sprintf("\t<rotationXY %s />", (string) $this->rotationXY); } if (isset($this->size)) { $output[] = sprintf("\t<size %s />", (string) $this->size); } $output[] = "</ScreenOverlay>"; return implode("\n", $output); }