42 public function __construct( $page =
'Watchlist', $restriction =
'viewmywatchlist' ) {
43 parent::__construct( $page, $restriction );
45 $this->maxDays = $this->
getConfig()->get(
'RCMaxAge' ) / ( 3600 * 24 );
64 $output->addModuleStyles( [
'mediawiki.special' ] );
66 'mediawiki.special.watchlist',
70 if ( $mode !==
false ) {
90 if ( ( $config->get(
'EnotifWatchlist' ) || $config->get(
'ShowUpdatedMarker' ) )
95 $user->clearAllNotifications();
101 parent::execute( $subpage );
104 $output->addModuleStyles( [
'mediawiki.rcfilters.highlightCircles.seenunseen.styles' ] );
107 'wgStructuredChangeFiltersEditWatchlistUrl',
114 return !
$user->getOption(
'wlenhancedfilters-disable' );
135 if ( isset( $filterDefinition[
'showHideSuffix'] ) ) {
136 $filterDefinition[
'showHide'] =
'wl' . $filterDefinition[
'showHideSuffix'];
139 return $filterDefinition;
146 parent::registerFilters();
150 'name' =>
'extended-group',
153 'name' =>
'extended',
154 'isReplacedInStructuredUi' =>
true,
155 'activeValue' =>
false,
156 'default' => $this->
getUser()->getBoolOption(
'extendwatchlist' ),
157 'queryCallable' =>
function ( $specialClassName, $ctx,
$dbr, &
$tables,
158 &$fields, &$conds, &$query_options, &$join_conds ) {
159 $nonRevisionTypes = [
RC_LOG ];
160 Hooks::run(
'SpecialWatchlistGetNonRevisionTypes', [ &$nonRevisionTypes ] );
161 if ( $nonRevisionTypes ) {
162 $conds[] =
$dbr->makeList(
164 'rc_this_oldid=page_latest',
165 'rc_type' => $nonRevisionTypes,
178 ->getFilter(
'hidepreviousrevisions' )
179 ->setDefault( !$this->
getUser()->getBoolOption(
'extendwatchlist' ) );
183 'name' =>
'watchlistactivity',
184 'title' =>
'rcfilters-filtergroup-watchlistactivity',
185 'class' => ChangesListStringOptionsFilterGroup::class,
187 'isFullCoverage' =>
true,
191 'label' =>
'rcfilters-filter-watchlistactivity-unseen-label',
192 'description' =>
'rcfilters-filter-watchlistactivity-unseen-description',
193 'cssClassSuffix' =>
'watchedunseen',
194 'isRowApplicableCallable' =>
function ( $ctx, $rc ) {
195 $changeTs = $rc->getAttribute(
'rc_timestamp' );
196 $lastVisitTs = $rc->getAttribute(
'wl_notificationtimestamp' );
197 return $lastVisitTs !==
null && $changeTs >= $lastVisitTs;
202 'label' =>
'rcfilters-filter-watchlistactivity-seen-label',
203 'description' =>
'rcfilters-filter-watchlistactivity-seen-description',
204 'cssClassSuffix' =>
'watchedseen',
205 'isRowApplicableCallable' =>
function ( $ctx, $rc ) {
206 $changeTs = $rc->getAttribute(
'rc_timestamp' );
207 $lastVisitTs = $rc->getAttribute(
'wl_notificationtimestamp' );
208 return $lastVisitTs ===
null || $changeTs < $lastVisitTs;
213 'queryCallable' =>
function ( $specialPageClassName,
$context,
$dbr,
214 &
$tables, &$fields, &$conds, &$query_options, &$join_conds, $selectedValues ) {
215 if ( $selectedValues === [
'seen' ] ) {
216 $conds[] =
$dbr->makeList( [
217 'wl_notificationtimestamp IS NULL',
218 'rc_timestamp < wl_notificationtimestamp'
220 } elseif ( $selectedValues === [
'unseen' ] ) {
221 $conds[] =
$dbr->makeList( [
222 'wl_notificationtimestamp IS NOT NULL',
223 'rc_timestamp >= wl_notificationtimestamp'
232 $hideMinor = $significance->getFilter(
'hideminor' );
233 $hideMinor->setDefault(
$user->getBoolOption(
'watchlisthideminor' ) );
236 $hideBots = $automated->getFilter(
'hidebots' );
237 $hideBots->setDefault(
$user->getBoolOption(
'watchlisthidebots' ) );
240 $hideAnons = $registration->getFilter(
'hideanons' );
241 $hideAnons->setDefault(
$user->getBoolOption(
'watchlisthideanons' ) );
242 $hideLiu = $registration->getFilter(
'hideliu' );
243 $hideLiu->setDefault(
$user->getBoolOption(
'watchlisthideliu' ) );
247 if (
$user->getBoolOption(
'watchlisthideanons' ) &&
248 !
$user->getBoolOption(
'watchlisthideliu' )
251 ->setDefault(
'registered' );
254 if (
$user->getBoolOption(
'watchlisthideliu' ) &&
255 !
$user->getBoolOption(
'watchlisthideanons' )
258 ->setDefault(
'unregistered' );
262 if ( $reviewStatus !==
null ) {
264 if (
$user->getBoolOption(
'watchlisthidepatrolled' ) ) {
265 $reviewStatus->setDefault(
'unpatrolled' );
266 $legacyReviewStatus = $this->
getFilterGroup(
'legacyReviewStatus' );
267 $legacyHidePatrolled = $legacyReviewStatus->getFilter(
'hidepatrolled' );
268 $legacyHidePatrolled->setDefault(
true );
273 $hideMyself = $authorship->getFilter(
'hidemyself' );
274 $hideMyself->setDefault(
$user->getBoolOption(
'watchlisthideown' ) );
277 $hideCategorization = $changeType->getFilter(
'hidecategorization' );
278 if ( $hideCategorization !==
null ) {
280 $hideCategorization->setDefault(
$user->getBoolOption(
'watchlisthidecategorization' ) );
294 static $compatibilityMap = [
295 'hideMinor' =>
'hideminor',
296 'hideBots' =>
'hidebots',
297 'hideAnons' =>
'hideanons',
298 'hideLiu' =>
'hideliu',
299 'hidePatrolled' =>
'hidepatrolled',
300 'hideOwn' =>
'hidemyself',
304 foreach ( $compatibilityMap
as $from => $to ) {
305 if ( isset(
$params[$from] ) ) {
311 if ( $this->
getRequest()->getVal(
'action' ) ==
'submit' ) {
312 $allBooleansFalse = [];
321 $allBooleansFalse[ $filter->getName() ] =
false;
330 $opts->fetchValuesFromRequest(
$request );
344 $rcQuery = RecentChange::getQueryInfo();
345 $tables = array_merge(
$tables, $rcQuery[
'tables'], [
'watchlist' ] );
346 $fields = array_merge( $rcQuery[
'fields'], $fields );
348 $join_conds = array_merge(
353 'wl_user' =>
$user->getId(),
354 'wl_namespace=rc_namespace',
364 $fields[] =
'page_latest';
365 $join_conds[
'page'] = [
'LEFT JOIN',
'rc_cur_id=page_id' ];
367 $fields[] =
'wl_notificationtimestamp';
371 if ( !
$user->isAllowed(
'deletedhistory' ) ) {
373 } elseif ( !
$user->isAllowedAny(
'suppressrevision',
'viewsuppressed' ) ) {
379 $conds[] =
$dbr->makeList( [
381 $dbr->bitAnd(
'rc_deleted', $bitmask ) .
" != $bitmask",
385 $tagFilter = $opts[
'tagfilter'] ? explode(
'|', $opts[
'tagfilter'] ) : [];
386 ChangeTags::modifyDisplayQuery(
402 'ORDER BY' =>
'rc_timestamp DESC',
403 'LIMIT' => $opts[
'limit']
405 if ( in_array(
'DISTINCT', $query_options ) ) {
411 $orderByAndLimit[
'ORDER BY'] =
'rc_timestamp DESC, rc_id DESC';
412 $orderByAndLimit[
'GROUP BY'] =
'rc_timestamp, rc_id';
416 $query_options = array_merge( $orderByAndLimit, $query_options );
442 $wlToken =
$user->getTokenFromOption(
'watchlisttoken' );
445 'action' =>
'feedwatchlist',
447 'wlowner' =>
$user->getName(),
448 'wltoken' => $wlToken,
463 $services = MediaWikiServices::getInstance();
465 # Show a message about replica DB lag, if applicable
468 $output->showLagWarning( $lag );
471 # If no rows to display, show message before try to render the list
472 if (
$rows->numRows() == 0 ) {
474 "<div class='mw-changeslist-empty'>\n$1\n</div>",
'recentchanges-noresult'
482 $list->setWatchlistDivs();
483 $list->initChangesListRows(
$rows );
484 if (
$user->getOption(
'watchlistunwatchlinks' ) ) {
492 return $this->getLinkRenderer()
493 ->makeKnownLink( $rc->getTitle(),
494 $this->msg(
'watchlist-unwatch' )->text(), [
495 'class' =>
'mw-unwatch-link',
496 'title' => $this->msg(
'tooltip-ca-unwatch' )->text()
497 ], [
'action' =>
'unwatch' ] ) .
"\u{00A0}";
503 if ( $this->
getConfig()->
get(
'RCShowWatchingUsers' )
504 &&
$user->getOption(
'shownumberswatching' )
506 $watchedItemStore =
$services->getWatchedItemStore();
509 $s = $list->beginRecentChangesList();
515 $userShowHiddenCats = $this->
getUser()->getBoolOption(
'showhiddencats' );
519 $rc = RecentChange::newFromRow( $obj );
521 # Skip CatWatch entries for hidden cats based on user preference
524 !$userShowHiddenCats &&
525 $rc->getParam(
'hidden-cat' )
530 $rc->counter = $counter++;
532 if ( $this->
getConfig()->
get(
'ShowUpdatedMarker' ) ) {
533 $updated = $obj->wl_notificationtimestamp;
538 if ( isset( $watchedItemStore ) ) {
539 $rcTitleValue =
new TitleValue( (
int)$obj->rc_namespace, $obj->rc_title );
540 $rc->numberofWatchingusers = $watchedItemStore->countWatchers( $rcTitleValue );
542 $rc->numberofWatchingusers = 0;
545 $changeLine = $list->recentChangesLine( $rc, $updated, $counter );
546 if ( $changeLine !==
false ) {
550 $s .= $list->endRecentChangesList();
566 $this->
msg(
'watchlistfor2',
$user->getName() )
568 $this->getLanguage(),
569 $this->getLinkRenderer()
577 $form .= Xml::openElement(
'form', [
580 'id' =>
'mw-watchlist-form'
582 $form .= Html::hidden(
'title', $this->
getPageTitle()->getPrefixedText() );
583 $form .= Xml::openElement(
585 [
'id' =>
'mw-watchlist-options',
'class' =>
'cloptions' ]
587 $form .= Xml::element(
588 'legend',
null, $this->
msg(
'watchlist-options' )->
text()
597 $wlInfo = Html::rawElement(
601 'data-params' => json_encode( [
'from' => $timestamp ] ),
603 $this->
msg(
'wlnote' )->numParams( $numRows, round( $opts[
'days'] * 24 ) )->params(
608 $nondefaults = $opts->getChangedValues();
609 $cutofflinks = Html::rawElement(
611 [
'class' =>
'cldays cloption' ],
615 # Spit out some control panel links
617 $namesOfDisplayedFilters = [];
619 $namesOfDisplayedFilters[] = $filterName;
622 $filter->getShowHide(),
624 $opts[ $filterName ],
625 $filter->isFeatureAvailableOnStructuredUi( $this )
629 $hiddenFields = $nondefaults;
630 $hiddenFields[
'action'] =
'submit';
631 unset( $hiddenFields[
'namespace'] );
632 unset( $hiddenFields[
'invert'] );
633 unset( $hiddenFields[
'associated'] );
634 unset( $hiddenFields[
'days'] );
635 foreach ( $namesOfDisplayedFilters
as $filterName ) {
636 unset( $hiddenFields[$filterName] );
639 # Namespace filter and put the whole form together.
641 $form .= $cutofflinks;
642 $form .= Html::rawElement(
644 [
'class' =>
'clshowhide' ],
645 $this->
msg(
'watchlist-hide' ) .
646 $this->
msg(
'colon-separator' )->escaped() .
647 implode(
' ', $links )
649 $form .=
"\n<br />\n";
651 $namespaceForm = Html::namespaceSelector(
653 'selected' => $opts[
'namespace'],
655 'label' => $this->
msg(
'namespace' )->
text()
657 'name' =>
'namespace',
659 'class' =>
'namespaceselector',
662 $namespaceForm .=
'<span class="mw-input-with-label">' . Xml::checkLabel(
663 $this->
msg(
'invert' )->
text(),
667 [
'title' => $this->
msg(
'tooltip-invert' )->
text() ]
669 $namespaceForm .=
'<span class="mw-input-with-label">' . Xml::checkLabel(
670 $this->
msg(
'namespace_association' )->
text(),
674 [
'title' => $this->
msg(
'tooltip-namespace_association' )->
text() ]
676 $form .= Html::rawElement(
678 [
'class' =>
'namespaceForm cloption' ],
682 $form .= Xml::submitButton(
683 $this->
msg(
'watchlist-submit' )->
text(),
684 [
'class' =>
'cloption-submit' ]
686 foreach ( $hiddenFields
as $key =>
$value ) {
687 $form .= Html::hidden( $key,
$value ) .
"\n";
689 $form .= Xml::closeElement(
'fieldset' ) .
"\n";
690 $form .= Xml::closeElement(
'form' ) .
"\n";
694 $rcfilterContainer = Html::element(
696 [
'class' =>
'rcfilters-container' ]
699 $loadingContainer = Html::rawElement(
701 [
'class' =>
'rcfilters-spinner' ],
704 [
'class' =>
'rcfilters-spinner-bounce' ]
712 [
'class' =>
'rcfilters-head' ],
713 $rcfilterContainer . $form
718 $this->
getOutput()->addHTML( $loadingContainer );
727 $selected = (float)
$options[
'days'];
728 if ( $selected <= 0 ) {
732 $selectedHours = round( $selected * 24 );
734 $hours = array_unique( array_filter( [
742 24 * (
float)$this->
getUser()->getOption(
'watchlistdays', 0 ),
748 $select =
new XmlSelect(
'days',
'days', (
float)( $selectedHours / 24 ) );
752 $name = $this->
msg(
'hours' )->numParams( $value )->text();
754 $name = $this->
msg(
'days' )->numParams( $value / 24 )->text();
756 $select->addOption(
$name, (
float)(
$value / 24 ) );
759 return $select->getHTML() .
"\n<br />\n";
768 $showUpdatedMarker = $this->
getConfig()->get(
'ShowUpdatedMarker' );
771 $watchlistHeader =
'';
772 if ( $numItems == 0 ) {
773 $watchlistHeader = $this->
msg(
'nowatchlist' )->parse();
775 $watchlistHeader .= $this->
msg(
'watchlist-details' )->numParams( $numItems )->parse() .
"\n";
776 if ( $this->
getConfig()->
get(
'EnotifWatchlist' )
777 &&
$user->getOption(
'enotifwatchlistpages' )
779 $watchlistHeader .= $this->
msg(
'wlheader-enotif' )->parse() .
"\n";
781 if ( $showUpdatedMarker ) {
782 $watchlistHeader .= $this->
msg(
784 'rcfilters-watchlist-showupdated' :
785 'wlheader-showupdated'
789 $form .= Html::rawElement(
791 [
'class' =>
'watchlistDetails' ],
795 if ( $numItems > 0 && $showUpdatedMarker ) {
796 $form .= Xml::openElement(
'form', [
'method' =>
'post',
798 'id' =>
'mw-watchlist-resetbutton' ] ) .
"\n" .
799 Xml::submitButton( $this->
msg(
'enotif_reset' )->
text(),
800 [
'name' =>
'mw-watchlist-reset-submit' ] ) .
"\n" .
801 Html::hidden(
'token',
$user->getEditToken() ) .
"\n" .
802 Html::hidden(
'reset',
'all' ) .
"\n";
803 foreach ( $nondefaults
as $key =>
$value ) {
804 $form .= Html::hidden( $key,
$value ) .
"\n";
806 $form .= Xml::closeElement(
'form' ) .
"\n";
815 $attribs = [
'class' =>
'mw-input-with-label clshowhideoption cloption' ];
816 if ( $inStructuredUi ) {
817 $attribs[
'data-feature-in-structured-ui' ] =
true;
820 return Html::rawElement(
828 $this->
msg( $message,
'<nowiki/>' )->parse()
841 $store = MediaWikiServices::getInstance()->getWatchedItemStore();
842 $count = $store->countWatchedItems( $this->
getUser() );
843 return floor( $count / 2 );
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.
wfScript( $script='index')
Get the path to a specified script file, respecting file extensions; this is a wrapper around $wgScri...
If the group is active, any unchecked filters will translate to hide parameters in the URL.
Special page which uses a ChangesList to show query results.
runMainQueryHook(&$tables, &$fields, &$conds, &$query_options, &$join_conds, $opts)
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.
registerFilterGroup(ChangesListFilterGroup $group)
Register a structured changes list filter group.
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.
Represents a filter group with multiple string options.
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...
Similar to FauxRequest, but only fakes URL parameters and method (POST or GET) and use the base reque...
Utility class for creating new RC entries.
static buildTools( $lang, LinkRenderer $linkRenderer=null)
Build a set of links for convenient navigation between watchlist viewing and editing modes.
const EDIT_CLEAR
Editing modes.
static getMode( $request, $par)
Determine whether we are editing the watchlist, and if so, what kind of editing operation.
getOutput()
Get the OutputPage being used for this instance.
requireLogin( $reasonMsg='exception-nologin-text', $titleMsg='exception-nologin')
If the user is not logged in, throws UserNotLoggedIn error.
getUser()
Shortcut to get the User executing this instance.
checkPermissions()
Checks if userCanExecute, and if not throws a PermissionsError.
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,...
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.
A special page that lists last changes made to the wiki, limited to user-defined list of titles.
__construct( $page='Watchlist', $restriction='viewmywatchlist')
outputFeedLinks()
Output feed links.
doHeader( $opts, $numRows)
Set the text to be displayed above the changes.
static $limitPreferenceName
showHideCheck( $options, $message, $name, $value, $inStructuredUi)
getSubpagesForPrefixSearch()
Return an array of subpages that this special page will accept.
static $daysPreferenceName
fetchOptionsFromRequest( $opts)
Fetch values for a FormOptions object from the WebRequest associated with this instance.
doMainQuery( $tables, $fields, $conds, $query_options, $join_conds, FormOptions $opts)
@inheritDoc
static $savedQueriesPreferenceName
getDB()
Return a IDatabase object for reading.
transformFilterDefinition(array $filterDefinition)
@inheritDoc
countItems()
Count the number of paired items on a user's watchlist.
static checkStructuredFilterUiEnabled(Config $config, User $user)
Static method to check whether StructuredFilter UI is enabled for the given user.
cutoffselector( $options)
setTopText(FormOptions $opts)
Send the text to be displayed before the options.
execute( $subpage)
Main execution point.
registerFilters()
@inheritDoc
static $collapsedPreferenceName
outputChangesList( $rows, $opts)
Build and output the actual changes list.
doesWrites()
Indicates whether this special page may perform database writes.
Represents a page (or page fragment) title within MediaWiki.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Class for generating HTML <select> or <datalist> elements.
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
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 $request
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
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title e g db for database replication lag or jobqueue for job queue size converted to pseudo seconds It is possible to add more fields and they will be returned to the user in the API response after the basic globals have been set but before ordinary actions take place or wrap services the preferred way to define a new service is the $wgServiceWiringFiles array $services
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
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
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title e g db for database replication lag or jobqueue for job queue size converted to pseudo seconds It is possible to add more fields and they will be returned to the user in the API response after the basic globals have been set but before ordinary actions take place $output
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 local account $user
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 configuration instances.
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