MediaWiki
1.29.2
|
Public Member Functions | |
__construct ( $context, $unused=null, $flags=0) | |
Constructor. More... | |
beginLogEventsList () | |
endLogEventsList () | |
getTypeSelector () | |
Returns log page selector. More... | |
logLine ( $row) | |
setAllowedActions ( $actions) | |
Sets the action types allowed for log filtering To one action type may correspond several log_actions. More... | |
showOptions ( $types=[], $user='', $page='', $pattern='', $year=0, $month=0, $filter=null, $tagFilter='', $action=null) | |
Show options for the log list. More... | |
Public Member Functions inherited from ContextSource | |
canUseWikiPage () | |
Check whether a WikiPage object can be get with getWikiPage(). More... | |
exportSession () | |
Export the resolved user IP, HTTP headers, user ID, and session ID. More... | |
getConfig () | |
Get the Config object. More... | |
getContext () | |
Get the base IContextSource object. More... | |
getLanguage () | |
Get the Language object. More... | |
getOutput () | |
Get the OutputPage object. More... | |
getRequest () | |
Get the WebRequest object. More... | |
getSkin () | |
Get the Skin object. More... | |
getStats () | |
Get the Stats object. More... | |
getTiming () | |
Get the Timing object. More... | |
getTitle () | |
Get the Title object. More... | |
getUser () | |
Get the User object. More... | |
getWikiPage () | |
Get the WikiPage object. More... | |
msg () | |
Get a Message object with context set Parameters are the same as wfMessage() More... | |
setContext (IContextSource $context) | |
Set the IContextSource object. More... | |
Static Public Member Functions | |
static | getExcludeClause ( $db, $audience='public', User $user=null) |
SQL clause to skip forbidden log types for this user. More... | |
static | isDeleted ( $row, $field) |
static | showLogExtract (&$out, $types=[], $page='', $user='', $param=[]) |
Show log extract. More... | |
static | typeAction ( $row, $type, $action, $right='') |
static | userCan ( $row, $field, User $user=null) |
Determine if the current user is allowed to view a particular field of this log row, if it's marked as deleted. More... | |
static | userCanBitfield ( $bitfield, $field, User $user=null) |
Determine if the current user is allowed to view a particular field of this log row, if it's marked as deleted. More... | |
Public Attributes | |
$flags | |
const | NO_ACTION_LINK = 1 |
const | NO_EXTRA_USER_LINKS = 2 |
const | USE_CHECKBOXES = 4 |
Protected Attributes | |
array | $allowedActions = null |
array | $mDefaultQuery |
bool | $showTagEditUI |
Private Member Functions | |
getActionSelector ( $types, $action) | |
Drop down menu for selection of actions that can be used to filter the log. More... | |
getDefaultQuery () | |
getExtraInputs ( $types) | |
getFilterLinks ( $filter) | |
getShowHideLinks ( $row) | |
getTitleInput ( $title) | |
getTitlePattern ( $pattern) | |
getTypeMenu ( $queryTypes) | |
getUserInput ( $user) | |
Definition at line 29 of file LogEventsList.php.
LogEventsList::__construct | ( | $context, | |
$unused = null , |
|||
$flags = 0 |
|||
) |
Constructor.
The first two parameters used to be $skin and $out, but now only a context is needed, that's why there's a second unused parameter.
IContextSource | Skin | $context | Context to use; formerly it was a Skin object. Use of Skin is deprecated. |
null | $unused | Unused; used to be an OutputPage object. |
int | $flags | Can be a combination of self::NO_ACTION_LINK, self::NO_EXTRA_USER_LINKS or self::USE_CHECKBOXES. |
Definition at line 62 of file LogEventsList.php.
References ContextSource\$context, $flags, flags, ContextSource\getUser(), ContextSource\setContext(), and ChangeTags\showTagEditingUI().
LogEventsList::beginLogEventsList | ( | ) |
Definition at line 343 of file LogEventsList.php.
LogEventsList::endLogEventsList | ( | ) |
Definition at line 350 of file LogEventsList.php.
|
private |
Drop down menu for selection of actions that can be used to filter the log.
array | $types | |
string | $action |
Definition at line 312 of file LogEventsList.php.
References $html, $value, as, captcha-old\count, Xml\label(), text, and wfMessage().
Referenced by showOptions().
|
private |
Definition at line 178 of file LogEventsList.php.
References $mDefaultQuery, and ContextSource\getRequest().
Referenced by getFilterLinks().
SQL clause to skip forbidden log types for this user.
Definition at line 717 of file LogEventsList.php.
References $user, $wgUser, as, captcha-old\count, and global.
Referenced by WikiExporter\dumpFrom(), ApiQueryLogEvents\execute(), ApiQueryLogEvents\getCacheMode(), and LogPager\limitType().
|
private |
array | $types |
Definition at line 284 of file LogEventsList.php.
References $input, $user, captcha-old\count, ContextSource\getRequest(), Xml\inputLabel(), IP\isIPAddress(), ContextSource\msg(), User\newFromName(), Hooks\run(), and text.
Referenced by showOptions().
|
private |
array | $filter |
Definition at line 146 of file LogEventsList.php.
References $link, $linkRenderer, $messages, $query, $type, as, getDefaultQuery(), ContextSource\getLanguage(), ContextSource\getTitle(), Html\hidden(), and ContextSource\msg().
Referenced by showOptions().
|
private |
stdClass | $row | Row |
Definition at line 402 of file LogEventsList.php.
References $query, $user, Xml\check(), LogPage\DELETED_RESTRICTED, flags, SpecialPage\getTitleFor(), ContextSource\getUser(), isDeleted(), Linker\revDeleteLink(), and Linker\revDeleteLinkDisabled().
Referenced by logLine().
|
private |
string | $title |
Definition at line 258 of file LogEventsList.php.
References $title, Xml\inputLabel(), ContextSource\msg(), and text.
Referenced by showOptions().
|
private |
string | $pattern |
Definition at line 274 of file LogEventsList.php.
References Xml\checkLabel(), ContextSource\msg(), and text.
Referenced by showOptions().
|
private |
array | $queryTypes |
Definition at line 197 of file LogEventsList.php.
References $selector, captcha-old\count, and getTypeSelector().
Referenced by showOptions().
LogEventsList::getTypeSelector | ( | ) |
Returns log page selector.
Definition at line 210 of file LogEventsList.php.
References $name, $page, $type, as, ContextSource\getUser(), and LogPage\validTypes().
Referenced by getTypeMenu().
|
private |
string | $user |
Definition at line 241 of file LogEventsList.php.
References $user, Xml\inputLabel(), ContextSource\msg(), and text.
Referenced by showOptions().
|
static |
stdClass | $row | Row |
int | $field | One of DELETED_* bitfield constants |
Definition at line 535 of file LogEventsList.php.
Referenced by ApiQueryLogEvents\extractRowInfo(), ProtectedPagesPager\formatValue(), ChangeTagsLogItem\getHTML(), RevDelLogItem\getHTML(), and getShowHideLinks().
LogEventsList::logLine | ( | $row | ) |
stdClass | $row | A single row from the result set |
Definition at line 358 of file LogEventsList.php.
References $revert, $time, flags, ChangeTags\formatSummaryRow(), ContextSource\getContext(), ContextSource\getLanguage(), getShowHideLinks(), ContextSource\getUser(), list, LogFormatter\newFromEntry(), DatabaseLogEntry\newFromRow(), and Html\rawElement().
LogEventsList::setAllowedActions | ( | $actions | ) |
Sets the action types allowed for log filtering To one action type may correspond several log_actions.
array | $actions |
Definition at line 336 of file LogEventsList.php.
|
static |
Show log extract.
Either with text and a box (set $msgKey) or without (don't set $msgKey)
OutputPage | string | $out | By-reference |
string | array | $types | Log types to show |
string | Title | $page | The page title to show log entries for |
string | $user | The user who made the log entries |
array | $param | Associative Array with the following additional options:
|
Definition at line 564 of file LogEventsList.php.
References $args, ContextSource\$context, $dir, $flags, $lang, $out, $page, $s, $user, array(), captcha-old\count, DB_MASTER, div, IContextSource\getLanguage(), RequestContext\getMain(), link, message, IContextSource\msg(), Xml\openElement(), Html\rawElement(), Hooks\run(), type, and wfGetDB().
Referenced by EditPage\addPageProtectionWarningHeaders(), Article\confirmDelete(), SpecialContributions\contributionsSub(), Article\delete(), Article\doDelete(), SpecialEditTags\execute(), SpecialRevisionDelete\execute(), DeletedContributionsPage\getSubTitle(), SpecialUpload\getUploadForm(), RenameuserHooks\onShowMissingArticle(), HistoryAction\onView(), ImagePage\openShowImage(), SpecialChangeContentModel\postText(), SpecialBlock\postText(), MovePageForm\showForm(), SpecialMergeHistory\showHistory(), SpecialUndelete\showHistory(), EditPage\showIntro(), FileDeleteForm\showLogEntries(), SpecialRenameuser\showLogExtract(), ProtectionForm\showLogExtract(), SpecialPageLanguage\showLogFragment(), MovePageForm\showLogFragment(), UserrightsPage\showLogFragment(), and Article\showMissingArticle().
LogEventsList::showOptions | ( | $types = [] , |
|
$user = '' , |
|||
$page = '' , |
|||
$pattern = '' , |
|||
$year = 0 , |
|||
$month = 0 , |
|||
$filter = null , |
|||
$tagFilter = '' , |
|||
$action = null |
|||
) |
Show options for the log list.
array | string | $types | |
string | $user | |
string | $page | |
string | $pattern | |
int | $year | Year |
int | $month | Month |
array | $filter | |
string | $tagFilter | Tag to select by default |
string | $action |
Definition at line 87 of file LogEventsList.php.
References $html, $page, $title, $user, $wgMiserMode, $wgScript, array(), ChangeTags\buildTagFilterSelector(), Xml\dateMenu(), Xml\fieldset(), getActionSelector(), ContextSource\getContext(), getExtraInputs(), getFilterLinks(), ContextSource\getOutput(), SpecialPage\getTitleFor(), getTitleInput(), getTitlePattern(), getTypeMenu(), getUserInput(), global, Html\hidden(), ContextSource\msg(), Xml\submitButton(), Xml\tags(), and text.
|
static |
stdClass | $row | Row |
string | array | $type | |
string | array | $action | |
string | $right |
Definition at line 475 of file LogEventsList.php.
References $type, $wgUser, and global.
Referenced by PopulateLogSearch\doDBUpdates().
|
static |
Determine if the current user is allowed to view a particular field of this log row, if it's marked as deleted.
Definition at line 499 of file LogEventsList.php.
References $user, and userCanBitfield().
Referenced by RevDelLogItem\canView(), ChangeTagsLogItem\canView(), ApiQueryLogEvents\extractRowInfo(), and RevDelLogItem\getApiData().
|
static |
Determine if the current user is allowed to view a particular field of this log row, if it's marked as deleted.
Definition at line 512 of file LogEventsList.php.
References $user, $wgUser, LogPage\DELETED_RESTRICTED, global, and wfDebug().
Referenced by LogFormatter\canView(), ApiQueryWatchlist\extractOutputData(), ApiQueryRecentChanges\extractRowInfo(), ProtectedPagesPager\formatValue(), userCan(), and ChangesList\userCan().
|
protected |
Definition at line 49 of file LogEventsList.php.
LogEventsList::$flags |
Definition at line 34 of file LogEventsList.php.
Referenced by __construct(), and showLogExtract().
|
protected |
Definition at line 39 of file LogEventsList.php.
Referenced by getDefaultQuery().
|
protected |
Definition at line 44 of file LogEventsList.php.
const LogEventsList::NO_ACTION_LINK = 1 |
Definition at line 30 of file LogEventsList.php.
const LogEventsList::NO_EXTRA_USER_LINKS = 2 |
Definition at line 31 of file LogEventsList.php.
const LogEventsList::USE_CHECKBOXES = 4 |
Definition at line 32 of file LogEventsList.php.
Referenced by SpecialLog\show().