MediaWiki REL1_41
|
Inherits ContextSource.
Public Member Functions | |
__construct ( $context, $linkRenderer=null, $flags=0) | |
beginLogEventsList () | |
endLogEventsList () | |
logLine ( $row) | |
showOptions ( $type='', $year=0, $month=0, $day=0) | |
Show options for the log list. | |
Public Member Functions inherited from ContextSource | |
canUseWikiPage () | |
Check whether a WikiPage object can be get with getWikiPage(). | |
exportSession () | |
Export the resolved user IP, HTTP headers, user ID, and session ID. | |
getActionName () | |
Get the action name for the current web request. | |
getAuthority () | |
getConfig () | |
getContext () | |
Get the base IContextSource object. | |
getCsrfTokenSet () | |
Get a repository to obtain and match CSRF tokens. | |
getLanguage () | |
getOutput () | |
getRequest () | |
getSkin () | |
getTiming () | |
getTitle () | |
getUser () | |
getWikiPage () | |
Get the WikiPage object. | |
msg ( $key,... $params) | |
Get a Message object with context set Parameters are the same as wfMessage() | |
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. | |
static | isDeleted ( $row, $field) |
static | showLogExtract (&$out, $types=[], $page='', $user='', $param=[]) |
Show log extract. | |
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. | |
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. | |
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. | |
Public Attributes | |
$flags | |
const | NO_ACTION_LINK = 1 |
const | NO_EXTRA_USER_LINKS = 2 |
const | USE_CHECKBOXES = 4 |
Protected Member Functions | |
getLinkRenderer () | |
Protected Attributes | |
bool | $showTagEditUI |
Definition at line 40 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 66 of file LogEventsList.php.
References $flags, getAuthority(), ContextSource\setContext(), and ChangeTags\showTagEditingUI().
LogEventsList::beginLogEventsList | ( | ) |
Definition at line 277 of file LogEventsList.php.
LogEventsList::endLogEventsList | ( | ) |
Definition at line 284 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 721 of file LogEventsList.php.
|
protected |
Definition at line 80 of file LogEventsList.php.
Referenced by logLine().
|
static |
stdClass | $row | |
int | $field | One of LogPage::DELETED_ACTION, ::DELETED_COMMENT, ::DELETED_USER, ::DELETED_RESTRICTED |
Definition at line 495 of file LogEventsList.php.
LogEventsList::logLine | ( | $row | ) |
stdClass | $row | A single row from the result set |
Definition at line 292 of file LogEventsList.php.
References ChangeTags\formatSummaryRow(), getContext(), ContextSource\getLanguage(), and getLinkRenderer().
|
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 524 of file LogEventsList.php.
References $flags, and MediaWiki\HookContainer\HookRunner\onLogEventsListShowLogExtract().
LogEventsList::showOptions | ( | $type = '', | |
$year = 0, | |||
$month = 0, | |||
$day = 0 ) |
Show options for the log list.
string | $type | Log type |
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. |
Definition at line 99 of file LogEventsList.php.
References ContextSource\getConfig(), getContext(), StatusValue\isGood(), and ContextSource\setContext().
|
static |
stdClass | $row | |
string | array | $type | |
string | array | $action |
Definition at line 429 of file LogEventsList.php.
|
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 | One of LogPage::DELETED_ACTION, ::DELETED_COMMENT, ::DELETED_USER, ::DELETED_RESTRICTED |
Authority | $performer | User to check |
Definition at line 449 of file LogEventsList.php.
|
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 | One of LogPage::DELETED_ACTION, ::DELETED_COMMENT, ::DELETED_USER, ::DELETED_RESTRICTED |
Authority | $performer | User to check |
Definition at line 463 of file LogEventsList.php.
References MediaWiki\Permissions\Authority\isAllowed(), and MediaWiki\Permissions\Authority\isAllowedAny().
|
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 482 of file LogEventsList.php.
References MediaWiki\Permissions\Authority\isAllowed().
LogEventsList::$flags |
Definition at line 45 of file LogEventsList.php.
Referenced by __construct(), and showLogExtract().
|
protected |
Definition at line 50 of file LogEventsList.php.
const LogEventsList::NO_ACTION_LINK = 1 |
Definition at line 41 of file LogEventsList.php.
const LogEventsList::NO_EXTRA_USER_LINKS = 2 |
Definition at line 42 of file LogEventsList.php.
const LogEventsList::USE_CHECKBOXES = 4 |
Definition at line 43 of file LogEventsList.php.