示例#1
0
 /**
  * Writes the contents of this Category to an XML writer. The startElement is expected to be already provided.
  *
  * @param \XMLWriter $writer The XML writer.
  */
 public function writeXmlContents($writer)
 {
     if ($this->scheme) {
         $writer->writeAttribute('scheme', $this->scheme);
     }
     if ($this->term) {
         $writer->writeAttribute('term', $this->term);
     }
     if ($this->label) {
         $writer->writeAttribute('label', $this->label);
     }
     parent::writeXmlContents($writer);
 }
示例#2
0
 /**
  * Writes the contents of this ExtensibleElement to an XML writer. The startElement is expected to be already provided.
  *
  * @param \XMLWriter $writer The XML writer.
  */
 public function writeXmlContents($writer)
 {
     parent::writeXmlContents($writer);
 }