45 public function __construct( $page =
'Watchlist', $restriction =
'viewmywatchlist' ) {
46 parent::__construct( $page, $restriction );
48 $this->maxDays = $this->
getConfig()->get(
'RCMaxAge' ) / ( 3600 * 24 );
49 $this->watchStore = MediaWikiServices::getInstance()->getWatchedItemStore();
68 $output->addModuleStyles( [
'mediawiki.special' ] );
70 'mediawiki.special.recentchanges',
71 'mediawiki.special.watchlist',
75 if ( $mode !==
false ) {
95 if ( ( $config->get(
'EnotifWatchlist' ) || $config->get(
'ShowUpdatedMarker' ) )
100 $user->clearAllNotifications();
106 parent::execute( $subpage );
109 $output->addModuleStyles( [
'mediawiki.rcfilters.highlightCircles.seenunseen.styles' ] );
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,
RecentChange $rc ) {
196 $lastVisitTs = $this->watchStore->getLatestNotificationTimestamp(
201 return $lastVisitTs !==
null && $changeTs >= $lastVisitTs;
206 'label' =>
'rcfilters-filter-watchlistactivity-seen-label',
207 'description' =>
'rcfilters-filter-watchlistactivity-seen-description',
208 'cssClassSuffix' =>
'watchedseen',
209 'isRowApplicableCallable' =>
function ( $ctx, $rc ) {
211 $lastVisitTs = $rc->
getAttribute(
'wl_notificationtimestamp' );
212 return $lastVisitTs ===
null || $changeTs < $lastVisitTs;
217 'queryCallable' =>
function ( $specialPageClassName,
$context,
$dbr,
218 &
$tables, &$fields, &$conds, &$query_options, &$join_conds, $selectedValues ) {
219 if ( $selectedValues === [
'seen' ] ) {
220 $conds[] =
$dbr->makeList( [
221 'wl_notificationtimestamp IS NULL',
222 'rc_timestamp < wl_notificationtimestamp'
224 } elseif ( $selectedValues === [
'unseen' ] ) {
225 $conds[] =
$dbr->makeList( [
226 'wl_notificationtimestamp IS NOT NULL',
227 'rc_timestamp >= wl_notificationtimestamp'
236 $hideMinor = $significance->getFilter(
'hideminor' );
237 $hideMinor->setDefault(
$user->getBoolOption(
'watchlisthideminor' ) );
240 $hideBots = $automated->getFilter(
'hidebots' );
241 $hideBots->setDefault(
$user->getBoolOption(
'watchlisthidebots' ) );
244 $hideAnons = $registration->getFilter(
'hideanons' );
245 $hideAnons->setDefault(
$user->getBoolOption(
'watchlisthideanons' ) );
246 $hideLiu = $registration->getFilter(
'hideliu' );
247 $hideLiu->setDefault(
$user->getBoolOption(
'watchlisthideliu' ) );
251 if (
$user->getBoolOption(
'watchlisthideanons' ) &&
252 !
$user->getBoolOption(
'watchlisthideliu' )
255 ->setDefault(
'registered' );
258 if (
$user->getBoolOption(
'watchlisthideliu' ) &&
259 !
$user->getBoolOption(
'watchlisthideanons' )
262 ->setDefault(
'unregistered' );
266 if ( $reviewStatus !==
null ) {
268 if (
$user->getBoolOption(
'watchlisthidepatrolled' ) ) {
269 $reviewStatus->setDefault(
'unpatrolled' );
270 $legacyReviewStatus = $this->
getFilterGroup(
'legacyReviewStatus' );
271 $legacyHidePatrolled = $legacyReviewStatus->getFilter(
'hidepatrolled' );
272 $legacyHidePatrolled->setDefault(
true );
277 $hideMyself = $authorship->getFilter(
'hidemyself' );
278 $hideMyself->setDefault(
$user->getBoolOption(
'watchlisthideown' ) );
281 $hideCategorization = $changeType->getFilter(
'hidecategorization' );
282 if ( $hideCategorization !==
null ) {
284 $hideCategorization->setDefault(
$user->getBoolOption(
'watchlisthidecategorization' ) );
298 static $compatibilityMap = [
299 'hideMinor' =>
'hideminor',
300 'hideBots' =>
'hidebots',
301 'hideAnons' =>
'hideanons',
302 'hideLiu' =>
'hideliu',
303 'hidePatrolled' =>
'hidepatrolled',
304 'hideOwn' =>
'hidemyself',
308 foreach ( $compatibilityMap
as $from => $to ) {
309 if ( isset(
$params[$from] ) ) {
315 if ( $this->
getRequest()->getVal(
'action' ) ==
'submit' ) {
316 $allBooleansFalse = [];
325 $allBooleansFalse[
$filter->getName() ] =
false;
334 $opts->fetchValuesFromRequest(
$request );
348 $rcQuery = RecentChange::getQueryInfo();
349 $tables = array_merge(
$tables, $rcQuery[
'tables'], [
'watchlist' ] );
350 $fields = array_merge( $rcQuery[
'fields'], $fields );
352 $join_conds = array_merge(
357 'wl_user' =>
$user->getId(),
358 'wl_namespace=rc_namespace',
368 $fields[] =
'page_latest';
369 $join_conds[
'page'] = [
'LEFT JOIN',
'rc_cur_id=page_id' ];
371 $fields[] =
'wl_notificationtimestamp';
375 if ( !
$user->isAllowed(
'deletedhistory' ) ) {
377 } elseif ( !
$user->isAllowedAny(
'suppressrevision',
'viewsuppressed' ) ) {
383 $conds[] =
$dbr->makeList( [
385 $dbr->bitAnd(
'rc_deleted', $bitmask ) .
" != $bitmask",
389 $tagFilter = $opts[
'tagfilter'] ? explode(
'|', $opts[
'tagfilter'] ) : [];
406 'ORDER BY' =>
'rc_timestamp DESC',
407 'LIMIT' => $opts[
'limit']
409 if ( in_array(
'DISTINCT', $query_options ) ) {
415 $orderByAndLimit[
'ORDER BY'] =
'rc_timestamp DESC, rc_id DESC';
416 $orderByAndLimit[
'GROUP BY'] =
'rc_timestamp, rc_id';
420 $query_options = array_merge( $orderByAndLimit, $query_options );
446 $wlToken =
$user->getTokenFromOption(
'watchlisttoken' );
449 'action' =>
'feedwatchlist',
451 'wlowner' =>
$user->getName(),
452 'wltoken' => $wlToken,
467 $services = MediaWikiServices::getInstance();
469 # Show a message about replica DB lag, if applicable
470 $lag =
$dbr->getSessionLagStatus()[
'lag'];
472 $output->showLagWarning( $lag );
475 # If no rows to display, show message before try to render the list
476 if (
$rows->numRows() == 0 ) {
478 "<div class='mw-changeslist-empty'>\n$1\n</div>",
'recentchanges-noresult'
486 $list->setWatchlistDivs();
487 $list->initChangesListRows(
$rows );
488 if (
$user->getOption(
'watchlistunwatchlinks' ) ) {
496 return $this->getLinkRenderer()
497 ->makeKnownLink( $rc->getTitle(),
498 $this->msg(
'watchlist-unwatch' )->text(), [
499 'class' =>
'mw-unwatch-link',
500 'title' => $this->msg(
'tooltip-ca-unwatch' )->text()
501 ], [
'action' =>
'unwatch' ] ) .
"\u{00A0}";
507 if ( $this->
getConfig()->
get(
'RCShowWatchingUsers' )
508 &&
$user->getOption(
'shownumberswatching' )
510 $watchedItemStore =
$services->getWatchedItemStore();
513 $s = $list->beginRecentChangesList();
519 $userShowHiddenCats = $this->
getUser()->getBoolOption(
'showhiddencats' );
523 $rc = RecentChange::newFromRow( $obj );
525 # Skip CatWatch entries for hidden cats based on user preference
528 !$userShowHiddenCats &&
529 $rc->getParam(
'hidden-cat' )
534 $rc->counter = $counter++;
536 if ( $this->
getConfig()->
get(
'ShowUpdatedMarker' ) ) {
537 $updated = $obj->wl_notificationtimestamp;
542 if ( isset( $watchedItemStore ) ) {
543 $rcTitleValue =
new TitleValue( (
int)$obj->rc_namespace, $obj->rc_title );
544 $rc->numberofWatchingusers = $watchedItemStore->countWatchers( $rcTitleValue );
546 $rc->numberofWatchingusers = 0;
549 $changeLine = $list->recentChangesLine( $rc, $updated, $counter );
550 if ( $changeLine !==
false ) {
554 $s .= $list->endRecentChangesList();
570 $this->
msg(
'watchlistfor2',
$user->getName() )
572 $this->getLanguage(),
573 $this->getLinkRenderer()
581 $form .= Xml::openElement(
'form', [
584 'id' =>
'mw-watchlist-form'
586 $form .= Html::hidden(
'title', $this->
getPageTitle()->getPrefixedText() );
587 $form .= Xml::openElement(
589 [
'id' =>
'mw-watchlist-options',
'class' =>
'cloptions' ]
591 $form .= Xml::element(
592 'legend',
null, $this->
msg(
'watchlist-options' )->
text()
601 $wlInfo = Html::rawElement(
605 'data-params' => json_encode( [
'from' => $timestamp ] ),
607 $this->
msg(
'wlnote' )->numParams( $numRows, round( $opts[
'days'] * 24 ) )->params(
612 $nondefaults = $opts->getChangedValues();
613 $cutofflinks = Html::rawElement(
615 [
'class' =>
'cldays cloption' ],
619 # Spit out some control panel links
621 $namesOfDisplayedFilters = [];
623 $namesOfDisplayedFilters[] = $filterName;
628 $opts[ $filterName ],
629 $filter->isFeatureAvailableOnStructuredUi( $this )
633 $hiddenFields = $nondefaults;
634 $hiddenFields[
'action'] =
'submit';
635 unset( $hiddenFields[
'namespace'] );
636 unset( $hiddenFields[
'invert'] );
637 unset( $hiddenFields[
'associated'] );
638 unset( $hiddenFields[
'days'] );
639 foreach ( $namesOfDisplayedFilters
as $filterName ) {
640 unset( $hiddenFields[$filterName] );
643 # Namespace filter and put the whole form together.
645 $form .= $cutofflinks;
646 $form .= Html::rawElement(
648 [
'class' =>
'clshowhide' ],
649 $this->
msg(
'watchlist-hide' ) .
650 $this->
msg(
'colon-separator' )->escaped() .
651 implode(
' ', $links )
653 $form .=
"\n<br />\n";
655 $namespaceForm = Html::namespaceSelector(
657 'selected' => $opts[
'namespace'],
659 'label' => $this->
msg(
'namespace' )->
text(),
660 'in-user-lang' =>
true,
662 'name' =>
'namespace',
664 'class' =>
'namespaceselector',
667 $hidden = $opts[
'namespace'] ===
'' ?
' mw-input-hidden' :
'';
668 $namespaceForm .=
'<span class="mw-input-with-label' . $hidden .
'">' . Xml::checkLabel(
669 $this->
msg(
'invert' )->
text(),
673 [
'title' => $this->
msg(
'tooltip-invert' )->
text() ]
675 $namespaceForm .=
'<span class="mw-input-with-label' . $hidden .
'">' . Xml::checkLabel(
676 $this->
msg(
'namespace_association' )->
text(),
680 [
'title' => $this->
msg(
'tooltip-namespace_association' )->
text() ]
682 $form .= Html::rawElement(
684 [
'class' =>
'namespaceForm cloption' ],
688 $form .= Xml::submitButton(
689 $this->
msg(
'watchlist-submit' )->
text(),
690 [
'class' =>
'cloption-submit' ]
692 foreach ( $hiddenFields
as $key =>
$value ) {
693 $form .= Html::hidden( $key,
$value ) .
"\n";
695 $form .= Xml::closeElement(
'fieldset' ) .
"\n";
696 $form .= Xml::closeElement(
'form' ) .
"\n";
700 $rcfilterContainer = Html::element(
702 [
'class' =>
'rcfilters-container' ]
705 $loadingContainer = Html::rawElement(
707 [
'class' =>
'rcfilters-spinner' ],
710 [
'class' =>
'rcfilters-spinner-bounce' ]
718 [
'class' =>
'rcfilters-head' ],
719 $rcfilterContainer . $form
724 $this->
getOutput()->addHTML( $loadingContainer );
733 $selected = (float)
$options[
'days'];
734 if ( $selected <= 0 ) {
738 $selectedHours = round( $selected * 24 );
740 $hours = array_unique( array_filter( [
748 24 * (
float)$this->
getUser()->getOption(
'watchlistdays', 0 ),
754 $select =
new XmlSelect(
'days',
'days', (
float)( $selectedHours / 24 ) );
758 $name = $this->
msg(
'hours' )->numParams( $value )->text();
760 $name = $this->
msg(
'days' )->numParams( $value / 24 )->text();
762 $select->addOption(
$name, (
float)(
$value / 24 ) );
765 return $select->getHTML() .
"\n<br />\n";
774 $showUpdatedMarker = $this->
getConfig()->get(
'ShowUpdatedMarker' );
777 $watchlistHeader =
'';
778 if ( $numItems == 0 ) {
779 $watchlistHeader = $this->
msg(
'nowatchlist' )->parse();
781 $watchlistHeader .= $this->
msg(
'watchlist-details' )->numParams( $numItems )->parse() .
"\n";
782 if ( $this->
getConfig()->
get(
'EnotifWatchlist' )
783 &&
$user->getOption(
'enotifwatchlistpages' )
785 $watchlistHeader .= $this->
msg(
'wlheader-enotif' )->parse() .
"\n";
787 if ( $showUpdatedMarker ) {
788 $watchlistHeader .= $this->
msg(
790 'rcfilters-watchlist-showupdated' :
791 'wlheader-showupdated'
795 $form .= Html::rawElement(
797 [
'class' =>
'watchlistDetails' ],
801 if ( $numItems > 0 && $showUpdatedMarker ) {
802 $form .= Xml::openElement(
'form', [
'method' =>
'post',
804 'id' =>
'mw-watchlist-resetbutton' ] ) .
"\n" .
805 Xml::submitButton( $this->
msg(
'enotif_reset' )->
text(),
806 [
'name' =>
'mw-watchlist-reset-submit' ] ) .
"\n" .
807 Html::hidden(
'token',
$user->getEditToken() ) .
"\n" .
808 Html::hidden(
'reset',
'all' ) .
"\n";
809 foreach ( $nondefaults
as $key =>
$value ) {
810 $form .= Html::hidden( $key,
$value ) .
"\n";
812 $form .= Xml::closeElement(
'form' ) .
"\n";
821 $attribs = [
'class' =>
'mw-input-with-label clshowhideoption cloption' ];
822 if ( $inStructuredUi ) {
823 $attribs[
'data-feature-in-structured-ui' ] =
true;
826 return Html::rawElement(
834 $this->
msg( $message,
'<nowiki/>' )->parse()
847 $store = MediaWikiServices::getInstance()->getWatchedItemStore();
848 $count = $store->countWatchedItems( $this->
getUser() );
849 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.
getPerformer()
Get the User object of the person who performed this change.
getAttribute( $name)
Get an attribute value.
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.
$watchStore
WatchedItemStore.
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
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
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
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
return true to allow those checks to and false if checking is done & $user
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
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