42 public function __construct( $name =
'Recentchanges', $restriction =
'' ) {
43 parent::__construct(
$name, $restriction );
45 $this->watchlistFilterGroupDefinition = [
46 'name' =>
'watchlist',
47 'title' =>
'rcfilters-filtergroup-watchlist',
48 'class' => ChangesListStringOptionsFilterGroup::class,
50 'isFullCoverage' =>
true,
54 'label' =>
'rcfilters-filter-watchlist-watched-label',
55 'description' =>
'rcfilters-filter-watchlist-watched-description',
56 'cssClassSuffix' =>
'watched',
57 'isRowApplicableCallable' =>
function ( $ctx, $rc ) {
58 return $rc->getAttribute(
'wl_user' );
62 'name' =>
'watchednew',
63 'label' =>
'rcfilters-filter-watchlist-watchednew-label',
64 'description' =>
'rcfilters-filter-watchlist-watchednew-description',
65 'cssClassSuffix' =>
'watchednew',
66 'isRowApplicableCallable' =>
function ( $ctx, $rc ) {
67 return $rc->getAttribute(
'wl_user' ) &&
68 $rc->getAttribute(
'rc_timestamp' ) &&
69 $rc->getAttribute(
'wl_notificationtimestamp' ) &&
70 $rc->getAttribute(
'rc_timestamp' ) >= $rc->getAttribute(
'wl_notificationtimestamp' );
74 'name' =>
'notwatched',
75 'label' =>
'rcfilters-filter-watchlist-notwatched-label',
76 'description' =>
'rcfilters-filter-watchlist-notwatched-description',
77 'cssClassSuffix' =>
'notwatched',
78 'isRowApplicableCallable' =>
function ( $ctx, $rc ) {
79 return $rc->getAttribute(
'wl_user' ) ===
null;
84 'queryCallable' =>
function ( $specialPageClassName,
$context,
$dbr,
85 &
$tables, &$fields, &$conds, &$query_options, &$join_conds, $selectedValues ) {
86 sort( $selectedValues );
87 $notwatchedCond =
'wl_user IS NULL';
88 $watchedCond =
'wl_user IS NOT NULL';
89 $newCond =
'rc_timestamp >= wl_notificationtimestamp';
91 if ( $selectedValues === [
'notwatched' ] ) {
92 $conds[] = $notwatchedCond;
96 if ( $selectedValues === [
'watched' ] ) {
97 $conds[] = $watchedCond;
101 if ( $selectedValues === [
'watchednew' ] ) {
102 $conds[] =
$dbr->makeList( [
109 if ( $selectedValues === [
'notwatched',
'watched' ] ) {
114 if ( $selectedValues === [
'notwatched',
'watchednew' ] ) {
115 $conds[] =
$dbr->makeList( [
125 if ( $selectedValues === [
'watched',
'watchednew' ] ) {
126 $conds[] = $watchedCond;
130 if ( $selectedValues === [
'notwatched',
'watched',
'watchednew' ] ) {
143 $feedFormat = $this->
getRequest()->getVal(
'feed' );
144 if ( !$this->
including() && $feedFormat ) {
146 $query[
'feedformat'] = $feedFormat ===
'atom' ?
'atom' :
'rss';
154 $out->setCdnMaxage( 10 );
157 if ( $lastmod ===
false ) {
162 '//meta.wikimedia.org/wiki/Special:MyLanguage/Help:Recent_changes',
165 parent::execute( $subpage );
172 if ( isset( $filterDefinition[
'showHideSuffix'] ) ) {
173 $filterDefinition[
'showHide'] =
'rc' . $filterDefinition[
'showHideSuffix'];
176 return $filterDefinition;
183 parent::registerFilters();
187 $this->
getUser()->isLoggedIn() &&
188 $this->
getUser()->isAllowed(
'viewmywatchlist' )
192 $watchlistGroup->getFilter(
'watched' )->setAsSupersetOf(
193 $watchlistGroup->getFilter(
'watchednew' )
200 $hideMinor = $significance->getFilter(
'hideminor' );
201 $hideMinor->setDefault(
$user->getBoolOption(
'hideminor' ) );
204 $hideBots = $automated->getFilter(
'hidebots' );
205 $hideBots->setDefault(
true );
208 if ( $reviewStatus !==
null ) {
210 if (
$user->getBoolOption(
'hidepatrolled' ) ) {
211 $reviewStatus->setDefault(
'unpatrolled' );
212 $legacyReviewStatus = $this->
getFilterGroup(
'legacyReviewStatus' );
213 $legacyHidePatrolled = $legacyReviewStatus->getFilter(
'hidepatrolled' );
214 $legacyHidePatrolled->setDefault(
true );
219 $hideCategorization = $changeType->getFilter(
'hidecategorization' );
220 if ( $hideCategorization !==
null ) {
222 $hideCategorization->setDefault(
$user->getBoolOption(
'hidecategorization' ) );
233 parent::parseParameters( $par, $opts );
235 $bits = preg_split(
'/\s*,\s*/', trim( $par ) );
236 foreach ( $bits
as $bit ) {
237 if ( is_numeric( $bit ) ) {
238 $opts[
'limit'] = $bit;
242 if ( preg_match(
'/^limit=(\d+)$/', $bit, $m ) ) {
243 $opts[
'limit'] = $m[1];
245 if ( preg_match(
'/^days=(\d+(?:\.\d+)?)$/', $bit, $m ) ) {
246 $opts[
'days'] = $m[1];
248 if ( preg_match(
'/^namespace=(.*)$/', $bit, $m ) ) {
249 $opts[
'namespace'] = $m[1];
251 if ( preg_match(
'/^tagfilter=(.*)$/', $bit, $m ) ) {
252 $opts[
'tagfilter'] = $m[1];
266 $rcQuery = RecentChange::getQueryInfo();
268 $fields = array_merge( $rcQuery[
'fields'], $fields );
269 $join_conds = array_merge( $join_conds, $rcQuery[
'joins'] );
272 if (
$user->isLoggedIn() &&
$user->isAllowed(
'viewmywatchlist' ) ) {
274 $fields[] =
'wl_user';
275 $fields[] =
'wl_notificationtimestamp';
276 $join_conds[
'watchlist'] = [
'LEFT JOIN', [
277 'wl_user' =>
$user->getId(),
279 'wl_namespace=rc_namespace'
285 $fields[] =
'page_latest';
286 $join_conds[
'page'] = [
'LEFT JOIN',
'rc_cur_id=page_id' ];
288 $tagFilter = $opts[
'tagfilter'] ? explode(
'|', $opts[
'tagfilter'] ) : [];
309 'ORDER BY' =>
'rc_timestamp DESC',
310 'LIMIT' => $opts[
'limit']
312 if ( in_array(
'DISTINCT', $query_options ) ) {
318 $orderByAndLimit[
'ORDER BY'] =
'rc_timestamp DESC, rc_id DESC';
319 $orderByAndLimit[
'GROUP BY'] =
'rc_timestamp, rc_id';
325 $query_options = array_merge( $orderByAndLimit, $query_options );
331 $conds + [
'rc_new' => [ 0, 1 ] ],
358 $query[
'action'] =
'feedrecentchanges';
359 $feedLimit = $this->
getConfig()->get(
'FeedLimit' );
360 if ( $query[
'limit'] > $feedLimit ) {
361 $query[
'limit'] = $feedLimit;
374 $limit = $opts[
'limit'];
376 $showWatcherCount = $this->
getConfig()->get(
'RCShowWatchingUsers' )
377 && $this->
getUser()->getOption(
'shownumberswatching' );
382 $list->initChangesListRows(
$rows );
384 $userShowHiddenCats = $this->
getUser()->getBoolOption(
'showhiddencats' );
385 $rclistOutput = $list->beginRecentChangesList();
394 $rc = RecentChange::newFromRow( $obj );
396 # Skip CatWatch entries for hidden cats based on user preference
399 !$userShowHiddenCats &&
400 $rc->getParam(
'hidden-cat' )
405 $rc->counter = $counter++;
406 # Check if the page has been updated since the last visit
407 if ( $this->
getConfig()->
get(
'ShowUpdatedMarker' )
408 && !empty( $obj->wl_notificationtimestamp )
410 $rc->notificationtimestamp = ( $obj->rc_timestamp >= $obj->wl_notificationtimestamp );
412 $rc->notificationtimestamp =
false;
414 # Check the number of users watching the page
415 $rc->numberofWatchingusers = 0;
416 if ( $showWatcherCount && $obj->rc_namespace >= 0 ) {
417 if ( !isset( $watcherCache[$obj->rc_namespace][$obj->rc_title] ) ) {
418 $watcherCache[$obj->rc_namespace][$obj->rc_title] =
419 MediaWikiServices::getInstance()->getWatchedItemStore()->countWatchers(
420 new TitleValue( (
int)$obj->rc_namespace, $obj->rc_title )
423 $rc->numberofWatchingusers = $watcherCache[$obj->rc_namespace][$obj->rc_title];
426 $changeLine = $list->recentChangesLine( $rc, !empty( $obj->wl_user ), $counter );
427 if ( $changeLine !==
false ) {
428 $rclistOutput .= $changeLine;
432 $rclistOutput .= $list->endRecentChangesList();
434 if (
$rows->numRows() === 0 ) {
437 $this->
getOutput()->setStatusCode( 404 );
440 $this->
getOutput()->addHTML( $rclistOutput );
453 $defaults = $opts->getAllValues();
454 $nondefaults = $opts->getChangedValues();
460 $panel[] = $this->
optionsPanel( $defaults, $nondefaults, $numRows );
464 $extraOptsCount = count( $extraOpts );
466 $submit =
' ' . Xml::submitButton( $this->
msg(
'recentchanges-submit' )->
text() );
468 $out = Xml::openElement(
'table', [
'class' =>
'mw-recentchanges-table' ] );
469 foreach ( $extraOpts
as $name => $optionRow ) {
470 # Add submit button to the last row only
472 $addSubmit = ( $count === $extraOptsCount ) ? $submit :
'';
474 $out .= Xml::openElement(
'tr', [
'class' =>
$name .
'Form' ] );
475 if ( is_array( $optionRow ) ) {
478 [
'class' =>
'mw-label mw-' .
$name .
'-label' ],
483 [
'class' =>
'mw-input' ],
484 $optionRow[1] . $addSubmit
489 [
'class' =>
'mw-input',
'colspan' => 2 ],
490 $optionRow . $addSubmit
493 $out .= Xml::closeElement(
'tr' );
495 $out .= Xml::closeElement(
'table' );
497 $unconsumed = $opts->getUnconsumedValues();
498 foreach ( $unconsumed
as $key =>
$value ) {
503 $out .= Html::hidden(
'title',
$t->getPrefixedText() );
504 $form = Xml::tags(
'form', [
'action' =>
wfScript() ],
$out );
506 $panelString = implode(
"\n", $panel );
508 $rcoptions = Xml::fieldset(
509 $this->
msg(
'recentchanges-legend' )->
text(),
511 [
'class' =>
'rcoptions cloptions' ]
516 $rcfilterContainer = Html::element(
518 [
'class' =>
'rcfilters-container' ]
521 $loadingContainer = Html::rawElement(
523 [
'class' =>
'rcfilters-spinner' ],
526 [
'class' =>
'rcfilters-spinner-bounce' ]
534 [
'class' =>
'rcfilters-head' ],
535 $rcfilterContainer . $rcoptions
540 $this->
getOutput()->addHTML( $loadingContainer );
542 $this->
getOutput()->addHTML( $rcoptions );
554 $message = $this->
msg(
'recentchangestext' )->inContentLanguage();
555 if ( !$message->isDisabled() ) {
556 $contLang = MediaWikiServices::getInstance()->getContentLanguage();
560 $parserOutput = MessageCache::singleton()->parse(
562 $this->getPageTitle(),
569 $content = $parserOutput->getText( [
570 'enableSectionEditLinks' =>
false,
573 $this->
getOutput()->addParserOutputMetadata( $parserOutput );
576 'lang' => $contLang->getHtmlCode(),
577 'dir' => $contLang->getDir(),
580 $topLinksAttributes = [
'class' =>
'mw-recentchanges-toplinks' ];
584 $collapsedState = $this->
getRequest()->getCookie(
'rcfilters-toplinks-collapsed-state' );
586 $topLinksAttributes[
'class' ] .= $collapsedState !==
'expanded' ?
587 ' mw-recentchanges-toplinks-collapsed' :
'';
590 $contentTitle =
new OOUI\ButtonWidget( [
591 'classes' => [
'mw-recentchanges-toplinks-title' ],
592 'label' =>
new OOUI\HtmlSnippet( $this->
msg(
'rcfilters-other-review-tools' )->parse() ),
594 'indicator' => $collapsedState !==
'expanded' ?
'down' :
'up',
595 'flags' => [
'progressive' ],
598 $contentWrapper = Html::rawElement(
'div',
600 [
'class' =>
'mw-recentchanges-toplinks-content mw-collapsible-content' ],
605 $content = $contentTitle . $contentWrapper;
611 $topLinksAttributes = array_merge( $topLinksAttributes, $langAttributes );
615 Html::rawElement(
'div', $topLinksAttributes,
$content )
627 $opts->consumeValues( [
628 'namespace',
'invert',
'associated',
'tagfilter'
635 $opts[
'tagfilter'],
false, $this->
getContext() );
636 if ( count( $tagFilter ) ) {
637 $extraOpts[
'tagfilter'] = $tagFilter;
641 if ( $this->
getName() ===
'Recentchanges' ) {
642 Hooks::run(
'SpecialRecentChangesPanel', [ &$extraOpts, $opts ] );
652 parent::addModules();
654 $out->addModules(
'mediawiki.special.recentchanges' );
666 $lastmod =
$dbr->selectField(
'recentchanges',
'MAX(rc_timestamp)',
'', __METHOD__ );
678 $nsSelect = Html::namespaceSelector(
679 [
'selected' => $opts[
'namespace'],
'all' =>
'',
'in-user-lang' =>
true ],
680 [
'name' =>
'namespace',
'id' =>
'namespace' ]
682 $nsLabel = Xml::label( $this->
msg(
'namespace' )->
text(),
'namespace' );
683 $attribs = [
'class' => [
'mw-input-with-label' ] ];
685 if ( $opts[
'namespace'] ===
'' ) {
686 $attribs[
'class'][] =
'mw-input-hidden';
688 $invert = Html::rawElement(
'span',
$attribs, Xml::checkLabel(
689 $this->
msg(
'invert' )->
text(),
'invert',
'nsinvert',
691 [
'title' => $this->
msg(
'tooltip-invert' )->
text() ]
693 $associated = Html::rawElement(
'span',
$attribs, Xml::checkLabel(
694 $this->
msg(
'namespace_association' )->
text(),
'associated',
'nsassociated',
696 [
'title' => $this->
msg(
'tooltip-namespace_association' )->
text() ]
699 return [ $nsLabel,
"$nsSelect $invert $associated" ];
713 $categories = array_map(
'trim', explode(
'|', $opts[
'categories'] ) );
715 if ( $categories === [] ) {
721 foreach ( $categories
as $cat ) {
733 foreach (
$rows as $k => $r ) {
734 $nt = Title::makeTitle( $r->rc_namespace, $r->rc_title );
735 $id = $nt->getArticleID();
737 continue; #
Page might have been deleted...
739 if ( !in_array( $id, $articles ) ) {
742 if ( !isset( $a2r[$id] ) ) {
750 if ( $articles === [] || $cats === [] ) {
756 $catFind->
seed( $articles, $cats, $opts[
'categories_any'] ?
'OR' :
'AND' );
757 $match = $catFind->run();
761 foreach ( $match
as $id ) {
762 foreach ( $a2r[$id]
as $rev ) {
764 $newrows[$k] = $rowsarr[$k];
787 'data-params' => json_encode( $override ),
788 'data-keys' => implode(
',', array_keys( $override ) ),
801 $options = $nondefaults + $defaults;
804 $msg = $this->
msg(
'rclegend' );
805 if ( !$msg->isDisabled() ) {
806 $note .= Html::rawElement(
808 [
'class' =>
'mw-rclegend' ],
818 [
'from' =>
'' ], $nondefaults );
820 $noteFromMsg = $this->
msg(
'rcnotefrom' )
827 ->numParams( $numRows );
828 $note .= Html::rawElement(
830 [
'class' =>
'rcnotefrom' ],
831 $noteFromMsg->parse()
836 [
'class' =>
'rcoptions-listfromreset' ],
837 $this->
msg(
'parentheses' )->rawParams( $resetLink )->parse()
842 # Sort data for display and make sure it's unique after we've added user data.
843 $linkLimits = $config->get(
'RCLinkLimits' );
846 $linkLimits = array_unique( $linkLimits );
848 $linkDays = $config->get(
'RCLinkDays' );
851 $linkDays = array_unique( $linkDays );
859 $cl =
$lang->pipeList( $cl );
867 $dl =
$lang->pipeList( $dl );
869 $showhide = [
'show',
'hide' ];
875 $linkMessage = $this->
msg( $msg .
'-' . $showhide[1 -
$options[$key]] );
878 if ( !$linkMessage->exists() ) {
879 $linkMessage = $this->
msg( $showhide[1 -
$options[$key]] );
883 [ $key => 1 -
$options[$key] ], $nondefaults );
886 'class' =>
"$msg rcshowhideoption clshowhideoption",
887 'data-filter-name' =>
$filter->getName(),
890 if (
$filter->isFeatureAvailableOnStructuredUi( $this ) ) {
891 $attribs[
'data-feature-in-structured-ui'] =
true;
894 $links[] = Html::rawElement(
897 $this->
msg( $msg )->rawParams(
$link )->parse()
903 $now =
$lang->userTimeAndDate( $timestamp,
$user );
904 $timenow =
$lang->userTime( $timestamp,
$user );
905 $datenow =
$lang->userDate( $timestamp,
$user );
906 $pipedLinks =
'<span class="rcshowhide">' .
$lang->pipeList( $links ) .
'</span>';
908 $rclinks = Html::rawElement(
910 [
'class' =>
'rclinks' ],
911 $this->
msg(
'rclinks' )->rawParams( $cl, $dl,
'' )->parse()
914 $rclistfrom = Html::rawElement(
916 [
'class' =>
'rclistfrom' ],
918 $this->
msg(
'rclistfrom' )->plaintextParams( $now, $timenow, $datenow )->parse(),
919 [
'from' => $timestamp ],
924 return "{$note}$rclinks<br />$pipedLinks<br />$rclistfrom";
936 $systemPrefValue = $this->
getUser()->getIntOption(
'rclimit' );
939 return $this->
getUser()->getIntOption( static::$limitPreferenceName, $systemPrefValue );
943 return $systemPrefValue;
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for use
This list may contain false positives That usually means there is additional text with links below the first Each row contains links to the first and second as well as the first line of the second redirect text
wfTimestampNow()
Convenience function; returns MediaWiki timestamp for the present time.
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
wfAppendQuery( $url, $query)
Append a query string to an existing URL, which may or may not already have query string parameters a...
wfScript( $script='index')
Get the path to a specified script file, respecting file extensions; this is a wrapper around $wgScri...
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
The "CategoryFinder" class takes a list of articles, creates an internal representation of all their ...
seed( $articleIds, $categories, $mode='AND', $maxdepth=-1)
Initializes the instance.
Special page which uses a ChangesList to show query results.
runMainQueryHook(&$tables, &$fields, &$conds, &$query_options, &$join_conds, $opts)
registerFiltersFromDefinitions(array $definition)
Register filters from a definition object.
convertParamsForLink( $params)
Convert parameters values from true/false to 1/0 so they are not omitted by wfArrayToCgi() T38524.
getFilterGroup( $groupName)
Gets a specified ChangesListFilterGroup by name.
isStructuredFilterUiEnabled()
Check whether the structured filter UI is enabled.
areFiltersInConflict()
Check if filters are in conflict and guaranteed to return no results.
outputNoResults()
Add the "no results" message to the output.
getLegacyShowHideFilters()
getOptions()
Get the current FormOptions for this request.
setBottomText(FormOptions $opts)
Send the text to be displayed after the options.
makeLegend()
Return the legend displayed within the fieldset.
const NONE
Signifies that no options in the group are selected, meaning the group has no effect.
static newFromContext(IContextSource $context, array $groups=[])
Fetch an appropriate changes list class for the specified context Some users might want to use an enh...
Marks HTML that shouldn't be escaped.
getName()
Get the name of this Special Page.
getOutput()
Get the OutputPage being used for this instance.
getUser()
Shortcut to get the User executing this instance.
addFeedLinks( $params)
Adds RSS/atom links.
getContext()
Gets the context this SpecialPage is executed in.
msg( $key)
Wrapper around wfMessage that sets the current context.
getConfig()
Shortcut to get main config object.
getRequest()
Get the WebRequest being used for this instance.
getPageTitle( $subpage=false)
Get a self-referential title object.
getLanguage()
Shortcut to get user's language.
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
including( $x=null)
Whether the special page is being evaluated via transclusion.
A special page that lists last changes made to the wiki.
filterByCategories(&$rows, FormOptions $opts)
Filter $rows by categories set in $opts.
optionsPanel( $defaults, $nondefaults, $numRows)
Creates the options panel.
isIncludable()
Whether it's allowed to transclude the special page via {{Special:Foo/params}}.
setTopText(FormOptions $opts)
Send the text to be displayed above the options.
getExtraOptions( $opts)
Get options to be displayed in a form.
makeOptionsLink( $title, $override, $options, $active=false)
Makes change an option link which carries all the other options.
getDB()
Return a IDatabase object for reading.
static $savedQueriesPreferenceName
addModules()
Add page-specific modules.
getFeedQuery()
Get URL query parameters for action=feedrecentchanges API feed of current recent changes view.
static $daysPreferenceName
checkLastModified()
Get last modified date, for client caching Don't use this if we are using the patrol feature,...
doHeader( $opts, $numRows)
Set the text to be displayed above the changes.
static $limitPreferenceName
transformFilterDefinition(array $filterDefinition)
@inheritDoc
parseParameters( $par, FormOptions $opts)
Process $par and put options found in $opts.
getDefaultLimit()
Get the default value of the number of changes to display when loading the result set.
__construct( $name='Recentchanges', $restriction='')
namespaceFilterForm(FormOptions $opts)
Creates the choose namespace selection.
outputChangesList( $rows, $opts)
Build and output the actual changes list.
outputFeedLinks()
Output feed links.
registerFilters()
@inheritDoc
static $collapsedPreferenceName
$watchlistFilterGroupDefinition
doMainQuery( $tables, $fields, $conds, $query_options, $join_conds, FormOptions $opts)
@inheritDoc
Represents a page (or page fragment) title within MediaWiki.
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
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction $rows
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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
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 & $options
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext $context
namespace and then decline to actually register it file or subcat img or subcat $title
this hook is for auditing only 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 & $tables
usually copyright or history_copyright This message must be in HTML not wikitext & $link
Allows to change the fields on the form that will be generated $name
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
null for the local 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
return true to allow those checks to and false if checking is done & $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
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
Interface for type hinting (accepts WikiPage, Article, ImagePage, CategoryPage)
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))
if(!isset( $args[0])) $lang