*
* @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());
}
}
$this->linkDict = array(
- 'url' => $url,
- 'rel' => $rel, // extension
- 'mediaType' => $mediaType // extension
- );
+ 'url' => $url,
+ 'rel' => $rel, // extension
+ 'type' => $mediaType // extension
+ );
}
function asArray()