Go to the documentation of this file.
60 return $this->
msg(
'history-title', $this->
getTitle()->getPrefixedText() )->text();
65 return MediaWikiServices::getInstance()->getLinkRenderer()->makeKnownLink(
67 $this->
msg(
'viewpagelogs' )->
text(),
69 [
'page' => $this->
getTitle()->getPrefixedText() ]
86 if ( !isset( $this->
message ) ) {
87 $msgs = [
'cur',
'last',
'pipe-separator' ];
88 foreach ( $msgs
as $msg ) {
89 $this->
message[$msg] = $this->
msg( $msg )->escaped();
104 if (
$out->checkLastModified( $this->page->getTouched() ) ) {
109 $config = $this->context->getConfig();
111 # Fill in the file cache if not set already
114 if ( !
$cache->isCacheGood( ) ) {
115 ob_start( [ &
$cache,
'saveToFileCache' ] );
120 $out->setFeedAppendQuery(
'action=history' );
121 $out->addModules(
'mediawiki.action.history' );
122 $out->addModuleStyles( [
123 'mediawiki.action.history.styles',
124 'mediawiki.special.changeslist',
126 if ( $config->get(
'UseMediaWikiUIEverywhere' ) ) {
128 $out->addModuleStyles( [
129 'mediawiki.ui.input',
130 'mediawiki.ui.checkbox',
135 $feedType =
$request->getVal(
'feed' );
137 $this->
feed( $feedType );
142 $this->
addHelpLink(
'//meta.wikimedia.org/wiki/Special:MyLanguage/Help:Page_history',
true );
145 if ( !$this->
page->exists() ) {
147 if ( $wgSend404Code ) {
148 $out->setStatusCode( 404 );
150 $out->addWikiMsg(
'nohistory' );
154 # show deletion/move log if there is an entry
157 [
'delete',
'move' ],
161 'conds' => [
'log_action != ' .
$dbr->addQuotes(
'revision' ) ],
162 'showIfEmpty' =>
false,
163 'msgKey' => [
'moveddeleted-notice' ]
174 $month =
$request->getInt(
'month' );
175 $tagFilter =
$request->getVal(
'tagfilter' );
181 if (
$request->getBool(
'deleted' ) ) {
182 $conds = [
'rev_deleted != 0' ];
186 if ( $this->
getUser()->isAllowed(
'deletedhistory' ) ) {
188 'deleted',
'mw-show-deleted-only',
$request->getBool(
'deleted' ) ) .
"\n";
194 $action = htmlspecialchars(
wfScript() );
196 "<form action=\"$action\" method=\"get\" id=\"mw-history-searchform\">" .
198 $this->
msg(
'history-fieldset-title' )->
text(),
200 [
'id' =>
'mw-history-search' ]
208 ( $tagSelector ? ( implode(
' ', $tagSelector ) .
' ' ) :
'' ) .
211 $this->
msg(
'historyaction-submit' )->
text(),
213 [
'mw-ui-progressive' ]
221 $pager =
new HistoryPager( $this, $year, $month, $tagFilter, $conds );
223 $pager->getNavigationBar() .
225 $pager->getNavigationBar()
227 $out->preventClickjacking( $pager->getPreventClickjacking() );
248 if ( $direction === self::DIR_PREV ) {
255 $offsets = [
"rev_timestamp $oper " .
$dbr->addQuotes(
$dbr->timestamp( $offset ) ) ];
260 $page_id = $this->
page->getId();
262 return $dbr->select(
'revision',
264 array_merge( [
'rev_page' => $page_id ], $offsets ),
266 [
'ORDER BY' =>
"rev_timestamp $dirs",
267 'USE INDEX' =>
'page_timestamp',
'LIMIT' =>
$limit ]
282 $feedClasses = $this->context->getConfig()->get(
'FeedClasses' );
284 $feed =
new $feedClasses[
$type](
285 $this->
getTitle()->getPrefixedText() .
' - ' .
286 $this->
msg(
'history-feed-title' )->inContentLanguage()->text(),
287 $this->
msg(
'history-feed-description' )->inContentLanguage()->text(),
288 $this->
getTitle()->getFullURL(
'action=history' )
296 $this->context->getConfig()->get(
'FeedLimit' )
303 if ( $items->numRows() ) {
304 foreach ( $items
as $row ) {
305 $feed->outItem( $this->
feedItem( $row ) );
315 $this->
msg(
'nohistory' )->inContentLanguage()->
text(),
316 $this->
msg(
'history-feed-empty' )->inContentLanguage()->parseAsBlock(),
320 $this->
getTitle()->getTalkPage()->getFullURL()
337 $this->
getTitle()->getPreviousRevisionID(
$rev->getId() ),
339 $rev->getTimestamp(),
342 if (
$rev->getComment() ==
'' ) {
344 $title = $this->
msg(
'history-feed-item-nocomment',
346 $wgContLang->timeanddate(
$rev->getTimestamp() ),
348 $wgContLang->time(
$rev->getTimestamp() ) )->inContentLanguage()->text();
351 $this->
msg(
'colon-separator' )->inContentLanguage()->text() .
358 $this->
getTitle()->getFullURL(
'diff=' .
$rev->getId() .
'&oldid=prev' ),
359 $rev->getTimestamp(),
361 $this->
getTitle()->getTalkPage()->getFullURL()
399 $this->tagFilter = $tagFilter;
407 return $this->historyPage->getArticle();
411 if ( $this->conds ) {
412 return 'history page filtered';
414 return 'history page unfiltered';
420 'tables' => [
'revision',
'user' ],
422 'conds' => array_merge(
425 'options' => [
'USE INDEX' => [
'revision' =>
'page_timestamp' ] ],
429 $queryInfo[
'tables'],
430 $queryInfo[
'fields'],
432 $queryInfo[
'join_conds'],
433 $queryInfo[
'options'],
438 $historyPager = $this;
439 Hooks::run(
'PageHistoryPager::getQueryInfo', [ &$historyPager, &$queryInfo ] );
445 return 'rev_timestamp';
453 if ( $this->lastRow ) {
455 $firstInList = $this->counter == 1;
458 $notifTimestamp = $this->
getConfig()->get(
'ShowUpdatedMarker' )
463 $this->lastRow, $row, $notifTimestamp, $latest, $firstInList );
467 $this->lastRow = $row;
473 if ( !
Hooks::run(
'PageHistoryPager::doBatchLookups', [ $this, $this->mResult ] ) ) {
477 # Do a link batch query
478 $this->mResult->seek( 0 );
481 foreach ( $this->mResult
as $row ) {
482 if ( $row->rev_parent_id ) {
483 $revIds[] = $row->rev_parent_id;
485 if ( !is_null( $row->user_name ) ) {
488 }
else { #
for anons
or usernames
of imported revisions
495 $this->mResult->seek( 0 );
504 $this->lastRow =
false;
506 $this->oldIdChecked = 0;
508 $this->
getOutput()->wrapWikiMsg(
"<div class='mw-history-legend'>\n$1\n</div>",
'histlegend' );
510 'id' =>
'mw-history-compare' ] ) .
"\n";
516 $this->buttons =
'<div>';
517 $className =
'historysubmit mw-history-compareselectedversions-button';
518 $attrs = [
'class' => $className ]
526 if (
$user->isAllowed(
'deleterevision' ) ) {
527 $actionButtons .= $this->
getRevisionButton(
'revisiondelete',
'showhideselectedversions' );
529 if ( $this->showTagEditUI ) {
530 $actionButtons .= $this->
getRevisionButton(
'editchangetags',
'history-edit-tags' );
532 if ( $actionButtons ) {
533 $this->buttons .=
Xml::tags(
'div', [
'class' =>
534 'mw-history-revisionactions' ], $actionButtons );
541 $this->buttons .=
'</div>';
544 $s .=
'<ul id="pagehistory">' .
"\n";
551 # Note bug #20966, <button> is non-standard in IE<8
558 'class' =>
"historysubmit mw-history-$name-button",
566 if ( $this->lastRow ) {
568 $firstInList = $this->counter == 1;
569 if ( $this->mIsBackwards ) {
570 # Next row is unknown, but for UI reasons, probably exists if an offset has been specified
571 if ( $this->mOffset ==
'' ) {
577 # The next row is the past-the-end row
582 $notifTimestamp = $this->
getConfig()->get(
'ShowUpdatedMarker' )
587 $this->lastRow, $next, $notifTimestamp, $latest, $firstInList );
592 # Add second buttons only if there is more than one rev
609 # Disable submit button if history has 1 revision only
631 function historyLine( $row, $next, $notificationtimestamp =
false,
632 $latest =
false, $firstInList =
false ) {
636 if ( is_object( $next ) ) {
638 $prevRev->setTitle( $this->
getTitle() );
645 $curLastlinks = $curlink . $this->historyPage->message[
'pipe-separator'] . $lastlink;
648 [
'class' =>
'mw-history-histlinks' ],
649 $this->
msg(
'parentheses' )->rawParams( $curLastlinks )->escaped()
653 $s = $histLinks . $diffButtons;
660 $canRevDelete =
$user->isAllowed(
'deleterevision' );
663 if ( $canRevDelete || $this->showTagEditUI ) {
668 $del =
Xml::check(
'deleterevisions',
false, [
'disabled' =>
'disabled' ] );
671 $del =
Xml::check(
'showhiderevisions',
false,
672 [
'name' =>
'ids[' .
$rev->getId() .
']' ] );
675 } elseif (
$rev->getVisibility() &&
$user->isAllowed(
'deletedhistory' ) ) {
681 $query = [
'type' =>
'revision',
682 'target' => $this->
getTitle()->getPrefixedDBkey(),
'ids' =>
$rev->getId() ];
692 $dirmark =
$lang->getDirMark();
696 $s .=
" <span class='history-user'>" .
700 if (
$rev->isMinor() ) {
704 # Sometimes rev_len isn't populated
705 if (
$rev->getSize() !== null ) {
706 # Size is always public data
707 $prevSize = isset( $this->parentLens[$row->rev_parent_id] )
708 ? $this->parentLens[$row->rev_parent_id]
712 $s .=
' <span class="mw-changeslist-separator">. .</span> ' .
"$fSize $sDiff";
715 # Text following the character difference is added just before running hooks
718 if ( $notificationtimestamp && ( $row->rev_timestamp >= $notificationtimestamp ) ) {
719 $s2 .=
' <span class="updatedmarker">' . $this->
msg(
'updatedmarker' )->escaped() .
'</span>';
720 $classes[] =
'mw-history-line-updated';
725 # Rollback and undo links
726 if ( $prevRev && $this->
getTitle()->quickUserCan(
'edit',
$user ) ) {
727 if ( $latest && $this->
getTitle()->quickUserCan(
'rollback',
$user ) ) {
732 [
'verify',
'noBrackets' ]
734 if ( $rollbackLink ) {
736 $tools[] = $rollbackLink;
743 # Create undo tooltip for the first (=latest) line only
744 $undoTooltip = $latest
745 ? [
'title' => $this->
msg(
'tooltip-undo' )->text() ]
747 $undolink = MediaWikiServices::getInstance()->getLinkRenderer()->makeKnownLink(
749 $this->
msg(
'editundo' )->
text(),
753 'undoafter' => $prevRev->getId(),
754 'undo' =>
$rev->getId()
757 $tools[] =
"<span class=\"mw-history-undo\">{$undolink}</span>";
764 $s2 .=
' ' . $this->
msg(
'parentheses' )->rawParams(
$lang->pipeList( $tools ) )->escaped();
773 $classes = array_merge( $classes, $newClasses );
774 if ( $tagSummary !==
'' ) {
775 $s2 .=
" $tagSummary";
778 # Include separator between character difference and following text
780 $s .=
' <span class="mw-changeslist-separator">. .</span> ' . $s2;
783 Hooks::run(
'PageHistoryLineEnding', [ $this, &$row, &
$s, &$classes ] );
787 $attribs[
'class'] = implode(
' ', $classes );
802 $link = MediaWikiServices::getInstance()->getLinkRenderer()->makeKnownLink(
805 [
'class' =>
'mw-changeslist-date' ],
806 [
'oldid' =>
$rev->getId() ]
809 $link = htmlspecialchars( $date );
812 $link =
"<span class=\"history-deleted\">$link</span>";
826 $cur = $this->historyPage->message[
'cur'];
830 return MediaWikiServices::getInstance()->getLinkRenderer()->makeKnownLink(
836 'oldid' =>
$rev->getId()
852 $last = $this->historyPage->message[
'last'];
854 if ( $next ===
null ) {
855 # Probably no next row
859 $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer();
860 if ( $next ===
'unknown' ) {
861 # Next row probably exists but is unknown, use an oldid=prev link
867 'diff' => $prevRev->getId(),
886 'diff' => $prevRev->getId(),
887 'oldid' => $next->rev_id
903 $radio = [
'type' =>
'radio',
'value' => $id ];
905 if ( $firstInList ) {
907 array_merge( $radio, [
908 'style' =>
'visibility:hidden',
910 'id' =>
'mw-oldid-null' ] )
912 $checkmark = [
'checked' =>
'checked' ];
914 # Check visibility of old revisions
916 $radio[
'disabled'] =
'disabled';
918 } elseif ( !$this->oldIdChecked ) {
919 $checkmark = [
'checked' =>
'checked' ];
920 $this->oldIdChecked = $id;
925 array_merge( $radio, $checkmark, [
927 'id' =>
"mw-oldid-$id" ] ) );
931 array_merge( $radio, $checkmark, [
933 'id' =>
"mw-diff-$id" ] ) );
935 return $first . $second;
array $message
Array of message keys and strings.
getConfig()
Get the Config object.
static useFileCache(IContextSource $context, $mode=self::MODE_NORMAL)
Check if pages can be cached for this request/user.
A base class for basic support for outputting syndication feeds in RSS and other formats.
getContext()
Get the base IContextSource object.
error also a ContextSource you ll probably need to make sure the header is varied on $request
processing should stop and the error should be shown to the user * false
msg()
Get a Message object with context set Parameters are the same as wfMessage()
Class representing a list of titles The execute() method checks them all for existence and adds them ...
static tags( $element, $attribs=null, $contents)
Same as Xml::element(), but does not escape contents.
getRequest()
Get the WebRequest being used for this instance.
if(!isset( $args[0])) $lang
onView()
Print the history page for an article.
feedItem( $row)
Generate a FeedItem object from a given revision table row Borrows Recent Changes' feed generation fu...
Page view caching in the file system.
requiresWrite()
Whether this action requires the wiki not to be locked.
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add text
getPageTitle()
Returns the name that goes in the <h1> page title.
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
static formatDiffRow( $title, $oldid, $newid, $timestamp, $comment, $actiontext='')
Really format a diff for the newsfeed.
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
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account $user
static stripComment( $text)
Quickie hack...
fetchRevisions( $limit, $offset, $direction)
Fetch an array of revisions, specified by a given limit, offset and direction.
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 just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing after in associative array form before processing starts Return false to skip default processing and return $ret $linkRenderer
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,...
Allows to change the fields on the form that will be generated $name
do that in ParserLimitReportFormat instead use this to modify the parameters of the image and a DIV can begin in one section and end in another Make sure your code can handle that case gracefully See the EditSectionClearerLink extension for an example zero but section is usually empty its values are the globals values before the output is cached my talk my contributions etc etc otherwise the built in rate limiting checks are if enabled allows for interception of redirect as a string mapping parameter names to values & $type
getDescription()
Returns the description that goes below the <h1> tag.
getUser()
Get the User object.
getTitle()
Get the 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
getLanguage()
Get the Language object.
static fieldset( $legend=false, $content=false, $attribs=[])
Shortcut for creating fieldsets.
null for the wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify $query
getContext()
Get the IContextSource in use here.
namespace and then decline to actually register it file or subcat img or subcat $title
static generateRollback( $rev, IContextSource $context=null, $options=[ 'verify'])
Generate a rollback link for a given revision.
wfScript( $script='index')
Get the path to a specified script file, respecting file extensions; this is a wrapper around $wgScri...
This class handles printing the history page for an article.
Class for generating clickable toggle links for a list of checkboxes.
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
preCacheMessages()
As we use the same small set of messages in various methods and that they are called often,...
static revUserTools( $rev, $isPublic=false)
Generate a user tool link cluster if the current user is allowed to view it.
getOutput()
Get the OutputPage object.
static check( $name, $checked=false, $attribs=[])
Convenience function to build an HTML checkbox.
getWikiPage()
Get the WikiPage object.
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 just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing & $attribs
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist and Watchlist you will want to construct new ChangesListBooleanFilter or ChangesListStringOptionsFilter objects When constructing you specify which group they belong to You can reuse existing or create your you must register them with $special registerFilterGroup removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set and then return false from the hook function Ensure you consume the ChangeTagAfterDelete hook to carry out custom deletion actions as context called by AbstractContent::getParserOutput May be used to override the normal model specific rendering of page content as context as context the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers please use GetContentModels hook to make them known to core if desired whether it is OK to use $contentModel on $title Handler functions that modify $ok should generally return false to prevent further hooks from further modifying $ok inclusive $limit
static element( $element, $attribs=null, $contents='', $allowShortTag=true)
Format an XML element with given attributes and, optionally, text content.
static flag( $flag, IContextSource $context=null)
Make an "<abbr>" element for a given change flag.
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 message
static revDeleteLinkDisabled( $delete=true)
Creates a dead (show/hide) link for deleting revisions/log entries.
when a variable name is used in a it is silently declared as a new masking the global
static showLogExtract(&$out, $types=[], $page='', $user='', $param=[])
Show log extract.
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global list
static hidden( $name, $value, array $attribs=[])
Convenience function to produce an input element with type=hidden.
getUser()
Shortcut to get the User being used for this instance.
static revComment(Revision $rev, $local=false, $isPublic=false)
Wrap and format the given revision's comment block, if the current user is allowed to view it.
static tooltipAndAccesskeyAttribs( $name, array $msgParams=[])
Returns the attributes for the tooltip and access key.
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
static getParentLengths( $db, array $revIds)
Do a batched query to get the parent revision lengths.
static formatRevisionSize( $size)
static showCharacterDifference( $old, $new, IContextSource $context=null)
Show formatted char difference.
getTitle()
Shortcut to get the Title object from the page.
static submitButton( $contents, array $attrs, array $modifiers=[])
Returns an HTML link element in a string styled as a button (when $wgUseMediaWikiUIEverywhere is enab...
if the prop value should be in the metadata multi language array format
getName()
Return the name of the action this object responds to.
msg()
Get a Message object with context set Parameters are the same as wfMessage()
do that in ParserLimitReportFormat instead use this to modify the parameters of the image and a DIV can begin in one section and end in another Make sure your code can handle that case gracefully See the EditSectionClearerLink extension for an example zero but section is usually empty its values are the globals values before the output is cached my talk page
static exists( $name)
Check if a given action is recognised, even if it's disabled.
$page
Page on which we're performing the action.
requiresUnblock()
Whether this action can still be executed by a blocked user.
presenting them properly to the user as errors is done by the caller return true use this to change the list i e etc $rev
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
static dateMenu( $year, $month)
static userJoinCond()
Return the value of a select() JOIN conds array for the user table.
static openElement( $element, $attribs=[])
Identical to rawElement(), but has no third parameter and omits the end tag (and the self-closing '/'...
feed( $type)
Output a subscription feed listing recent edits to this page.
static rawElement( $element, $attribs=[], $contents='')
Returns an HTML element in a string.
static revDeleteLink( $query=[], $restricted=false, $delete=true)
Creates a (show/hide) link for deleting revisions/log entries.
usually copyright or history_copyright This message must be in HTML not wikitext & $link
getOutput()
Get the OutputPage being used for this instance.
globals txt Globals are evil The original MediaWiki code relied on globals for processing context far too often MediaWiki development since then has been a story of slowly moving context out of global variables and into objects Storing processing context in object member variables allows those objects to be reused in a much more flexible way Consider the elegance of
static checkFeedOutput( $type)
Check whether feeds can be used and that $type is a valid feed type.
static selectUserFields()
Return the list of user fields that should be selected from user table.
static element( $element, $attribs=[], $contents='')
Identical to rawElement(), but HTML-escapes $contents (like Xml::element()).
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
static selectFields()
Return the list of revision fields that should be selected to create a new revision.
static run( $event, array $args=[], $deprecatedVersion=null)
Call hook functions defined in Hooks::register and $wgHooks.
static getLocalInstance( $ts=false)
Get a timestamp instance in the server local timezone ($wgLocaltimezone)
the array() calling protocol came about after MediaWiki 1.4rc1.
static checkLabel( $label, $name, $id, $checked=false, $attribs=[])
Convenience function to build an HTML checkbox with a label.
this class mediates it Skin Encapsulates a look and feel for the wiki All of the functions that render HTML and make choices about how to render it are here and are called from various other places when and is meant to be subclassed with other skins that may override some of its functions The User object contains a reference to a and so rather than having a global skin object we just rely on the global User and get the skin with $wgUser and also has some character encoding functions and other locale stuff The current user interface language is instantiated as and the content language as $wgContLang
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output $out