X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fatomcategory.php;h=e527877cb090347bdf064222369756dcaede3346;hb=543d968b81b97c9ebd46de063d8d70621c12015b;hp=9763023f7589c151ed4e24c2cea51fa93f7e951b;hpb=9df856e667a12cd217576263efbc72fff12692d9;p=quix0rs-gnu-social.git diff --git a/lib/atomcategory.php b/lib/atomcategory.php index 9763023f75..e527877cb0 100644 --- a/lib/atomcategory.php +++ b/lib/atomcategory.php @@ -59,6 +59,13 @@ class AtomCategory } function asString() + { + $xs = new XMLStringer(); + $this->outputTo($xs); + return $xs->getString(); + } + + function outputTo($xo) { $attribs = array(); if ($this->term !== null) { @@ -70,8 +77,6 @@ class AtomCategory if ($this->label !== null) { $attribs['label'] = $this->label; } - $xs = new XMLStringer(); - $xs->element('category', $attribs); - return $xs->getString(); + $xo->element('category', $attribs); } }