r23909 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23908‎ | r23909 | r23910 >
Date:18:01, 9 July 2007
Author:david
Status:old
Tags:
Comment:
historypager
Modified paths:
  • /branches/liquidthreads/extensions/LqtExtension.php (modified) (history)

Diff [purge]

Index: branches/liquidthreads/extensions/LqtExtension.php
@@ -14,6 +14,7 @@
1515
1616 require_once('LqtModel.php');
1717 require_once('Pager.php');
 18+require_once('PageHistory.php');
1819
1920 class LqtDispatch {
2021 static function talkpageMain(&$output, &$talk_article, &$title, &$user, &$request) {
@@ -866,12 +867,12 @@
867868 /**
868869 * @addtogroup Pager
869870 */
870 -class ThreadHistoryPager extends ReverseChronologicalPager {
871 - public $mLastRow = false;
 871+class ThreadHistoryPager extends PageHistoryPager {
872872 protected $thread;
873873
874874 function __construct( $thread ) {
875 - parent::__construct();
 875+ // mPageHistory = this in the PageHistoryPager methods now.
 876+ parent::__construct($this);
876877 $this->thread = $thread;
877878 }
878879
@@ -887,11 +888,27 @@
888889 function getIndexField() {
889890 return 'hthread_revision';
890891 }
891 -
 892+
 893+ /**
 894+ * Returns a row from the history printout.
 895+ *
 896+ * @param object $row The database row corresponding to the line (or is it the previous line?).
 897+ * @param object $next The database row corresponding to the next line (or is it this one?).
 898+ * @param int $counter Apparently a counter of what row number we're at, counted from the top row = 1.
 899+ * @param $notificationtimestamp
 900+ * @param bool $latest Whether this row corresponds to the page's latest revision.
 901+ * @param bool $firstInList Whether this row corresponds to the first displayed on this history page.
 902+ * @return string HTML output for the row
 903+ */
 904+ function historyLine( $row, $next, $counter = '', $notificationtimestamp = false, $latest = false, $firstInList = false ) {
 905+
 906+ }
 907+
 908+/*
892909 function formatRow( $row ) {
893910 return '<li>' . $row->hthread_revision;
894911 }
895 -
 912+*/
896913 function getStartBody() {
897914 $this->mLastRow = false;
898915 $this->mCounter = 1;

Status & tagging log