Public Member Functions | |
| __construct ($skin, $out, $flags=0) | |
| showHeader ($type) | |
| Set page title and show header for this log type. | |
| showOptions ($type= '', $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 | isDeleted ($row, $field) |
| static | showLogExtract ($out, $type='', $page='', $user='', $lim=0, $conds=array()) |
| Quick function to show a short 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 ($logType, $filter) | |
| getDefaultQuery () | |
| getTypeMenu ($queryType) | |
| getUserInput ($user) | |
| getTitleInput ($title) | |
| getTitlePattern ($pattern) | |
| 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, out(), and preCacheMessages().
| LogEventsList::beginLogEventsList | ( | ) |
| LogEventsList::endLogEventsList | ( | ) |
Definition at line 197 of file LogEventsList.php.
Referenced by UploadForm::showDeletionLog(), EditPage::showDeletionLog(), and Article::showDeletionLog().
| LogEventsList::getDefaultQuery | ( | ) | [private] |
| 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 463 of file LogEventsList.php.
References $db, $wgLogRestrictions, and $wgUser.
Referenced by WikiExporter::dumpFrom(), ApiQueryLogEvents::execute(), and LogPager::limitType().
| LogEventsList::getFilterLinks | ( | $ | logType, | |
| $ | filter | |||
| ) | [private] |
Definition at line 97 of file LogEventsList.php.
References $filter, $messages, $type, $wgLang, $wgTitle, getDefaultQuery(), Xml::hidden(), wfArrayToCGI(), and wfMsgHtml().
Referenced by showOptions().
| LogEventsList::getShowHideLinks | ( | $ | row | ) | [private] |
| $row | Row |
Definition at line 362 of file LogEventsList.php.
References $del, $row, LogPage::DELETED_RESTRICTED, SpecialPage::getTitleFor(), and Xml::tags().
Referenced by logLine().
| LogEventsList::getTitleInput | ( | $ | title | ) | [private] |
| $title | String |
Definition at line 180 of file LogEventsList.php.
References $title, Xml::inputLabel(), and wfMsg().
Referenced by showOptions().
| LogEventsList::getTitlePattern | ( | $ | pattern | ) | [private] |
Definition at line 187 of file LogEventsList.php.
References Xml::checkLabel(), and wfMsg().
Referenced by showOptions().
| LogEventsList::getTypeMenu | ( | $ | queryType | ) | [private] |
| $queryType | String |
Definition at line 134 of file LogEventsList.php.
References $text, $type, $wgLogRestrictions, $wgUser, LogPage::logName(), Xml::option(), and LogPage::validTypes().
Referenced by showOptions().
| LogEventsList::getUserInput | ( | $ | user | ) | [private] |
| $user | String |
Definition at line 172 of file LogEventsList.php.
References $user, 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 425 of file LogEventsList.php.
References $row.
Referenced by ApiQueryLogEvents::extractRowInfo(), and SpecialRevisionDelete::logLine().
| LogEventsList::logLine | ( | $ | row | ) |
| $row | Row: a single row from the result set |
Definition at line 205 of file LogEventsList.php.
References $action, $classes, $del, $key, $n, $row, $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(), wfArrayToCGI(), 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 | String |
Definition at line 54 of file LogEventsList.php.
References $type, LogPage::isLogType(), LogPage::logHeader(), LogPage::logName(), and out().
| static LogEventsList::showLogExtract | ( | $ | out, | |
| $ | type = '', |
|||
| $ | page = '', |
|||
| $ | user = '', |
|||
| $ | lim = 0, |
|||
| $ | conds = array() | |||
| ) | [static] |
Quick function to show a short log extract.
| $out | OutputPage | |
| $type | String | |
| $page | String | |
| $user | String | |
| $lim | Integer | |
| $conds | Array |
Definition at line 438 of file LogEventsList.php.
References $conds, $out, $page, $type, $user, and $wgUser.
Referenced by Article::confirmDelete(), Article::delete(), Article::doDelete(), SpecialRevisionDelete::execute(), EditPage::showEditForm(), UndeleteForm::showHistory(), MergehistoryForm::showHistory(), FileDeleteForm::showLogEntries(), UserrightsPage::showLogFragment(), MovePageForm::showLogFragment(), and IPBlockForm::showLogFragment().
| LogEventsList::showOptions | ( | $ | type = '', |
|
| $ | user = '', |
|||
| $ | page = '', |
|||
| $ | pattern = '', |
|||
| $ | year = '', |
|||
| $ | month = '', |
|||
| $ | filter = null, |
|||
| $ | tagFilter = '' | |||
| ) |
Show options for the log list.
| $type | String | |
| $user | String | |
| $page | String | |
| $pattern | String | |
| $year | Integer: year | |
| $month | Integer: month | |
| $filter,: | array | |
| $tagFilter,: | array? |
Definition at line 72 of file LogEventsList.php.
References $action, $filter, $page, $title, $type, $user, $wgMiserMode, $wgScript, ChangeTags::buildTagFilterSelector(), Xml::dateMenu(), Xml::element(), getFilterLinks(), SpecialPage::getTitleFor(), getTitleInput(), getTitlePattern(), getTypeMenu(), getUserInput(), Xml::hidden(), out(), Xml::submitButton(), Xml::tags(), and wfMsg().
| static LogEventsList::typeAction | ( | $ | row, | |
| $ | type, | |||
| $ | action, | |||
| $ | right = '' | |||
| ) | [static] |
| 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 407 of file LogEventsList.php.
References $row, $wgUser, LogPage::DELETED_RESTRICTED, and wfDebug().
Referenced by SpecialRevisionDelete::logLine(), RevisionDeleter::setEventVisibility(), and SpecialRevisionDelete::showLogItems().
| LogEventsList::$flags |
LogEventsList::$out [private] |
LogEventsList::$skin [private] |
| const LogEventsList::NO_ACTION_LINK = 1 |
Definition at line 21 of file LogEventsList.php.
1.5.9