function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->minRefreshPeriod)) {
         $X->appendChild(XML_create_text_element($doc, 'minRefreshPeriod', $this->minRefreshPeriod));
     }
     if (isset($this->cookie)) {
         $X->appendChild(XML_create_text_element($doc, 'cookie', $this->cookie));
     }
     if (isset($this->message)) {
         $X->appendChild(XML_create_text_element($doc, 'message', $this->message));
     }
     if (isset($this->linkName)) {
         $X->appendChild(XML_create_text_element($doc, 'linkName', $this->linkName));
     }
     if (isset($this->linkDescription)) {
         $X->appendChild(XML_create_text_element($doc, 'linkDescription', $this->linkDescription));
     }
     if (isset($this->linkSnippet)) {
         $s = XML_create_text_element($doc, 'linkSnippet', $this->linkSnippet);
         if (isset($this->linkSnippet_maxLines)) {
             $s->setAttribute('maxLines', $this->linkSnippet_maxLines);
         }
         $X->appendChild($s);
     }
     if (isset($this->expires)) {
         $X->appendChild(XML_create_text_element($doc, 'expires', $this->expires));
     }
     if (isset($this->LookAt)) {
         $X->appendChild($this->LookAt->render($doc));
     }
     return $X;
 }
예제 #2
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;
 }
예제 #3
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->scale)) {
         $X->appendChild(XML_create_text_element($doc, 'scale', $this->scale));
     }
     return $X;
 }
예제 #4
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->begin)) {
         $X->appendChild(XML_create_text_element($doc, 'begin', $this->begin));
     }
     if (isset($this->end)) {
         $X->appendChild(XML_create_text_element($doc, 'end', $this->end));
     }
     return $X;
 }
예제 #5
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->fill)) {
         $X->appendChild(XML_create_text_element($doc, 'fill', $this->fill));
     }
     if (isset($this->outline)) {
         $X->appendChild(XML_create_text_element($doc, 'outline', $this->outline));
     }
     return $X;
 }
예제 #6
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;
 }
예제 #7
0
 function render($doc)
 {
     $X = $doc->createElement($this->tagName);
     if (isset($this->code)) {
         $X->appendChild(XML_create_text_element($doc, 'code', $this->code));
     }
     if (isset($this->request)) {
         $X->appendChild(XML_create_text_element($doc, 'request', $this->request));
     }
     return $X;
 }
예제 #8
0
 function render($doc)
 {
     $X = $doc->createElement($this->tagName);
     $X->appendChild(XML_create_text_element($doc, 'targetHref', $this->targetHref));
     if (isset($this->updates)) {
         foreach ($this->updates as $u) {
             $X->appendChild($u->render($doc));
         }
     }
     return $X;
 }
예제 #9
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->key)) {
         $X->appendChild(XML_create_text_element($doc, 'key', $this->key));
     }
     if (isset($this->styleUrl)) {
         $X->appendChild(XML_create_text_element($doc, 'styleUrl', $this->styleUrl));
     }
     return $X;
 }
예제 #10
0
 function render($doc)
 {
     $X = parent::render($doc);
     $X->appendChild(XML_create_text_element($doc, 'north', $this->north));
     $X->appendChild(XML_create_text_element($doc, 'south', $this->south));
     $X->appendChild(XML_create_text_element($doc, 'east', $this->east));
     $X->appendChild(XML_create_text_element($doc, 'west', $this->west));
     if (isset($this->rotation)) {
         $X->appendChild(XML_create_text_element($doc, 'rotation', $this->rotation));
     }
     return $X;
 }
예제 #11
0
 function render($doc)
 {
     $X = parent::render($doc);
     $X->appendChild(XML_create_text_element($doc, 'targetHref', $this->targetHref));
     if (isset($this->state)) {
         $X->appendChild(XML_create_text_element($doc, 'state', $this->state));
     }
     if (isset($this->href)) {
         $X->appendChild(XML_create_text_element($doc, 'href', $this->href));
     }
     return $X;
 }
예제 #12
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->altitude)) {
         $X->appendChild(XML_create_text_element($doc, 'altitude', $this->altitude));
     }
     if (isset($this->altitudeMode)) {
         $X->appendChild(XML_create_text_element($doc, 'altitudeMode', $this->altitudeMode));
     }
     $X->appendChild($this->LatLonBox->render($doc));
     return $X;
 }
예제 #13
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;
 }
예제 #14
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->heading)) {
         $X->appendChild(XML_create_text_element($doc, 'heading', $this->heading));
     }
     if (isset($this->tilt)) {
         $X->appendChild(XML_create_text_element($doc, 'tilt', $this->tilt));
     }
     if (isset($this->roll)) {
         $X->appendChild(XML_create_text_element($doc, 'roll', $this->roll));
     }
     return $X;
 }
예제 #15
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;
 }
예제 #16
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->longitude)) {
         $X->appendChild(XML_create_text_element($doc, 'longitude', $this->longitude));
     }
     if (isset($this->latitude)) {
         $X->appendChild(XML_create_text_element($doc, 'latitude', $this->latitude));
     }
     if (isset($this->altitude)) {
         $X->appendChild(XML_create_text_element($doc, 'altitude', $this->altitude));
     }
     return $X;
 }
예제 #17
0
 function render($doc)
 {
     $X = $doc->createElement($this->tagName);
     if (isset($this->x)) {
         $X->appendChild(XML_create_text_element($doc, 'x', $this->x));
     }
     if (isset($this->y)) {
         $X->appendChild(XML_create_text_element($doc, 'y', $this->y));
     }
     if (isset($this->z)) {
         $X->appendChild(XML_create_text_element($doc, 'z', $this->z));
     }
     return $X;
 }
예제 #18
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->extrude)) {
         $X->appendChild(XML_create_text_element($doc, 'extrude', $this->extrude));
     }
     if (isset($this->tesselate)) {
         $X->appendChild(XML_create_text_element($doc, 'tesselate', $this->tesselate));
     }
     if (isset($this->altitudeMode)) {
         $X->appendChild(XML_create_text_element($doc, 'altitudeMode', $this->altitudeMode));
     }
     $X->appendChild(XML_create_text_element($doc, 'coordinates', join(',', $this->coordinates)));
     return $X;
 }
예제 #19
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->scale)) {
         $X->appendChild(XML_create_text_element($doc, 'scale', $this->scale));
     }
     if (isset($this->heading)) {
         $X->appendChild(XML_create_text_element($doc, 'heading', $this->heading));
     }
     if (isset($this->Icon)) {
         $X->appendChild($this->Icon->render($doc));
     }
     if (isset($this->hotSpot)) {
         $X->appendChild(XML_create_text_element($doc, 'hotSpot', null, $this->hotSpot));
     }
     return $X;
 }
예제 #20
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->minLodPixels)) {
         $X->appendChild(XML_create_text_element($doc, 'minLodPixels', $this->minLodPixels));
     }
     if (isset($this->maxLodPixels)) {
         $X->appendChild(XML_create_text_element($doc, 'maxLodPixels', $this->maxLodPixels));
     }
     if (isset($this->minFadeExtent)) {
         $X->appendChild(XML_create_text_element($doc, 'minFadeExtent', $this->minFadeExtent));
     }
     if (isset($this->maxFadeExtent)) {
         $X->appendChild(XML_create_text_element($doc, 'maxFadeExtent', $this->maxFadeExtent));
     }
     return $X;
 }
예제 #21
0
 function render($doc)
 {
     $X = parent::render($doc);
     $X->appendChild(XML_create_text_element($doc, 'north', $this->north));
     $X->appendChild(XML_create_text_element($doc, 'south', $this->south));
     $X->appendChild(XML_create_text_element($doc, 'east', $this->east));
     $X->appendChild(XML_create_text_element($doc, 'west', $this->west));
     if (isset($this->altitudeMode)) {
         $X->appendChild(XML_create_text_element($doc, 'altitudeMode', $this->altitudeMode));
     }
     if (isset($this->minAltitude)) {
         $X->appendChild(XML_create_text_element($doc, 'minAltitude', $this->minAltitude));
     }
     if (isset($this->maxAltitude)) {
         $X->appendChild(XML_create_text_element($doc, 'maxAltitude', $this->maxAltitude));
     }
     return $X;
 }
예제 #22
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->overlayXY)) {
         $X->appendChild(XML_create_text_element($doc, 'overlayXY', null, $this->overlayXY));
     }
     if (isset($this->screenXY)) {
         $X->appendChild(XML_create_text_element($doc, 'screenXY', null, $this->screenXY));
     }
     if (isset($this->rotationXY)) {
         $X->appendChild(XML_create_text_element($doc, 'rotationXY', null, $this->rotationXY));
     }
     if (isset($this->size)) {
         $X->appendChild(XML_create_text_element($doc, 'size', null, $this->size));
     }
     if (isset($this->rotation)) {
         $X->appendChild(XML_create_text_element($doc, 'rotation', $this->rotation));
     }
     return $X;
 }
예제 #23
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;
 }
예제 #24
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->extrude)) {
         $X->appendChild(XML_create_text_element($doc, 'extrude', $this->extrude));
     }
     if (isset($this->tesselate)) {
         $X->appendChild(XML_create_text_element($doc, 'tesselate', $this->tesselate));
     }
     if (isset($this->altitudeMode)) {
         $X->appendChild(XML_create_text_element($doc, 'altitudeMode', $this->altitudeMode));
     }
     $b = $X->appendChild($doc->createElement('outerBoundaryIs'));
     $b->appendChild($this->outerBoundaryIs->render($doc));
     if ($this->innerBoundaryIs) {
         $b = $X->appendChild($doc->createElement('innerBoundaryIs'));
         foreach ($this->innerBoundaryIs as $innerBoundaryIs) {
             $b->appendChild($innerBoundaryIs->render($doc));
         }
     }
     return $X;
 }
예제 #25
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;
 }