return $xs->getString();
}
- /**
- * return an xml string to represent this people tag
- * as the subject of an activitystreams feed.
- *
- * @return string activitystreams subject
- */
-
- function asActivitySubject()
- {
- return $this->asActivityNoun('subject');
- }
-
/**
* return an xml string to represent this people tag
* as a noun in an activitystreams feed.
return $xs->getString();
}
- /**
- * Returns an XML string fragment with group information as an
- * Activity Streams <activity:subject> element.
- *
- * Assumes that 'activity' namespace has been previously defined.
- *
- * @return string
- */
- function asActivitySubject()
- {
- return $this->asActivityNoun('subject');
- }
-
/**
* Returns an XML string fragment with group information as an
* Activity Streams noun object with the given element type.
}
}
- /**
- * Deprecated <activity:subject>; ignored
- *
- * @param string $xmlSubject An XML string representation of the subject
- *
- * @return void
- */
-
- function setActivitySubject($xmlSubject)
- {
- // TRANS: Server exception thrown when using the method setActivitySubject() in the class Atom10Feed.
- throw new ServerException(_('Do not use this method!'));
- }
-
function getNamespaces()
{
return $this->namespaces;
$this->setId($self);
$this->setSelfLink($self);
- // For groups, we generate an author _AND_ an <activity:subject>
- // Versions of StatusNet under 0.9.7 treat <author> as a person
- // XXX: remove this workaround in future versions
-
$ao = ActivityObject::fromGroup($group);
$this->addAuthorRaw($ao->asString('author'));
- $depMsg = 'Deprecation warning: activity:subject is present '
- . 'only for backward compatibility. It will be '
- . 'removed in the next version of StatusNet.';
-
- $this->addAuthorRaw(
- "<!--$depMsg-->\n"
- . $ao->asString('activity:subject')
- );
-
$this->addLink($group->homeUrl());
}
$this->setId($self);
$this->setSelfLink($self);
- // FIXME: Stop using activity:subject?
$ao = ActivityObject::fromPeopletag($this->list);
- $this->addAuthorRaw($ao->asString('author').
- $ao->asString('activity:subject'));
+ $this->addAuthorRaw($ao->asString('author'));
$this->addLink($this->list->getUri());
}
array_push($ao->extra, $profile->profileInfo($cur));
- // XXX: For users, we generate an author _AND_ an <activity:subject>
- // This is for backward compatibility with clients (especially
- // StatusNet's clients) that assume the Atom will conform to an
- // older version of the Activity Streams API. Subject should be
- // removed in future versions of StatusNet.
-
$this->addAuthorRaw($ao->asString('author'));
-
- $depMsg = 'Deprecation warning: activity:subject is present '
- . 'only for backward compatibility. It will be '
- . 'removed in the next version of StatusNet.';
-
- $this->addAuthorRaw(
- "<!--$depMsg-->\n"
- . $ao->asString('activity:subject')
- );
}
// TRANS: Title in atom user notice feed. %s is a user name.