예제 #1
0
 function render($doc)
 {
     $X = parent::render($doc);
     $X->appendChild(XML_create_text_element($doc, 'href', $this->href));
     if (isset($this->refreshMode)) {
         $X->appendChild(XML_create_text_element($doc, 'refreshMode', $this->refreshMode));
     }
     if (isset($this->refreshInterval)) {
         $X->appendChild(XML_create_text_element($doc, 'refreshInterval', $this->refreshInterval));
     }
     if (isset($this->viewRefreshMode)) {
         $X->appendChild(XML_create_text_element($doc, 'viewRefreshMode', $this->viewRefreshMode));
     }
     if (isset($this->viewRefreshTime)) {
         $X->appendChild(XML_create_text_element($doc, 'viewRefreshTime', $this->viewRefreshTime));
     }
     if (isset($this->viewBoundScale)) {
         $X->appendChild(XML_create_text_element($doc, 'viewBoundScale', $this->viewBoundScale));
     }
     if (isset($this->viewFormat)) {
         $X->appendChild(XML_create_text_element($doc, 'viewFormat', $this->viewFormat));
     }
     if (isset($this->httpQuery)) {
         $X->appendChild(XML_create_text_element($doc, 'httpQuery', $this->httpQuery));
     }
     return $X;
 }
예제 #2
0
 function render($doc)
 {
     $X = parent::render($doc);
     $X->appendChild($this->LatLonAltBox->render($doc));
     if (isset($this->Lod)) {
         $X->appendChild($this->Lod->render($doc));
     }
     return $X;
 }
예제 #3
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->color)) {
         $X->appendChild(XML_create_text_element($doc, 'color', $this->color));
     }
     if (isset($this->colorMode)) {
         $X->appendChild(XML_create_text_element($doc, 'colorMode', $this->colorMode));
     }
     return $X;
 }
예제 #4
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->bgColor)) {
         $X->appendChild(XML_create_text_element($doc, 'bgColor', $this->bgColor));
     }
     if (isset($this->listItemType)) {
         $X->appendChild(XML_create_text_element($doc, 'listItemType', $this->listItemType));
     }
     if (isset($this->ItemIcon)) {
         $X->appendChild($this->ItemIcon->render($doc));
     }
     return $X;
 }
예제 #5
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->bgColor)) {
         $X->appendChild(XML_create_text_element($doc, 'bgColor', $this->bgColor));
     }
     if (isset($this->textColor)) {
         $X->appendChild(XML_create_text_element($doc, 'textColor', $this->textColor));
     }
     if (isset($this->text)) {
         $X->appendChild(XML_create_text_element($doc, 'text', $this->text));
     }
     return $X;
 }
예제 #6
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->name)) {
         $X->appendChild(XML_create_text_element($doc, 'name', $this->name));
     }
     if (isset($this->visibility)) {
         $X->appendChild(XML_create_text_element($doc, 'visibility', $this->visibility));
     }
     if (isset($this->open)) {
         $X->appendChild(XML_create_text_element($doc, 'open', $this->open));
     }
     if (isset($this->address)) {
         $X->appendChild(XML_create_text_element($doc, 'address', $this->address));
     }
     if (isset($this->addressDetails)) {
         $X->appendChild(XML_create_text_element($doc, 'addressDetails', $this->addressDetails));
     }
     if (isset($this->phoneNumber)) {
         $X->appendChild(XML_create_text_element($doc, 'phoneNumber', $this->phoneNumber));
     }
     if (isset($this->Snippet)) {
         $X->appendChild($this->Snippet->render($doc));
     }
     if (isset($this->description)) {
         $X->appendChild(XML_create_text_element($doc, 'description', $this->description));
     }
     if (isset($this->LookAt)) {
         $X->appendChild($this->LookAt->render($doc));
     }
     if (isset($this->TimePrimitive)) {
         $X->appendChild($this->TimePrimitive->render($doc));
     }
     if (isset($this->styleUrl)) {
         $X->appendChild(XML_create_text_element($doc, 'styleUrl', $this->styleUrl));
     }
     if (isset($this->StyleSelectors)) {
         foreach ($this->StyleSelectors as $ss) {
             $X->appendChild($ss->render($doc));
         }
     }
     if (isset($this->Region)) {
         $X->appendChild($this->Region->Render($doc));
     }
     return $X;
 }
예제 #7
0
 function render($doc)
 {
     $X = parent::render($doc);
     $X->appendChild(XML_create_text_element($doc, 'longitude', $this->longitude));
     $X->appendChild(XML_create_text_element($doc, 'latitude', $this->latitude));
     if (isset($this->altitude)) {
         $X->appendChild(XML_create_text_element($doc, 'altitude', $this->altitude));
     }
     $X->appendChild(XML_create_text_element($doc, 'range', $this->range));
     if (isset($this->tilt)) {
         $X->appendChild(XML_create_text_element($doc, 'tilt', $this->tilt));
     }
     if (isset($this->heading)) {
         $X->appendChild(XML_create_text_element($doc, 'heading', $this->heading));
     }
     if (isset($this->altitudeMode)) {
         $X->appendChild(XML_create_text_element($doc, 'altitudeMode', $this->altitudeMode));
     }
     return $X;
 }
예제 #8
0
 function render($doc)
 {
     $X = parent::render($doc);
     return $X;
 }