From d197c86a61d5b34fd317e8d22564111bbd6e6c2c Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 11 Apr 2011 12:39:06 -0400 Subject: [PATCH] show full threaded notice list in conversation view --- actions/conversation.php | 2 +- actions/conversationreplies.php | 16 ------- lib/fullthreadednoticelist.php | 75 +++++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+), 17 deletions(-) create mode 100644 lib/fullthreadednoticelist.php diff --git a/actions/conversation.php b/actions/conversation.php index 123965afa2..f33d267d35 100644 --- a/actions/conversation.php +++ b/actions/conversation.php @@ -123,7 +123,7 @@ class ConversationAction extends Action */ function showContent() { - $tnl = new ThreadedNoticeList($this->notices, $this, $this->userProfile); + $tnl = new FullThreadedNoticeList($this->notices, $this, $this->userProfile); $cnt = $tnl->show(); } diff --git a/actions/conversationreplies.php b/actions/conversationreplies.php index 450a3d6828..55c3efa9e0 100644 --- a/actions/conversationreplies.php +++ b/actions/conversationreplies.php @@ -86,19 +86,3 @@ class ConversationRepliesAction extends ConversationAction $this->elementEnd('html'); } } - -class FullThreadedNoticeList extends ThreadedNoticeList -{ - function newListItem($notice) - { - return new FullThreadedNoticeListItem($notice, $this->out, $this->userProfile); - } -} - -class FullThreadedNoticeListItem extends ThreadedNoticeListItem -{ - function initialItems() - { - return 1000; // @fixme - } -} diff --git a/lib/fullthreadednoticelist.php b/lib/fullthreadednoticelist.php new file mode 100644 index 0000000000..52b5f279c9 --- /dev/null +++ b/lib/fullthreadednoticelist.php @@ -0,0 +1,75 @@ +. + * + * @category Cache + * @package StatusNet + * @author Evan Prodromou + * @copyright 2011 StatusNet, Inc. + * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 + * @link http://status.net/ + */ + +if (!defined('STATUSNET')) { + // This check helps protect against security problems; + // your code file can't be executed directly from the web. + exit(1); +} + +/** + * A threaded notice list that shows all notices + * + * @category General + * @package StatusNet + * @author Evan Prodromou + * @author Brion Vibber + * @copyright 2011 StatusNet, Inc. + * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 + * @link http://status.net/ + */ + +class FullThreadedNoticeList extends ThreadedNoticeList +{ + function newListItem($notice) + { + return new FullThreadedNoticeListItem($notice, $this->out, $this->userProfile); + } +} + +/** + * A threaded notice list item that shows everything + * + * @category General + * @package StatusNet + * @author Evan Prodromou + * @author Brion Vibber + * @copyright 2011 StatusNet, Inc. + * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 + * @link http://status.net/ + */ + +class FullThreadedNoticeListItem extends ThreadedNoticeListItem +{ + function initialItems() + { + return 1000; // @fixme + } +} -- 2.39.5