$xs->element('name', null, $name);
} else {
throw new Atom10FeedException(
- _('author element must contain a name element.')
+ // TRANS: Atom feed exception thrown when an author element does not contain a name element.
+ _('Author element must contain a name element.')
);
}
}
}
- /**
- * Add a activity feed subject via raw XML string
- *
- * @param string $xmlSubject An XML string representation of the subject
- *
- * @return void
- */
- function setActivitySubject($xmlSubject)
- {
- $this->subject = $xmlSubject;
- }
-
function getNamespaces()
{
return $this->namespaces;
function initFeed()
{
- $this->xw->startDocument('1.0', 'UTF-8');
+ $this->startXML();
$commonAttrs = array('xml:lang' => 'en-US');
foreach ($this->namespaces as $prefix => $uri) {
if ($prefix == '') {
$this->element(
'generator', array(
- 'uri' => 'http://status.net',
- 'version' => STATUSNET_VERSION
+ 'uri' => 'https://gnu.io/social',
+ 'version' => GNUSOCIAL_VERSION
),
- 'StatusNet'
+ 'GNU social'
);
$this->element('id', null, $this->id);