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;
 }
Example #2
0
 function kml_Status($code = null, $request = null)
 {
     parent::kml_root();
     if ($code !== null) {
         $this->set_x($code);
     }
     if ($request !== null) {
         $this->set_y($request);
     }
 }
Example #3
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;
 }
Example #4
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->name)) {
         $X->setAttribute('name', $this->name);
     }
     if (isset($this->type)) {
         $X->setAttribute('type', $this->type);
     }
     return $X;
 }
Example #5
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->Snippet)) {
         $X->appendChild($doc->create_text_node($this->Snippet));
     }
     if (isset($this->maxLines)) {
         $X->setAttribute('maxLines', $this->maxLines);
     }
     return $X;
 }
Example #6
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->id)) {
         $X->setAttribute('id', $this->id);
     }
     if (isset($this->targetId)) {
         $X->setAttribute('targetId', $this->targetId);
     }
     return $X;
 }
Example #7
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;
 }
Example #8
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;
 }
Example #9
0
 function kml_Scale($x = null, $y = null, $z = null)
 {
     parent::kml_root();
     if ($x !== null) {
         $this->set_x($x);
     }
     if ($y !== null) {
         $this->set_y($y);
     }
     if ($z !== null) {
         $this->set_z($z);
     }
 }
Example #10
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;
 }
Example #11
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;
 }
Example #12
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;
 }
Example #13
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;
 }
Example #14
0
 function render($doc)
 {
     $X = parent::render($doc);
     $X->appendChild($this->Object->render($doc));
     return $X;
 }
Example #15
0
 function kml_Update($targetHref)
 {
     parent::kml_root();
     $this->set_targetHref($targetHref);
 }
Example #16
0
 function kml_Schema($name)
 {
     parent::kml_root();
     $this->set_name($name);
 }
Example #17
0
 function kml_Create($Object)
 {
     parent::kml_root();
     $this->set_Object($Object);
 }