MediaWiki
REL1_19
|
Public Member Functions | |
__construct ($skin, $out, $flags=0) | |
beginLogEventsList () | |
endLogEventsList () | |
getContext () | |
getDisplayTitle () | |
Get the Title object of the page the links should point to. | |
getTypeSelector () | |
Returns log page selector. | |
logLine ($row) | |
showHeader ($type) | |
Set page title and show header for this log type. | |
showOptions ($types=array(), $user='', $page='', $pattern='', $year='', $month= '', $filter=null, $tagFilter='') | |
Show options for the log list. | |
Static Public Member Functions | |
static | getExcludeClause ($db, $audience= 'public') |
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 |
Protected Attributes | |
$mDefaultQuery | |
$message | |
Private Member Functions | |
getDefaultQuery () | |
getExtraInputs ($types) | |
getFilterLinks ($filter) | |
getShowHideLinks ($row) | |
getTitleInput ($title) | |
getTitlePattern ($pattern) | |
getTypeMenu ($queryTypes) | |
getUserInput ($user) | |
logActionLinks ($row, $title, $paramArray, &$comment) | |
: split up! | |
logTimestamp (LogEntry $entry) | |
preCacheMessages () | |
As we use the same small set of messages in various methods and that they are called often, we call them once and save them in $this->message. | |
Private Attributes | |
$out | |
$skin |
Definition at line 26 of file LogEventsList.php.
LogEventsList::__construct | ( | $ | skin, |
$ | out, | ||
$ | flags = 0 |
||
) |
Definition at line 51 of file LogEventsList.php.
References $flags, $out, $skin, and preCacheMessages().
Definition at line 316 of file LogEventsList.php.
Definition at line 323 of file LogEventsList.php.
Definition at line 216 of file LogEventsList.php.
LogEventsList::getDefaultQuery | ( | ) | [private] |
Definition at line 190 of file LogEventsList.php.
Referenced by getFilterLinks().
Get the Title object of the page the links should point to.
This is NOT the Title of the page the entries should be restricted to.
Definition at line 212 of file LogEventsList.php.
Referenced by getFilterLinks().
static LogEventsList::getExcludeClause | ( | $ | db, |
$ | audience = 'public' |
||
) | [static] |
SQL clause to skip forbidden log types for this user.
$db | DatabaseBase |
$audience | string, public/user |
Definition at line 733 of file LogEventsList.php.
References $wgLogRestrictions, and $wgUser.
Referenced by WikiExporter\dumpFrom(), ApiQueryLogEvents\execute(), and LogPager\limitType().
LogEventsList::getExtraInputs | ( | $ | types | ) | [private] |
$types |
Definition at line 299 of file LogEventsList.php.
References $user, Xml\inputLabel(), IP\isIPAddress(), User\newFromName(), and wfMsg().
Referenced by showOptions().
LogEventsList::getFilterLinks | ( | $ | filter | ) | [private] |
$filter | Array |
Definition at line 159 of file LogEventsList.php.
References $messages, $wgLang, getDefaultQuery(), getDisplayTitle(), Html\hidden(), Linker\link(), and wfMsgHtml().
Referenced by showOptions().
LogEventsList::getShowHideLinks | ( | $ | row | ) | [private] |
$row | Row |
Definition at line 503 of file LogEventsList.php.
References $wgUser, LogPage\DELETED_RESTRICTED, SpecialPage\getTitleFor(), Linker\revDeleteLink(), and Linker\revDeleteLinkDisabled().
Referenced by logLine().
LogEventsList::getTitleInput | ( | $ | title | ) | [private] |
$title | String |
Definition at line 279 of file LogEventsList.php.
References $title, Xml\inputLabel(), and wfMsg().
Referenced by showOptions().
LogEventsList::getTitlePattern | ( | $ | pattern | ) | [private] |
$pattern |
Definition at line 289 of file LogEventsList.php.
References Xml\checkLabel(), and wfMsg().
Referenced by showOptions().
LogEventsList::getTypeMenu | ( | $ | queryTypes | ) | [private] |
$queryTypes | Array |
Definition at line 224 of file LogEventsList.php.
References getTypeSelector().
Referenced by showOptions().
Returns log page selector.
Definition at line 236 of file LogEventsList.php.
References $page, $wgUser, and LogPage\validTypes().
Referenced by getTypeMenu().
LogEventsList::getUserInput | ( | $ | user | ) | [private] |
$user | String |
Definition at line 269 of file LogEventsList.php.
References $user, Xml\inputLabel(), and wfMsg().
Referenced by showOptions().
static LogEventsList::isDeleted | ( | $ | row, |
$ | field | ||
) | [static] |
$row | Row |
$field | Integer: one of DELETED_* bitfield constants |
Definition at line 598 of file LogEventsList.php.
Referenced by ApiQueryLogEvents\extractRowInfo(), and RevDel_LogItem\getHTML().
LogEventsList::logActionLinks | ( | $ | row, |
$ | title, | ||
$ | paramArray, | ||
&$ | comment | ||
) | [private] |
: split up!
$row | ||
Title | $title | |
Array | $paramArray | |
$comment |
Definition at line 375 of file LogEventsList.php.
References $comment, $title, $wgUser, LogPage\DELETED_ACTION, RevisionDeleter\getLogLinks(), SpecialPage\getTitleFor(), Linker\link(), Title\newFromText(), wfMsgForContent(), and wfRunHooks().
Referenced by logLine().
LogEventsList::logLine | ( | $ | row | ) |
$row | Row: a single row from the result set |
Definition at line 331 of file LogEventsList.php.
References $comment, $title, LogPage\extractParams(), ChangeTags\formatSummaryRow(), getShowHideLinks(), logActionLinks(), logTimestamp(), LogFormatter\newFromEntry(), DatabaseLogEntry\newFromRow(), and Xml\tags().
LogEventsList::logTimestamp | ( | LogEntry $ | entry | ) | [private] |
Definition at line 360 of file LogEventsList.php.
References $wgLang, LogEntry\getTimestamp(), and wfTimestamp().
Referenced by logLine().
LogEventsList::preCacheMessages | ( | ) | [private] |
As we use the same small set of messages in various methods and that they are called often, we call them once and save them in $this->message.
Definition at line 62 of file LogEventsList.php.
References $messages, and wfMsgExt().
Referenced by __construct().
LogEventsList::showHeader | ( | $ | type | ) |
Set page title and show header for this log type.
$type | Array |
Definition at line 79 of file LogEventsList.php.
References $page, LogPage\isLogType(), wfDeprecated(), and wfMsgExt().
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)
$out | OutputPage|String-by-reference |
$types | String|Array Log types to show |
$page | String|Title The page title to show log entries for |
$user | String The user who made the log entries |
$param | Associative Array with the following additional options:
|
Definition at line 623 of file LogEventsList.php.
References $flags, $out, $page, $user, RequestContext\getMain(), Html\rawElement(), wfMsgExt(), and wfRunHooks().
Referenced by Article\confirmDelete(), SpecialContributions\contributionsSub(), Article\delete(), Article\doDelete(), SpecialRevisionDelete\execute(), DeletedContributionsPage\getSubTitle(), SpecialUpload\getUploadForm(), HistoryAction\onView(), SpecialBlock\postText(), MovePageForm\showForm(), EditPage\showHeader(), SpecialMergeHistory\showHistory(), SpecialUndelete\showHistory(), EditPage\showIntro(), FileDeleteForm\showLogEntries(), UserrightsPage\showLogFragment(), MovePageForm\showLogFragment(), and Article\showMissingArticle().
LogEventsList::showOptions | ( | $ | types = array() , |
$ | user = '' , |
||
$ | page = '' , |
||
$ | pattern = '' , |
||
$ | year = '' , |
||
$ | month = '' , |
||
$ | filter = null , |
||
$ | tagFilter = '' |
||
) |
Show options for the log list.
$types | string or Array |
$user | String |
$page | String |
$pattern | String |
$year | Integer: year |
$month | Integer: month |
$filter,: | array |
$tagFilter,: | array? |
Definition at line 104 of file LogEventsList.php.
References $page, $title, $user, $wgMiserMode, $wgScript, ChangeTags\buildTagFilterSelector(), Xml\dateMenu(), Xml\fieldset(), getExtraInputs(), getFilterLinks(), SpecialPage\getTitleFor(), getTitleInput(), getTitlePattern(), getTypeMenu(), getUserInput(), Html\hidden(), Xml\submitButton(), Xml\tags(), and wfMsg().
static LogEventsList::typeAction | ( | $ | row, |
$ | type, | ||
$ | action, | ||
$ | right = '' |
||
) | [static] |
$row | Row |
$type | Mixed: string/array |
$action | Mixed: string/array |
$right | string |
Definition at line 539 of file LogEventsList.php.
References $wgUser.
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.
$row | Row |
$field | Integer |
$user | User object to check, or null to use $wgUser |
Definition at line 562 of file LogEventsList.php.
References $user, and userCanBitfield().
Referenced by RevDel_LogItem\canView().
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.
$bitfield | Integer (current field) |
$field | Integer |
$user | User object to check, or null to use $wgUser |
Definition at line 575 of file LogEventsList.php.
References $user, $wgUser, LogPage\DELETED_RESTRICTED, and wfDebug().
Referenced by LogFormatter\canView(), ChangesList\userCan(), and userCan().
LogEventsList::$flags |
Definition at line 39 of file LogEventsList.php.
Referenced by __construct(), and showLogExtract().
LogEventsList::$mDefaultQuery [protected] |
Definition at line 49 of file LogEventsList.php.
LogEventsList::$message [protected] |
Definition at line 44 of file LogEventsList.php.
LogEventsList::$out [private] |
Definition at line 38 of file LogEventsList.php.
Referenced by __construct(), and showLogExtract().
LogEventsList::$skin [private] |
Definition at line 33 of file LogEventsList.php.
Referenced by __construct().
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.