MediaWiki
REL1_24
|
Public Member Functions | |
__construct ($historyPage, $year= '', $month= '', $tagFilter= '', $conds=array()) | |
curLink ($rev, $latest) | |
Create a diff-to-current link for this revision for this page. | |
diffButtons ($rev, $firstInList) | |
Create radio buttons for page history. | |
doBatchLookups () | |
Called from getBody(), before getStartBody() is called and after doQuery() was called. | |
formatRow ($row) | |
getArticle () | |
getEndBody () | |
Hook into getBody() for the end of the list. | |
getIndexField () | |
This function should be overridden to return the name of the index fi- eld. | |
getPreventClickjacking () | |
Get the "prevent clickjacking" flag. | |
getQueryInfo () | |
This function should be overridden to provide all parameters needed for the main paged query. | |
getSqlComment () | |
Get some text to go in brackets in the "function name" part of the SQL comment. | |
getStartBody () | |
Creates begin of history list with a submit button. | |
historyLine ($row, $next, $notificationtimestamp=false, $latest=false, $firstInList=false) | |
Returns a row from the history printout. | |
lastLink ($prevRev, $next) | |
Create a diff-to-previous link for this revision for this page. | |
preventClickjacking ($enable=true) | |
This is called if a write operation is possible from the generated HTML. | |
revLink ($rev) | |
Create a link to view this revision of the page. | |
submitButton ($message, $attributes=array()) | |
Creates a submit button. | |
Public Attributes | |
$buttons | |
$conds | |
$counter | |
$historyPage | |
bool stdClass | $lastRow = false |
Protected Attributes | |
$oldIdChecked | |
array | $parentLens |
$preventClickjacking = false | |
Private Member Functions | |
getRevisionButton ($name, $msg) |
Definition at line 356 of file HistoryAction.php.
HistoryPager::__construct | ( | $ | historyPage, |
$ | year = '' , |
||
$ | month = '' , |
||
$ | tagFilter = '' , |
||
$ | conds = array() |
||
) |
HistoryAction | $historyPage | |
string | $year | |
string | $month | |
string | $tagFilter | |
array | $conds |
Definition at line 377 of file HistoryAction.php.
HistoryPager::curLink | ( | $ | rev, |
$ | latest | ||
) |
Create a diff-to-current link for this revision for this page.
Revision | $rev | |
bool | $latest | This is the latest revision of the page? |
Definition at line 769 of file HistoryAction.php.
HistoryPager::diffButtons | ( | $ | rev, |
$ | firstInList | ||
) |
Create radio buttons for page history.
Revision | $rev | |
bool | $firstInList | Is this version the first one? |
Definition at line 843 of file HistoryAction.php.
Called from getBody(), before getStartBody() is called and after doQuery() was called.
This will be called only if there are rows in the result set.
Reimplemented from IndexPager.
Definition at line 444 of file HistoryAction.php.
HistoryPager::formatRow | ( | $ | row | ) |
stdClass | $row |
Reimplemented from IndexPager.
Definition at line 429 of file HistoryAction.php.
Definition at line 386 of file HistoryAction.php.
Hook into getBody() for the end of the list.
Reimplemented from IndexPager.
Definition at line 520 of file HistoryAction.php.
This function should be overridden to return the name of the index fi- eld.
If the pager supports multiple orders, it may return an array of 'querykey' => 'indexfield' pairs, so that a request with &count=querykey will use indexfield to sort. In this case, the first returned key is the default.
Needless to say, it's really not a good idea to use a non-unique index for this! That won't page right.
Reimplemented from IndexPager.
Definition at line 421 of file HistoryAction.php.
This function should be overridden to provide all parameters needed for the main paged query.
It returns an associative array with the following elements: tables => Table(s) for passing to Database::select() fields => Field(s) for passing to Database::select(), may be * conds => WHERE conditions options => option array join_conds => JOIN conditions
Reimplemented from IndexPager.
Definition at line 398 of file HistoryAction.php.
HistoryPager::getRevisionButton | ( | $ | name, |
$ | msg | ||
) | [private] |
Definition at line 504 of file HistoryAction.php.
Get some text to go in brackets in the "function name" part of the SQL comment.
Reimplemented from IndexPager.
Definition at line 390 of file HistoryAction.php.
Creates begin of history list with a submit button.
Reimplemented from IndexPager.
Definition at line 471 of file HistoryAction.php.
HistoryPager::historyLine | ( | $ | row, |
$ | next, | ||
$ | notificationtimestamp = false , |
||
$ | latest = false , |
||
$ | firstInList = false |
||
) |
Returns a row from the history printout.
stdClass | $row | The database row corresponding to the previous line. |
mixed | $next | The database row corresponding to the next line (chronologically previous) |
bool | string | $notificationtimestamp | |
bool | $latest | Whether this row corresponds to the page's latest revision. |
bool | $firstInList | Whether this row corresponds to the first displayed on this history page. |
Definition at line 581 of file HistoryAction.php.
HistoryPager::lastLink | ( | $ | prevRev, |
$ | next | ||
) |
Create a diff-to-previous link for this revision for this page.
Revision | $prevRev | The revision being displayed |
stdClass | string | null | $next | The next revision in list (that is the previous one in chronological order). May either be a row, "unknown" or null. |
Definition at line 795 of file HistoryAction.php.
HistoryPager::preventClickjacking | ( | $ | enable = true | ) |
This is called if a write operation is possible from the generated HTML.
bool | $enable |
Definition at line 888 of file HistoryAction.php.
HistoryPager::revLink | ( | $ | rev | ) |
Create a link to view this revision of the page.
Revision | $rev |
Definition at line 742 of file HistoryAction.php.
HistoryPager::submitButton | ( | $ | message, |
$ | attributes = array() |
||
) |
Creates a submit button.
string | $message | Text of the submit button, will be escaped |
array | $attributes | Attributes |
Definition at line 558 of file HistoryAction.php.
HistoryPager::$buttons |
Definition at line 361 of file HistoryAction.php.
HistoryPager::$conds |
Definition at line 361 of file HistoryAction.php.
HistoryPager::$counter |
Definition at line 361 of file HistoryAction.php.
HistoryPager::$historyPage |
Definition at line 361 of file HistoryAction.php.
bool stdClass HistoryPager::$lastRow = false |
Definition at line 359 of file HistoryAction.php.
HistoryPager::$oldIdChecked [protected] |
Definition at line 363 of file HistoryAction.php.
array HistoryPager::$parentLens [protected] |
Definition at line 368 of file HistoryAction.php.
HistoryPager::$preventClickjacking = false [protected] |
Definition at line 365 of file HistoryAction.php.