public $content;
public $owner;
public $link;
+ public $selfLink; // think APP (Atom Publishing Protocol)
public $source;
public $avatarLinks = array();
public $geopoint;
$this->source = $this->_getSource($element);
$this->link = ActivityUtils::getPermalink($element);
+ $this->selfLink = ActivityUtils::getSelfLink($element);
$this->id = $this->_childContent($element, self::ID);
);
}
+ if (!empty($this->selfLink)) {
+ $xo->element(
+ 'link',
+ array(
+ 'rel' => 'self',
+ 'type' => 'application/atom+xml',
+ 'href' => $this->selfLink
+ ),
+ null
+ );
+ }
+
if(!empty($this->owner)) {
$owner = $this->owner->asActivityNoun(self::AUTHOR);
$xo->raw($owner);