MediaWiki
1.33.0
|
Public Member Functions | |
__construct ( $context, $linkRenderer=null, $flags=0) | |
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. More... | |
beginLogEventsList () | |
endLogEventsList () | |
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=false, $year=0, $month=0, $day=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 () | |
getContext () | |
Get the base IContextSource object. More... | |
getLanguage () | |
getOutput () | |
getRequest () | |
getSkin () | |
getStats () | |
getTiming () | |
getTitle () | |
getUser () | |
getWikiPage () | |
Get the WikiPage object. More... | |
msg ( $key) | |
Get a Message object with context set Parameters are the same as wfMessage() More... | |
setContext (IContextSource $context) | |
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 and/or restricted log type. 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... | |
static | userCanViewLogType ( $type, User $user=null) |
Determine if the current user is allowed to view a particular field of this log row, if it's marked as restricted log type. More... | |
Public Attributes | |
$flags | |
const | NO_ACTION_LINK = 1 |
const | NO_EXTRA_USER_LINKS = 2 |
const | USE_CHECKBOXES = 4 |
Protected Member Functions | |
getLinkRenderer () | |
Protected Attributes | |
array | $allowedActions = null |
array | $mDefaultQuery |
bool | $showTagEditUI |
Private Member Functions | |
getActionSelectorDesc ( $types, $action) | |
Drop down menu for selection of actions that can be used to filter the log. More... | |
getDefaultQuery () | |
getExtraInputsDesc ( $types) | |
getFiltersDesc ( $filter) | |
getShowHideLinks ( $row) | |
getTitleInputDesc ( $title) | |
getTitlePatternDesc ( $pattern) | |
getTypeMenuDesc ( $queryTypes) | |
getUserInputDesc ( $user) | |
Private Attributes | |
LinkRenderer null | $linkRenderer |
Definition at line 30 of file LogEventsList.php.
LogEventsList::__construct | ( | $context, | |
$linkRenderer = null , |
|||
$flags = 0 |
|||
) |
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. |
LinkRenderer | null | $linkRenderer | previously unused |
int | $flags | Can be a combination of self::NO_ACTION_LINK, self::NO_EXTRA_USER_LINKS or self::USE_CHECKBOXES. |
Definition at line 67 of file LogEventsList.php.
References ContextSource\$context, $flags, $linkRenderer, ContextSource\getUser(), ContextSource\setContext(), and ChangeTags\showTagEditingUI().
LogEventsList::beginLogEventsList | ( | ) |
Definition at line 372 of file LogEventsList.php.
LogEventsList::endLogEventsList | ( | ) |
Definition at line 379 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 341 of file LogEventsList.php.
References $value, as, and ContextSource\msg().
Referenced by showOptions().
|
private |
Definition at line 223 of file LogEventsList.php.
References $mDefaultQuery, and ContextSource\getRequest().
SQL clause to skip forbidden log types for this user.
IDatabase | $db | |
string | $audience | Public/user |
User | null | $user | User to check, or null to use $wgUser |
Definition at line 785 of file LogEventsList.php.
References $user, $wgLogRestrictions, as, and captcha-old\count.
Referenced by WikiExporter\dumpLogs(), ApiQueryLogEvents\execute(), ApiQueryLogEvents\getCacheMode(), and LogPager\limitType().
|
private |
array | $types |
Definition at line 313 of file LogEventsList.php.
References $formDescriptor, $input, captcha-old\count, and Hooks\run().
Referenced by showOptions().
|
private |
array | $filter |
Definition at line 199 of file LogEventsList.php.
References $filter, $options, $type, as, ContextSource\msg(), and text.
Referenced by showOptions().
|
protected |
Definition at line 86 of file LogEventsList.php.
References $linkRenderer.
Referenced by logLine().
|
private |
stdClass | $row |
Definition at line 444 of file LogEventsList.php.
References $query, $user, Xml\check(), LogPage\DELETED_RESTRICTED, SpecialPage\getTitleFor(), ContextSource\getUser(), isDeleted(), Linker\revDeleteLink(), and Linker\revDeleteLinkDisabled().
Referenced by logLine().
|
private |
string | $title |
Definition at line 288 of file LogEventsList.php.
References false.
Referenced by showOptions().
|
private |
bool | $pattern |
Definition at line 301 of file LogEventsList.php.
Referenced by showOptions().
|
private |
array | $queryTypes |
Definition at line 242 of file LogEventsList.php.
References $type, as, captcha-old\count, ContextSource\getUser(), and LogPage\validTypes().
Referenced by showOptions().
|
private |
string | $user |
Definition at line 275 of file LogEventsList.php.
References $user.
Referenced by showOptions().
|
static |
stdClass | $row | |
int | $field | One of DELETED_* bitfield constants |
Definition at line 598 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 387 of file LogEventsList.php.
References $attribs, $ret, $revert, $time, class, ChangeTags\formatSummaryRow(), ContextSource\getContext(), ContextSource\getLanguage(), getLinkRenderer(), getShowHideLinks(), ContextSource\getUser(), list, LogFormatter\newFromEntry(), DatabaseLogEntry\newFromRow(), and Hooks\run().
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 365 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 | |
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 627 of file LogEventsList.php.
References $args, ContextSource\$context, $flags, $lang, $linkRenderer, $out, $s, $user, array(), captcha-old\count, DB_MASTER, div, IContextSource\getLanguage(), RequestContext\getMain(), IContextSource\getOutput(), link, message, MessageLocalizer\msg(), Xml\openElement(), 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 = false , |
|||
$year = 0 , |
|||
$month = 0 , |
|||
$day = 0 , |
|||
$filter = null , |
|||
$tagFilter = '' , |
|||
$action = null |
|||
) |
Show options for the log list.
array | string | $types | |
string | $user | |
string | $page | |
bool | $pattern | |
int | string | $year | Use 0 to start with no year preselected. |
int | string | $month | A month in the 1..12 range. Use 0 to start with no month preselected. |
int | string | $day | A day in the 1..31 range. Use 0 to start with no month preselected. |
array | null | $filter | |
string | $tagFilter | Tag to select by default |
string | null | $action |
Definition at line 110 of file LogEventsList.php.
References ContextSource\$context, $filter, $formDescriptor, $user, array(), captcha-old\count, HTMLForm\factory(), getActionSelectorDesc(), ContextSource\getConfig(), ContextSource\getContext(), getExtraInputsDesc(), getFiltersDesc(), SpecialPage\getTitleFor(), getTitleInputDesc(), getTitlePatternDesc(), getTypeMenuDesc(), getUserInputDesc(), ContextSource\msg(), text, and wfDeprecated().
|
static |
stdClass | $row | |
string | array | $type | |
string | array | $action | |
string | $right |
Definition at line 517 of file LogEventsList.php.
References $type.
Referenced by PopulateLogSearch\doDBUpdates().
Determine if the current user is allowed to view a particular field of this log row, if it's marked as deleted and/or restricted log type.
Definition at line 541 of file LogEventsList.php.
References $user, userCanBitfield(), and userCanViewLogType().
Referenced by RevDelLogItem\canView(), ChangeTagsLogItem\canView(), ApiQueryLogEvents\extractRowInfo(), and RevDelLogItem\getApiData().
Determine if the current user is allowed to view a particular field of this log row, if it's marked as deleted.
int | $bitfield | Current field |
int | $field | |
User | null | $user | User to check, or null to use $wgUser |
Definition at line 555 of file LogEventsList.php.
References $user, LogPage\DELETED_RESTRICTED, and wfDebug().
Referenced by LogFormatter\canView(), ApiQueryWatchlist\extractOutputData(), ApiQueryRecentChanges\extractRowInfo(), ProtectedPagesPager\formatValue(), userCan(), and ChangesList\userCan().
Determine if the current user is allowed to view a particular field of this log row, if it's marked as restricted log type.
Definition at line 581 of file LogEventsList.php.
Referenced by userCan().
Definition at line 50 of file LogEventsList.php.
LogEventsList::$flags |
Definition at line 35 of file LogEventsList.php.
Referenced by __construct(), and showLogExtract().
|
private |
Definition at line 55 of file LogEventsList.php.
Referenced by __construct(), getLinkRenderer(), and showLogExtract().
|
protected |
Definition at line 40 of file LogEventsList.php.
Referenced by getDefaultQuery().
|
protected |
Definition at line 45 of file LogEventsList.php.
const LogEventsList::NO_ACTION_LINK = 1 |
Definition at line 31 of file LogEventsList.php.
const LogEventsList::NO_EXTRA_USER_LINKS = 2 |
Definition at line 32 of file LogEventsList.php.
const LogEventsList::USE_CHECKBOXES = 4 |
Definition at line 33 of file LogEventsList.php.
Referenced by SpecialLog\show().