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