*
* @param String $title the title
*/
+
function setTitle($title)
{
$this->doc['title'] = $title;
function addItemsFromNotices($notices)
{
- common_debug("addItemsFromNotices");
if (is_array($notices)) {
foreach ($notices as $notice) {
$this->addItemFromNotice($notice);
{
$cur = empty($this->cur) ? common_current_user() : $this->cur;
- $act = $notice->asActivity();
+ $act = $notice->asActivity($cur);
$act->extra[] = $notice->noticeInfo($cur);
-
array_push($this->doc['items'], $act->asArray());
}
function addLink($url = null, $rel = null, $mediaType = null)
{
$link = new ActivityStreamsLink($url, $rel, $mediaType);
- $this->doc['link'][] = $link->asArray();
+ $this->doc['links'][] = $link->asArray();
}
/*
}
$this->linkDict = array(
- 'url' => $url,
- 'rel' => $rel, // extension
- 'mediaType' => $mediaType // extension
- );
+ 'url' => $url,
+ 'rel' => $rel, // extension
+ 'type' => $mediaType // extension
+ );
}
function asArray()