Go to the documentation of this file.
34 $params = parent::getMessageParameters();
36 $title = $this->entry->getTarget();
37 if ( substr(
$title->getText(), 0, 1 ) ===
'#' ) {
51 $subtype = $this->entry->getSubtype();
52 if ( $subtype ===
'block' || $subtype ===
'reblock' ) {
61 $durationTooltip =
'‎' . htmlspecialchars(
$params[4] );
63 "<span class=\"blockExpiry\" title=\"$durationTooltip\">" .
64 $this->context->getLanguage()->translateBlockExpiry(
66 $this->context->getUser(),
67 wfTimestamp( TS_UNIX, $this->entry->getTimestamp() )
79 $params = parent::extractParameters();
81 if ( $this->entry->isLegacy() && isset(
$params[3] ) ) {
92 $title = $this->entry->getTarget();
94 if ( substr(
$title->getText(), 0, 1 ) !==
'#' ) {
95 return [
$title->getTalkPage() ];
101 $subtype = $this->entry->getSubtype();
102 $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer();
104 || !( $subtype ===
'block' || $subtype ===
'reblock' )
105 || !$this->context->getUser()->isAllowed(
'block' )
111 $title = $this->entry->getTarget();
115 $this->
msg(
'unblocklink' )->text()
119 $this->
msg(
'change-blocklink' )->text()
123 return $this->
msg(
'parentheses' )->rawParams(
124 $this->context->getLanguage()->pipeList( $links ) )->escaped();
143 for ( $i = 0; $i < $flagsCount; $i++ ) {
148 ->rawParams(
$lang->commaList(
$flags ) )->escaped();
162 $messages[$flag] = htmlspecialchars( $flag );
172 $msg =
wfMessage(
'block-log-flags-' . $flag )->inLanguage(
$lang );
174 if ( $msg->exists() ) {
191 '6::flags' =>
'6:array:flags',
193 foreach ( $map
as $index => $key ) {
194 if ( isset(
$params[$index] ) ) {
201 if ( $subtype ===
'block' || $subtype ===
'reblock' ) {
204 '5::duration' =>
'infinite',
205 '6:array:flags' => [],
208 if ( !is_array(
$params[
'6:array:flags'] ) ) {
211 : explode(
',',
$params[
'6:array:flags'] );
216 $expiry = strtotime(
$params[
'5::duration'], $ts );
217 if ( $expiry !==
false && $expiry > 0 ) {
218 $params[
':timestamp:expiry'] = $expiry;
227 $ret = parent::formatParametersForApi();
228 if ( isset(
$ret[
'flags'] ) ) {
const TOOL_LINKS_NOBLOCK
Flags for userToolLinks()
getTimestamp()
Get the timestamp when the action was executed.
if(!isset( $args[0])) $lang
getParameters()
Get the extra parameters stored for this message.
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
as see the revision history and available at free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
static newFromName( $name, $validate='valid')
Static factory method for creation from username.
static getTitleFor( $name, $subpage=false, $fragment='')
Get a localised Title object for a specified special page name If you don't need a full Title object,...
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
namespace and then decline to actually register it file or subcat img or subcat $title
static setIndexedTagName(array &$arr, $tag)
Set the tag name for numeric-keyed values in XML format.
wfIsInfinity( $str)
Determine input string is represents as infinity.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses & $ret
getSubtype()
The log subtype.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message additional optional elements are parameters for the key that are processed with wfMessage() -> params() ->parseAsBlock() - offset Set to overwrite offset parameter in $wgRequest set to '' to unset offset - wrap String Wrap the message in html(usually something like "<
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency MediaWikiServices
this hook is for auditing only or null if authentication failed before getting that far $username
it s the revision text itself In either if gzip is the revision text is gzipped $flags