Public Member Functions | |
__construct ($skin, $out, $flags=0) | |
showHeader ($type) | |
Set page title and show header for this log type. | |
showOptions ($types=array(), $user='', $page='', $pattern='', $year='', $month= '', $filter=null, $tagFilter='') | |
Show options for the log list. | |
beginLogEventsList () | |
endLogEventsList () | |
logLine ($row) | |
Static Public Member Functions | |
static | typeAction ($row, $type, $action, $right='') |
static | userCan ($row, $field) |
Determine if the current user is allowed to view a particular field of this log row, if it's marked as deleted. | |
static | userCanBitfield ($bitfield, $field) |
Determine if the current user is allowed to view a particular field of this log row, if it's marked as deleted. | |
static | isDeleted ($row, $field) |
static | showLogExtract (&$out, $types=array(), $page='', $user='', $param=array()) |
Show log extract. | |
static | getExcludeClause ($db, $audience= 'public') |
SQL clause to skip forbidden log types for this user. | |
Public Attributes | |
const | NO_ACTION_LINK = 1 |
$flags | |
Private Member Functions | |
preCacheMessages () | |
As we use the same small set of messages in various methods and that they are called often, we call them once and save them in $this->message. | |
getFilterLinks ($filter) | |
getDefaultQuery () | |
getTypeMenu ($queryTypes) | |
getUserInput ($user) | |
getTitleInput ($title) | |
getTitlePattern ($pattern) | |
getExtraInputs ($types) | |
getShowHideLinks ($row) | |
Private Attributes | |
$skin | |
$out |
Definition at line 20 of file LogEventsList.php.
LogEventsList::__construct | ( | $ | skin, | |
$ | out, | |||
$ | flags = 0 | |||
) |
Definition at line 27 of file LogEventsList.php.
References $flags, $out, $skin, and preCacheMessages().
Referenced by LogPager::__construct().
LogEventsList::beginLogEventsList | ( | ) |
LogEventsList::endLogEventsList | ( | ) |
Definition at line 265 of file LogEventsList.php.
LogEventsList::getDefaultQuery | ( | ) | [private] |
Definition at line 164 of file LogEventsList.php.
Referenced by LogPager::getDefaultQuery(), and getFilterLinks().
static LogEventsList::getExcludeClause | ( | $ | db, | |
$ | audience = 'public' | |||
) | [static] |
SQL clause to skip forbidden log types for this user.
$db | Database | |
$audience | string, public/user |
Definition at line 708 of file LogEventsList.php.
Referenced by WikiExporter::dumpFrom(), ApiQueryLogEvents::execute(), and LogPager::limitType().
LogEventsList::getExtraInputs | ( | $ | types | ) | [private] |
Definition at line 247 of file LogEventsList.php.
References $wgRequest, Xml::inputLabel(), IP::isIPAddress(), User::newFromName(), and wfMsg().
Referenced by showOptions().
LogEventsList::getFilterLinks | ( | $ | filter | ) | [private] |
$filter | Array |
Definition at line 133 of file LogEventsList.php.
References $messages, $wgLang, $wgTitle, getDefaultQuery(), Xml::hidden(), and wfMsgHtml().
Referenced by showOptions().
LogEventsList::getShowHideLinks | ( | $ | row | ) | [private] |
$row | Row |
Definition at line 509 of file LogEventsList.php.
References $page, $wgUser, LogPage::DELETED_RESTRICTED, SpecialPage::getTitleFor(), and Title::makeTitle().
Referenced by logLine().
LogEventsList::getTitleInput | ( | $ | title | ) | [private] |
$title | String |
Definition at line 232 of file LogEventsList.php.
References $title, Xml::inputLabel(), and wfMsg().
Referenced by showOptions().
LogEventsList::getTitlePattern | ( | $ | pattern | ) | [private] |
Definition at line 241 of file LogEventsList.php.
References Xml::checkLabel(), and wfMsg().
Referenced by showOptions().
LogEventsList::getTypeMenu | ( | $ | queryTypes | ) | [private] |
$queryTypes | Array |
Definition at line 182 of file LogEventsList.php.
References $wgLogRestrictions, $wgUser, LogPage::logName(), Xml::option(), and LogPage::validTypes().
Referenced by showOptions().
LogEventsList::getUserInput | ( | $ | user | ) | [private] |
$user | String |
Definition at line 222 of file LogEventsList.php.
References Xml::inputLabel(), and wfMsg().
Referenced by showOptions().
static LogEventsList::isDeleted | ( | $ | row, | |
$ | field | |||
) | [static] |
$row | Row | |
$field | Integer: one of DELETED_* bitfield constants |
Definition at line 592 of file LogEventsList.php.
Referenced by ApiQueryLogEvents::extractRowInfo(), and RevDel_LogItem::getHTML().
LogEventsList::logLine | ( | $ | row | ) |
$row | Row: a single row from the result set |
Definition at line 273 of file LogEventsList.php.
References $action, $classes, $title, $wgContLang, $wgLang, $wgUser, LogPage::actionText(), LogPage::DELETED_ACTION, LogPage::DELETED_COMMENT, LogPage::DELETED_USER, LogPage::extractParams(), ChangeTags::formatSummaryRow(), getShowHideLinks(), SpecialPage::getTitleFor(), Title::makeTitle(), Title::newFromText(), Xml::tags(), wfMsg(), wfMsgForContent(), wfMsgHtml(), wfRunHooks(), and wfTimestamp().
LogEventsList::preCacheMessages | ( | ) | [private] |
As we use the same small set of messages in various methods and that they are called often, we call them once and save them in $this->message.
Definition at line 38 of file LogEventsList.php.
References $messages, $msg, and wfMsgExt().
Referenced by __construct().
LogEventsList::showHeader | ( | $ | type | ) |
Set page title and show header for this log type.
$type | Array |
Definition at line 54 of file LogEventsList.php.
References LogPage::isLogType(), LogPage::logHeader(), LogPage::logName(), and wfMsgExt().
static LogEventsList::showLogExtract | ( | &$ | out, | |
$ | types = array() , |
|||
$ | page = '' , |
|||
$ | user = '' , |
|||
$ | param = array() | |||
) | [static] |
Show log extract.
Either with text and a box (set $msgKey) or without (don't set $msgKey)
$out | OutputPage or String-by-reference | |
$types | String or Array | |
$page | String The page title to show log entries for | |
$user | String The user who made the log entries | |
$param | Associative Array with the following additional options:
|
Definition at line 615 of file LogEventsList.php.
References $page, $s, $wgOut, $wgRequest, $wgUser, Html::rawElement(), and wfMsgExt().
Referenced by Article::confirmDelete(), SpecialContributions::contributionsSub(), Article::delete(), Article::doDelete(), SpecialRevisionDelete::execute(), DeletedContributionsPage::getSubTitle(), HistoryPage::history(), MovePageForm::showForm(), EditPage::showHeader(), UndeleteForm::showHistory(), MergehistoryForm::showHistory(), EditPage::showIntro(), FileDeleteForm::showLogEntries(), UserrightsPage::showLogFragment(), MovePageForm::showLogFragment(), IPBlockForm::showLogFragment(), and Article::showMissingArticle().
LogEventsList::showOptions | ( | $ | types = array() , |
|
$ | user = '' , |
|||
$ | page = '' , |
|||
$ | pattern = '' , |
|||
$ | year = '' , |
|||
$ | month = '' , |
|||
$ | filter = null , |
|||
$ | tagFilter = '' | |||
) |
Show options for the log list.
$types | string or Array | |
$user | String | |
$page | String | |
$pattern | String | |
$year | Integer: year | |
$month | Integer: month | |
$filter,: | array | |
$tagFilter,: | array? |
Definition at line 76 of file LogEventsList.php.
References $action, $page, $title, $wgMiserMode, $wgScript, ChangeTags::buildTagFilterSelector(), Xml::dateMenu(), Xml::fieldset(), getExtraInputs(), getFilterLinks(), SpecialPage::getTitleFor(), getTitleInput(), getTitlePattern(), getTypeMenu(), getUserInput(), Xml::hidden(), Xml::submitButton(), Xml::tags(), and wfMsg().
static LogEventsList::typeAction | ( | $ | row, | |
$ | type, | |||
$ | action, | |||
$ | right = '' | |||
) | [static] |
$row | Row | |
$type | Mixed: string/array | |
$action | Mixed: string/array | |
$right | string |
Definition at line 539 of file LogEventsList.php.
References $action, and $wgUser.
Referenced by PopulateLogSearch::execute(), and migrate_log_params().
static LogEventsList::userCan | ( | $ | row, | |
$ | field | |||
) | [static] |
Determine if the current user is allowed to view a particular field of this log row, if it's marked as deleted.
$row | Row | |
$field | Integer |
Definition at line 560 of file LogEventsList.php.
References userCanBitfield().
Referenced by RevDel_LogItem::canView().
static LogEventsList::userCanBitfield | ( | $ | bitfield, | |
$ | field | |||
) | [static] |
Determine if the current user is allowed to view a particular field of this log row, if it's marked as deleted.
$bitfield | Integer (current field) | |
$field | Integer |
Definition at line 571 of file LogEventsList.php.
References $wgUser, LogPage::DELETED_RESTRICTED, and wfDebug().
Referenced by userCan(), and ChangesList::userCan().
LogEventsList::$flags |
Definition at line 25 of file LogEventsList.php.
Referenced by LogViewer::__construct(), and __construct().
LogEventsList::$out [private] |
Definition at line 24 of file LogEventsList.php.
Referenced by __construct(), and LogViewer::showList().
LogEventsList::$skin [private] |
const LogEventsList::NO_ACTION_LINK = 1 |
Definition at line 21 of file LogEventsList.php.