function render($doc) { $X = parent::render($doc); if (isset($this->when)) { $X->appendChild(XML_create_text_element($doc, 'when', $this->when)); } return $X; }
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; }