Public Member Functions | |
__construct ($list, $type= '', $user= '', $title= '', $pattern= '', $conds=array(), $year=false, $month=false, $tagFilter= '') | |
constructor | |
getDefaultQuery () | |
Get an array of query parameters that should be put into self-links. | |
getFilterParams () | |
getQueryInfo () | |
This function should be overridden to provide all parameters needed for the main paged query. | |
getIndexField () | |
This function should be overridden to return the name of the index fi- eld. | |
getStartBody () | |
Hook into getBody(), allows text to be inserted at the start. | |
formatRow ($row) | |
Abstract formatting function. | |
getType () | |
getUser () | |
getPage () | |
getPattern () | |
getYear () | |
getMonth () | |
getTagFilter () | |
Public Attributes | |
$mLogEventsList | |
Private Member Functions | |
limitType ($type) | |
Set the log reader to return only entries of the given type. | |
limitUser ($name) | |
Set the log reader to return only entries by the given user. | |
limitTitle ($page, $pattern) | |
Set the log reader to return only entries affecting the given page. | |
Private Attributes | |
$type = '' | |
$user = '' | |
$title = '' | |
$pattern = '' |
Definition at line 486 of file LogEventsList.php.
LogPager::__construct | ( | $ | list, | |
$ | type = '' , |
|||
$ | user = '' , |
|||
$ | title = '' , |
|||
$ | pattern = '' , |
|||
$ | conds = array() , |
|||
$ | year = false , |
|||
$ | month = false , |
|||
$ | tagFilter = '' | |||
) |
constructor
$list | LogEventsList | |
$type | String | |
$user | String | |
$title | String | |
$pattern | String | |
$conds | Array | |
$year | Integer | |
$month | Integer |
Definition at line 501 of file LogEventsList.php.
References $conds, $pattern, $title, $type, $user, ReverseChronologicalPager::__construct(), ReverseChronologicalPager::getDateCond(), limitTitle(), limitType(), and limitUser().
LogPager::formatRow | ( | $ | row | ) |
Abstract formatting function.
This should return an HTML string representing the result row $row. Rows will be concatenated and returned by getBody()
Reimplemented from IndexPager.
Definition at line 684 of file LogEventsList.php.
References $row.
LogPager::getDefaultQuery | ( | ) |
Get an array of query parameters that should be put into self-links.
By default, all parameters passed in the URL are used, except for a short blacklist.
Reimplemented from IndexPager.
Definition at line 516 of file LogEventsList.php.
LogPager::getFilterParams | ( | ) |
Definition at line 525 of file LogEventsList.php.
References $type, $wgFilterLogTypes, $wgRequest, and $wgUser.
LogPager::getIndexField | ( | ) |
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 663 of file LogEventsList.php.
LogPager::getMonth | ( | ) |
Definition at line 708 of file LogEventsList.php.
LogPager::getPage | ( | ) |
Definition at line 696 of file LogEventsList.php.
LogPager::getPattern | ( | ) |
Definition at line 700 of file LogEventsList.php.
LogPager::getQueryInfo | ( | ) |
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
Reimplemented from IndexPager.
Definition at line 638 of file LogEventsList.php.
References ChangeTags::modifyDisplayQuery().
LogPager::getStartBody | ( | ) |
Hook into getBody(), allows text to be inserted at the start.
This will be called even if there are no rows in the result set.
Reimplemented from IndexPager.
Definition at line 667 of file LogEventsList.php.
References $lb, $row, IndexPager::getNumRows(), Title::makeTitleSafe(), wfProfileIn(), and wfProfileOut().
LogPager::getTagFilter | ( | ) |
Definition at line 712 of file LogEventsList.php.
LogPager::getType | ( | ) |
Definition at line 688 of file LogEventsList.php.
LogPager::getUser | ( | ) |
Definition at line 692 of file LogEventsList.php.
LogPager::getYear | ( | ) |
Definition at line 704 of file LogEventsList.php.
LogPager::limitTitle | ( | $ | page, | |
$ | pattern | |||
) | [private] |
Set the log reader to return only entries affecting the given page.
(For the block and rights logs, this is a user page.)
$page | String: Title name as text | |
$pattern | String |
Definition at line 602 of file LogEventsList.php.
References $ns, $page, $pattern, $title, $wgMiserMode, $wgUser, LogPage::DELETED_ACTION, and Title::newFromText().
Referenced by __construct().
LogPager::limitType | ( | $ | type | ) | [private] |
Set the log reader to return only entries of the given type.
Type restrictions enforced here
$type | String: A log type ('upload', 'delete', etc) |
Definition at line 548 of file LogEventsList.php.
References $type, $wgLogRestrictions, $wgUser, and LogEventsList::getExcludeClause().
Referenced by __construct().
LogPager::limitUser | ( | $ | name | ) | [private] |
Set the log reader to return only entries by the given user.
$name | String: (In)valid user name |
Definition at line 571 of file LogEventsList.php.
References $name, $wgUser, LogPage::DELETED_USER, User::idFromName(), and Title::makeTitleSafe().
Referenced by __construct().
LogPager::$mLogEventsList |
Definition at line 488 of file LogEventsList.php.
LogPager::$pattern = '' [private] |
LogPager::$title = '' [private] |
LogPager::$type = '' [private] |
Definition at line 487 of file LogEventsList.php.
Referenced by __construct(), getFilterParams(), and limitType().
LogPager::$user = '' [private] |