return null;
}
- function asString($namespace=false, $author=true)
+ function asString($namespace=false, $author=true, $source=false)
{
$xs = new XMLStringer(true);
// Info on the source feed
- if (!empty($this->source)) {
+ if ($source && !empty($this->source)) {
$xs->elementStart('source');
$xs->element('id', null, $this->source->id);
$xs->elementEnd('entry');
- return $xs->getString();
+ $str = $xs->getString();
+
+ return $str;
}
private function _child($element, $tag, $namespace=self::SPEC)