MediaWiki
master
|
Public Member Functions | |
__construct ( $context, $linkRenderer=null, $flags=0) | |
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, $extras=[], $tagInvert=false) | |
Show options for the log list. More... | |
![]() | |
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... | |
getActionName () | |
Get the action name for the current web request. More... | |
getAuthority () | |
getConfig () | |
getContext () | |
Get the base IContextSource object. More... | |
getCsrfTokenSet () | |
Get a repository to obtain and match CSRF tokens. More... | |
getLanguage () | |
getOutput () | |
getRequest () | |
getSkin () | |
getTiming () | |
getTitle () | |
getUser () | |
getWikiPage () | |
Get the WikiPage object. More... | |
msg ( $key,... $params) | |
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', Authority $performer=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) |
static | userCan ( $row, $field, Authority $performer) |
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, Authority $performer) |
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, Authority $performer) |
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 |
bool | $showTagEditUI |
Definition at line 35 of file LogEventsList.php.
LogEventsList::__construct | ( | $context, | |
$linkRenderer = null , |
|||
$flags = 0 |
|||
) |
IContextSource | $context | |
LinkRenderer | null | $linkRenderer | |
int | $flags | Can be a combination of self::NO_ACTION_LINK, self::NO_EXTRA_USER_LINKS or self::USE_CHECKBOXES. |
Definition at line 70 of file LogEventsList.php.
References $flags, ContextSource\getAuthority(), ContextSource\setContext(), and ChangeTags\showTagEditingUI().
LogEventsList::beginLogEventsList | ( | ) |
Definition at line 371 of file LogEventsList.php.
LogEventsList::endLogEventsList | ( | ) |
Definition at line 378 of file LogEventsList.php.
|
static |
SQL clause to skip forbidden log types for this user.
\\Wikimedia\\Rdbms\\IReadableDatabase | $db | |
string | $audience | Public/user |
Authority | null | $performer | User to check, required when audience isn't public |
InvalidArgumentException |
Definition at line 816 of file LogEventsList.php.
Referenced by WikiExporter\dumpLogs(), ApiQueryLogEvents\execute(), and ApiQueryLogEvents\getCacheMode().
|
protected |
Definition at line 84 of file LogEventsList.php.
Referenced by logLine().
|
static |
stdClass | $row | |
int | $field | One of DELETED_* bitfield constants |
Definition at line 590 of file LogEventsList.php.
Referenced by ProtectedPagesPager\formatValue().
LogEventsList::logLine | ( | $row | ) |
stdClass | $row | A single row from the result set |
Definition at line 386 of file LogEventsList.php.
References ChangeTags\formatSummaryRow(), ContextSource\getContext(), ContextSource\getLanguage(), getLinkRenderer(), SpecialPage\getTitleValueFor(), LogFormatter\newFromEntry(), and DatabaseLogEntry\newFromRow().
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 364 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 | PageReference | $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 619 of file LogEventsList.php.
References $flags, DB_PRIMARY, RequestContext\getMain(), MediaWiki\HookContainer\HookRunner\onLogEventsListShowLogExtract(), and wfGetDB().
Referenced by MediaWiki\Specials\SpecialContributions\contributionsSub(), MediaWiki\Specials\SpecialEditTags\execute(), SpecialRevisionDelete\execute(), SpecialUnblock\execute(), SpecialUpload\getUploadForm(), ImagePage\openShowImage(), MediaWiki\Specials\SpecialBlock\postHtml(), MediaWiki\Specials\SpecialChangeContentModel\postHtml(), MediaWiki\Specials\SpecialMovePage\showForm(), SpecialUndelete\showHistory(), MediaWiki\Specials\SpecialUserRights\showLogFragment(), and Article\showMissingArticle().
LogEventsList::showOptions | ( | $types = [] , |
|
$user = '' , |
|||
$page = '' , |
|||
$pattern = false , |
|||
$year = 0 , |
|||
$month = 0 , |
|||
$day = 0 , |
|||
$filter = null , |
|||
$tagFilter = '' , |
|||
$action = null , |
|||
$extras = [] , |
|||
$tagInvert = false |
|||
) |
Show options for the log list.
array | string | $types | |
string | $user | |
string | PageReference | $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 | |
array | $extras | |
bool | $tagInvert | whether tags are filtered for (false) or out (true) |
Definition at line 110 of file LogEventsList.php.
References HTMLForm\factory(), ContextSource\getConfig(), ContextSource\getContext(), SpecialPage\getTitleFor(), and wfDeprecated().
|
static |
stdClass | $row | |
string | array | $type | |
string | array | $action |
Definition at line 523 of file LogEventsList.php.
References $type.
|
static |
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.
stdClass | $row | |
int | $field | |
Authority | $performer | User to check |
Definition at line 543 of file LogEventsList.php.
References userCanBitfield(), and userCanViewLogType().
Referenced by ChangeTagsLogItem\canView(), RevDelLogItem\canView(), 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.
int | $bitfield | Current field |
int | $field | |
Authority | $performer | User to check |
Definition at line 557 of file LogEventsList.php.
References LogPage\DELETED_RESTRICTED, MediaWiki\Permissions\Authority\isAllowed(), and MediaWiki\Permissions\Authority\isAllowedAny().
Referenced by LogFormatter\canView(), ApiQueryRecentChanges\extractRowInfo(), ProtectedPagesPager\formatValue(), ChangesList\userCan(), and userCan().
|
static |
Determine if the current user is allowed to view a particular field of this log row, if it's marked as restricted log type.
string | $type | |
Authority | $performer | User to check |
Definition at line 576 of file LogEventsList.php.
References $type, and MediaWiki\Permissions\Authority\isAllowed().
Referenced by userCan().
|
protected |
Definition at line 50 of file LogEventsList.php.
LogEventsList::$flags |
Definition at line 40 of file LogEventsList.php.
Referenced by __construct(), and showLogExtract().
|
protected |
Definition at line 45 of file LogEventsList.php.
const LogEventsList::NO_ACTION_LINK = 1 |
Definition at line 36 of file LogEventsList.php.
const LogEventsList::NO_EXTRA_USER_LINKS = 2 |
Definition at line 37 of file LogEventsList.php.
const LogEventsList::USE_CHECKBOXES = 4 |
Definition at line 38 of file LogEventsList.php.