var $page = null;
var $notice;
var $userProfile = null;
+ var $mode = 'conversation';
function isReadOnly($args)
{
$this->userProfile = Profile::current();
- $stream = new ThreadingPublicNoticeStream($this->userProfile);
+ $this->mode = $this->trimmed('mode', 'conversation');
+
+ if ($this->mode == 'stream') {
+ $stream = new PublicNoticeStream($this->userProfile);
+ } else {
+ $stream = new ThreadingPublicNoticeStream($this->userProfile);
+ }
$this->notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE,
NOTICES_PER_PAGE + 1);
*/
function showContent()
{
- $nl = new ThreadedNoticeList($this->notice, $this, $this->userProfile);
+ if ($this->mode == 'stream') {
+ $nl = new NoticeList($this->notice, $this);
+ } else {
+ $nl = new ThreadedNoticeList($this->notice, $this, $this->userProfile);
+ }
$cnt = $nl->show();
var $page = null;
var $userProfile = null;
var $notice = null;
+ var $mode = 'conversation';
/**
* Is this page read-only?
$this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
+ $this->mode = $this->trimmed('mode', 'conversation');
$this->userProfile = Profile::current();
- $stream = new ThreadingGroupNoticeStream($this->group, $this->userProfile);
+ if ($this->mode == 'stream') {
+ $stream = new GroupNoticeStream($this->group, $this->userProfile);
+ } else {
+ $stream = new ThreadingGroupNoticeStream($this->group, $this->userProfile);
+ }
$this->notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE,
NOTICES_PER_PAGE + 1);
*/
function showGroupNotices()
{
- $nl = new ThreadedNoticeList($this->notice, $this, $this->userProfile);
+ if ($this->mode == 'stream') {
+ $nl = new NoticeList($this->notice, $this);
+ } else {
+ $nl = new ThreadedNoticeList($this->notice, $this, $this->userProfile);
+ }
+
$cnt = $nl->show();
$this->pagination($this->page > 1,