Example #1
0
 public function __toString()
 {
     $parent_string = parent::__toString();
     $output = array();
     $output[] = $parent_string;
     foreach ($this->features as $feature) {
         $output[] = $feature->__toString();
     }
     return implode("\n", $output);
 }
Example #2
0
 public function __toString()
 {
     $parent_string = parent::__toString();
     $output = array();
     $output[] = sprintf("<Placemark%s>", isset($this->id) ? sprintf(" id=\"%s\"", $this->id) : "");
     $output[] = $parent_string;
     if (isset($this->geometry)) {
         $output[] = $this->geometry->__toString();
     }
     $output[] = "</Placemark>";
     return implode("\n", $output);
 }
Example #3
0
 public function __toString()
 {
     $parent_string = parent::__toString();
     $output = array();
     $output[] = $parent_string;
     if (isset($this->color)) {
         $output[] = sprintf("<color>%s</color>", $this->color);
     }
     if (isset($this->drawOrder)) {
         $output[] = sprintf("<drawOrder>%s</drawOrder>", $this->drawOrder);
     }
     if (isset($this->icon)) {
         $output[] = $this->icon->__toString();
     }
     return implode("\n", $output);
 }
Example #4
0
 public function __toString()
 {
     $parent_string = parent::__toString();
     $output = array();
     $output[] = sprintf("<NetworkLink%s>", isset($this->id) ? sprintf(" id=\"%s\"", $this->id) : "");
     $output[] = $parent_string;
     if (isset($this->refreshVisibility)) {
         $output[] = sprintf("\t<refreshVisibility>%d<refreshVisibility>", $this->refreshVisibility);
     }
     if (isset($this->flyToView)) {
         $output[] = sprintf("\t<flyToView>%d<flyToView>", $this->flyToView);
     }
     if (isset($this->link)) {
         $output[] = $this->link->__toString();
     }
     $output[] = "</NetworkLink>";
     return implode("\n", $output);
 }