Ejemplo n.º 1
0
 /**
  * Вывод атрибутов в \XMLWriter
  * @param \XMLWriter $xw
  * @param string $xmlname Имя корневого узла
  * @param string $xmlns Пространство имен
  */
 protected function attributesToXmlWriter(\XMLWriter &$xw, $xmlname = self::ROOT, $xmlns = self::NS)
 {
     parent::attributesToXmlWriter($xw, $xmlname, $xmlns);
 }
Ejemplo n.º 2
0
 /**
  * Вывод атрибутов в \XMLWriter
  * @param \XMLWriter $xw
  * @param string $xmlname Имя корневого узла
  * @param string $xmlns Пространство имен
  */
 protected function attributesToXmlWriter(\XMLWriter &$xw, $xmlname = self::ROOT, $xmlns = self::NS)
 {
     parent::attributesToXmlWriter($xw, $xmlname, $xmlns);
     if ($prop = $this->getRel()) {
         $xw->writeAttribute('rel', $prop);
     }
     if ($prop = $this->getHref()) {
         $xw->writeAttribute('href', $prop);
     }
 }