/** * Add a single Notice to the document * * @param Notice $notice a Notice to add */ function addItemFromNotice($notice) { $cur = empty($this->cur) ? common_current_user() : $this->cur; $act = $notice->asActivity($cur); $act->extra[] = $notice->noticeInfo($cur); array_push($this->items, $act->asArray()); $this->count++; }
/** * Add a single Notice to the document * * @param Notice $notice a Notice to add */ function addItemFromNotice($notice) { $act = $notice->asActivity($this->scoped); $act->extra[] = $notice->noticeInfo($this->scoped); array_push($this->items, $act->asArray()); $this->count++; }