MediaWiki
REL1_24
|
Public Member Functions | |
__construct ($context, $unused=null, $flags=0) | |
Constructor. | |
beginLogEventsList () | |
endLogEventsList () | |
getDisplayTitle () | |
Deprecated alias for getTitle(); do not use. | |
getTypeSelector () | |
Returns log page selector. | |
logLine ($row) | |
showOptions ($types=array(), $user= '', $page= '', $pattern= '', $year=0, $month=0, $filter=null, $tagFilter= '') | |
Show options for the log list. | |
Static Public Member Functions | |
static | getExcludeClause ($db, $audience= 'public', User $user=null) |
SQL clause to skip forbidden log types for this user. | |
static | isDeleted ($row, $field) |
static | showLogExtract (&$out, $types=array(), $page= '', $user= '', $param=array()) |
Show log extract. | |
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. | |
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. | |
Public Attributes | |
$flags | |
const | NO_ACTION_LINK = 1 |
const | NO_EXTRA_USER_LINKS = 2 |
const | USE_REVDEL_CHECKBOXES = 4 |
Protected Attributes | |
array | $mDefaultQuery |
Private Member Functions | |
getDefaultQuery () | |
getExtraInputs ($types) | |
getFilterLinks ($filter) | |
getShowHideLinks ($row) | |
getTitleInput ($title) | |
getTitlePattern ($pattern) | |
getTypeMenu ($queryTypes) | |
getUserInput ($user) |
Definition at line 26 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_REVDEL_CHECKBOXES. |
Definition at line 48 of file LogEventsList.php.
Definition at line 289 of file LogEventsList.php.
Definition at line 296 of file LogEventsList.php.
LogEventsList::getDefaultQuery | ( | ) | [private] |
Definition at line 167 of file LogEventsList.php.
References ContextSource\getRequest().
Deprecated alias for getTitle(); do not use.
Definition at line 65 of file LogEventsList.php.
static LogEventsList::getExcludeClause | ( | $ | db, |
$ | audience = 'public' , |
||
User $ | user = null |
||
) | [static] |
SQL clause to skip forbidden log types for this user.
DatabaseBase | $db | |
string | $audience | Public/user |
User | $user | User to check, or null to use $wgUser |
Definition at line 635 of file LogEventsList.php.
Referenced by ApiQueryLogEvents\execute(), and ApiQueryLogEvents\getCacheMode().
LogEventsList::getExtraInputs | ( | $ | types | ) | [private] |
LogEventsList::getFilterLinks | ( | $ | filter | ) | [private] |
array | $filter |
Definition at line 136 of file LogEventsList.php.
LogEventsList::getShowHideLinks | ( | $ | row | ) | [private] |
LogEventsList::getTitleInput | ( | $ | title | ) | [private] |
string | $title |
Definition at line 246 of file LogEventsList.php.
LogEventsList::getTitlePattern | ( | $ | pattern | ) | [private] |
string | $pattern |
Definition at line 262 of file LogEventsList.php.
LogEventsList::getTypeMenu | ( | $ | queryTypes | ) | [private] |
array | $queryTypes |
Definition at line 186 of file LogEventsList.php.
Returns log page selector.
Definition at line 199 of file LogEventsList.php.
LogEventsList::getUserInput | ( | $ | user | ) | [private] |
string | $user |
Definition at line 230 of file LogEventsList.php.
static LogEventsList::isDeleted | ( | $ | row, |
$ | field | ||
) | [static] |
stdClass | $row | Row |
int | $field | One of DELETED_* bitfield constants |
Definition at line 464 of file LogEventsList.php.
Referenced by ApiQueryLogEvents\extractRowInfo(), ProtectedPagesPager\formatValue(), and RevDelLogItem\getHTML().
LogEventsList::logLine | ( | $ | row | ) |
stdClass | $row | A single row from the result set |
Definition at line 304 of file LogEventsList.php.
static LogEventsList::showLogExtract | ( | &$ | out, |
$ | types = array() , |
||
$ | page = '' , |
||
$ | user = '' , |
||
$ | param = array() |
||
) | [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 491 of file LogEventsList.php.
Referenced by DeletedContributionsPage\__construct(), SpecialContributions\contributionsSub(), SpecialBlock\postText(), SpecialPageLanguage\showLogFragment(), and UserrightsPage\showLogFragment().
LogEventsList::showOptions | ( | $ | types = array() , |
$ | user = '' , |
||
$ | page = '' , |
||
$ | pattern = '' , |
||
$ | year = 0 , |
||
$ | month = 0 , |
||
$ | filter = null , |
||
$ | tagFilter = '' |
||
) |
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 |
Definition at line 82 of file LogEventsList.php.
static LogEventsList::typeAction | ( | $ | row, |
$ | type, | ||
$ | action, | ||
$ | right = '' |
||
) | [static] |
stdClass | $row | Row |
string | array | $type | |
string | array | $action | |
string | $right |
Definition at line 404 of file LogEventsList.php.
Referenced by PopulateLogSearch\doDBUpdates().
static LogEventsList::userCan | ( | $ | row, |
$ | field, | ||
User $ | user = null |
||
) | [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 428 of file LogEventsList.php.
Referenced by RevDelLogItem\canView(), ApiQueryLogEvents\extractRowInfo(), and RevDelLogItem\getApiData().
static LogEventsList::userCanBitfield | ( | $ | bitfield, |
$ | field, | ||
User $ | user = null |
||
) | [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 441 of file LogEventsList.php.
Referenced by ApiQueryWatchlist\extractRowInfo(), ApiQueryRecentChanges\extractRowInfo(), and ProtectedPagesPager\formatValue().
LogEventsList::$flags |
Definition at line 31 of file LogEventsList.php.
array LogEventsList::$mDefaultQuery [protected] |
Definition at line 35 of file LogEventsList.php.
const LogEventsList::NO_ACTION_LINK = 1 |
Definition at line 27 of file LogEventsList.php.
const LogEventsList::NO_EXTRA_USER_LINKS = 2 |
Definition at line 28 of file LogEventsList.php.
const LogEventsList::USE_REVDEL_CHECKBOXES = 4 |
Definition at line 29 of file LogEventsList.php.
Referenced by SpecialLog\show().