MediaWiki  1.27.1
Deprecated List
Member $wgEnableParserCache
1.26
Member $wgHtml5
since 1.22
Member $wgIncludeLegacyJavaScript
since 1.26: Always declare dependencies.
Member $wgJsMimeType
since 1.22
Member $wgLocalInterwiki
since 1.23; use $wgLocalInterwikis instead
Member $wgPasswordSenderName
since 1.23; use the system message 'emailsender' instead.
Member $wgRequestTime
since 1.25; use $_SERVER['REQUEST_TIME_FLOAT'] or WebRequest::getElapsedTime() instead.
Member $wgResourceLoaderMinifierMaxLineLength
since 1.27: Always 1,000; no longer configurable.
Member $wgResourceLoaderMinifierStatementsOnOwnLine
since 1.27: Always false; no longer configurable.
Member $wgScriptExtension
since 1.25; support for '.php5' has been phased out of MediaWiki proper. Backward-compatibility can be maintained by configuring your web server to rewrite URLs. See RELEASE-NOTES for details.
Member $wgSessionHandler
since 1.27, MediaWiki\Session\SessionManager doesn't use PHP session storage.
Member $wgSessionsInMemcached
since 1.20; Use $wgSessionsInObjectCache
Member $wgSessionsInObjectCache
since 1.27, session data is always stored in object cache.
Member $wgSharedDB
since 1.21 In new code, use the $wiki parameter to wfGetLB() to access remote databases. Using wfGetLB() allows the shared database to reside on separate servers to the wiki's own database, with suitable configuration of $wgLBFactoryConf.
Member $wgSkipSkin
since 1.23; use $wgSkipSkins instead
Member $wgTrackingCategories
since 1.25 Extensions should now register tracking categories using the new extension registration system.
Member $wgXhtmlDefaultNamespace
since 1.22
Member ApiBase::getDescription ()
since 1.25
Returns
Message|string|array
Member ApiBase::getExamples ()
since 1.25, use getExamplesMessages() instead
Returns
bool|string|array
Member ApiBase::getModuleProfileName ($db=false)
since 1.25, always returns empty string
Parameters
IDatabase | bool$db
Returns
string
Member ApiBase::getParamDescription ()
since 1.25
Returns
array|bool False on no parameter descriptions
Member ApiBase::getProfileDBTime ()
since 1.25, always returns 0
Returns
float
Member ApiBase::getProfileTime ()
since 1.25, always returns 0
Returns
float
Member ApiBase::getResultData ()
since 1.25, use $this->getResult() methods instead
Returns
array
Member ApiBase::indentExampleText ($item)
since 1.25
Parameters
string$item
Returns
string
Member ApiBase::makeHelpArrayToString ($prefix, $title, $input)
since 1.25
Parameters
string$prefixText to split output items
string$titleWhat is being output
string | array$input
Returns
string
Member ApiBase::makeHelpMsg ()
since 1.25
Returns
string|bool
Member ApiBase::makeHelpMsgParameters ()
since 1.25
Returns
string|bool
Member ApiBase::profileDBIn ()
since 1.25
Member ApiBase::profileDBOut ()
since 1.25
Member ApiBase::profileIn ()
since 1.25
Member ApiBase::profileOut ()
since 1.25
Member ApiBase::safeProfileOut ()
since 1.25
Class ApiErrorFormatter_BackCompat

Only for backwards compatibility, do not use

Member ApiFormatBase::formatHTML ($text)
since 1.25
Parameters
string$text
Returns
string
Member ApiFormatBase::getDescription ()
since 1.25
Member ApiFormatBase::getNeedsRawData ()
since 1.25
Returns
bool Always true
Member ApiFormatBase::getWantsHelp ()
since 1.25
Returns
bool
Member ApiFormatBase::setBufferResult ($value)
since 1.25, output is always buffered
Parameters
bool$value
Member ApiFormatBase::setHelp ($help=true)
since 1.25
Parameters
bool$help
Member ApiFormatBase::setUnescapeAmps ($b)
since 1.25
Parameters
bool$bWhether or not ampersands should be escaped.
Member ApiFormatJson::getWantsHelp ()
since 1.25
Member ApiMain::makeHelpMsg ()
since 1.25
Returns
string
Member ApiMain::makeHelpMsgHeader ($module, $paramName)
since 1.25
Parameters
ApiBase$module
string$paramNameWhat type of request is this? e.g. action, query, list, prop, meta, format
Returns
string
Member ApiMain::reallyMakeHelpMsg ()
since 1.25
Returns
mixed|string
Member ApiMain::setHelp ($help=true)
since 1.25
Parameters
bool$help
Member ApiPageSet::getInvalidTitles ()
since 1.26, use self::getInvalidTitlesAndReasons()
Returns
string[] Array of strings (not Title objects)
Member ApiQuery::makeHelpMsg ()
since 1.25
Returns
string
Member ApiQuery::makeHelpMsgHelper ($group)
since 1.25
Parameters
string$groupModule group
Returns
string
Class ApiQueryDeletedrevs
since 1.25
Member ApiQueryImageInfo::getProperties ($modulePrefix= '')
since 1.25
Parameters
string$modulePrefix
Returns
array
Member ApiQueryImageInfo::getPropertyDescriptions ($filter=[], $modulePrefix= '')
since 1.25
Parameters
array$filterList of properties to filter out
string$modulePrefix
Returns
array
Member ApiQueryInfo::getBlockToken ($pageid, $title)
since 1.24
Member ApiQueryInfo::getDeleteToken ($pageid, $title)
since 1.24
Member ApiQueryInfo::getEditToken ($pageid, $title)
since 1.24
Member ApiQueryInfo::getEmailToken ($pageid, $title)
since 1.24
Member ApiQueryInfo::getImportToken ($pageid, $title)
since 1.24
Member ApiQueryInfo::getMoveToken ($pageid, $title)
since 1.24
Member ApiQueryInfo::getOptionsToken ($pageid, $title)
since 1.24
Member ApiQueryInfo::getProtectToken ($pageid, $title)
since 1.24
Member ApiQueryInfo::getTokenFunctions ()
since 1.24
Returns
array Array(tokenname => function)
Member ApiQueryInfo::getUnblockToken ($pageid, $title)
since 1.24
Member ApiQueryInfo::getWatchToken ($pageid, $title)
since 1.24
Member ApiQueryInfo::resetTokenCache ()
since 1.24
Member ApiQueryLogEvents::addLogParams ($result, &$vals, $params, $type, $action, $ts, $legacy=false)
since 1.25 Use LogFormatter::formatParametersForApi instead
Parameters
ApiResult$result
array$vals
string$params
string$type
string$action
string$ts
bool$legacy
Returns
array
Member ApiQueryRecentChanges::getPatrolToken ($pageid, $title, $rc=null)
since 1.24
Parameters
int$pageid
Title$title
RecentChange | null$rc
Returns
bool|string
Member ApiQueryRecentChanges::getTokenFunctions ()
since 1.24
Returns
array Array(tokenname => function)
Member ApiQueryRevisions::getRollbackToken ($pageid, $title, $rev)
since 1.24
Parameters
int$pageid
Title$title
Revision$rev
Returns
bool|string
Member ApiQueryRevisions::getTokenFunctions ()
since 1.24
Member ApiQueryUsers::getTokenFunctions ()
since 1.24
Returns
array Array of tokenname => function
Member ApiQueryUsers::getUserrightsToken ($user)
since 1.24
Parameters
User$user
Returns
string
Member ApiResult::beginContinuation ($continue, array $allModules=[], array $generatedModules=[])
since 1.25, use ApiContinuationManager instead
Parameters
string | null$continue
ApiBase[]$allModules
array$generatedModules
Returns
array
Member ApiResult::cleanUpUTF8 ()
since 1.25
Member ApiResult::convertStatusToArray ($status, $errorType= 'error')
since 1.25, use ApiErrorFormatter::arrayFromStatus()
Parameters
Status$status
string$errorType
Returns
array
Member ApiResult::disableSizeCheck ()
since 1.24, use ApiResult::NO_SIZE_CHECK
Member ApiResult::enableSizeCheck ()
since 1.24, use ApiResult::NO_SIZE_CHECK
Member ApiResult::endContinuation ($style= 'standard')
since 1.25, use ApiContinuationManager instead
Parameters
string$style'standard' for the new style since 1.21, 'raw' for the style used in 1.20 and earlier.
Member ApiResult::getData ()
since 1.25, use $this->getResultData() instead
Returns
array
Member ApiResult::getIsRawMode ()
since 1.25, you shouldn't have been using it in the first place
Returns
bool
Member ApiResult::setContent (&$arr, $value, $subElemName=null)
since 1.25, use self::setContentValue() instead
Parameters
array$arrTo add the content element to
mixed$value
string$subElemNameWhen present, content element is created as a sub item of $arr. Use this parameter to create elements in format "<elem>text</elem>" without attributes.
Member ApiResult::setContinueParam (ApiBase $module, $paramName, $paramValue)
since 1.25, use ApiContinuationManager instead
Parameters
ApiBase$module
string$paramName
string | array$paramValue
Member ApiResult::setElement (&$arr, $name, $value, $flags=0)
since 1.25, use self::setValue() instead
Parameters
array$arrTo add $value to
string$nameIndex of $arr to add $value at
mixed$value
int$flagsZero or more OR-ed flags like OVERRIDE | ADD_ON_TOP. This parameter used to be boolean, and the value of OVERRIDE=1 was specifically chosen so that it would be backwards compatible with the new method signature.
Member ApiResult::setGeneratorContinueParam (ApiBase $module, $paramName, $paramValue)
since 1.25, use ApiContinuationManager instead
Parameters
ApiBase$module
string$paramName
string | array$paramValue
Member ApiResult::setIndexedTagName_internal ($path, $tag)
since 1.25, use $this->addIndexedTagName() instead
Parameters
array$pathPath to the array, like addValue()'s $path
string$tag
Member ApiResult::setIndexedTagName_recursive (&$arr, $tag)
since 1.25, use self::setIndexedTagNameRecursive() instead
Parameters
array$arr
string$tagTag name
Member ApiResult::setMainForContinuation (ApiMain $main)
for backwards compatibility only, do not use
Parameters
ApiMain$main
Member ApiResult::setParsedLimit ($moduleName, $limit)
since 1.25, use $this->addParsedLimit() instead
Parameters
string$moduleName
int$limit
Member ApiResult::setRawMode ($flag=true)
since 1.25, you shouldn't have been using it in the first place
Since
1.23 $flag parameter added
Parameters
bool$flagSet the raw mode flag to this state
Member ApiResult::size ($value)
since 1.25, no external users known and there doesn't seem to be any case for such use over just checking the return value from the add/set methods.
Parameters
mixed$value
Returns
int
Class ApiTokens

since 1.24

Member ArchivedFile::getUserText ()
since 1.23 Use getUser( 'text' ) instead.
Returns
string
Member Article::fetchContent ()
since 1.21, use WikiPage::getContent() instead
Member Article::getAutosummary ($oldtext, $newtext, $flags)
since 1.21, use ContentHandler::getAutosummary() instead
Member Article::getContent ()
since 1.21; use WikiPage::getContent() instead
Member Article::onArticleCreate ($title)
since 1.24, use WikiPage::onArticleCreate() instead
Member Article::onArticleDelete ($title)
since 1.24, use WikiPage::onArticleDelete() instead
Member Article::onArticleEdit ($title)
since 1.24, use WikiPage::onArticleEdit() instead
Member Article::selectFields ()
since 1.24, use WikiPage::selectFields() instead
Class AuthPlugin
since 1.27
Member AuthPlugin::initUser (&$user, $autocreate=false)
since 1.26, use the UserLoggedIn hook instead. And assigning a different User object to $user is no longer supported.
Parameters
User$user
bool$autocreateTrue if user is being autocreated on login
Member AuthPlugin::updateExternalDB ($user)
since 1.26, use the UserSaveSettings hook instead.
Parameters
User$user
Returns
bool
Member AuthPlugin::updateExternalDBGroups ($user, $addgroups, $delgroups=[])
since 1.26, use the UserGroupsChanged hook instead.
Parameters
User$user
array$addgroupsGroups to add.
array$delgroupsGroups to remove.
Returns
bool
Member AuthPlugin::updateUser (&$user)
since 1.26, use the UserLoggedIn hook instead. And assigning a different User object to $user is no longer supported.
Parameters
User$user
Returns
bool
Class AuthPluginUser
since 1.27
Member AuthPluginUser::isHidden ()
since 1.26, use the UserIsHidden hook instead.
Returns
bool
Member AuthPluginUser::isLocked ()
since 1.26, use the UserIsLocked hook instead.
Returns
bool
Member AuthPluginUser::resetAuthToken ()
since 1.28, use SessionManager::invalidateSessionForUser() instead.
Class CdbException
since 1.25
Class CdbReader
since 1.25
Class CdbWriter
since 1.25
Member CdnCacheUpdate::newSimplePurge (Title $title)
1.27
Member ChangesList::insertArticleLink (&$s, RecentChange $rc, $unpatrolled, $watched)
since 1.27, use getArticleLink instead.
Member codepointToUtf8 ($codepoint)
since 1.25, use UtfNormal\Utils directly
Member ConfigFactory::getDefaultInstance ()
since 1.27, use MediaWikiServices::getConfigFactory() instead.
Member ContextSource::getStats ()
since 1.27 use a StatsdDataFactory from MediaWikiServices (preferably injected)
Member DerivativeContext::getStats ()
since 1.27 use a StatsdDataFactory from MediaWikiServices (preferably injected)
Member DifferenceEngine::generateDiffBody ($otext, $ntext)
since 1.21, use generateContentDiffBody() instead!
Member DummyLinker::getInternalLinkAttributes ($title, $unused=null, $class= '')
since 1.27
Member DummyLinker::getInternalLinkAttributesObj ($nt, $unused=null, $class= '', $title=false)
since 1.27
Member DummyLinker::getInterwikiLinkAttributes ($title, $unused=null, $class= 'external')
since 1.27
Member EDIT_TOKEN_SUFFIX

since 1.27, use \MediaWiki\Session\Token::SUFFIX

Member EmailNotification::updateWatchlistTimestamp (User $editor, LinkTarget $linkTarget, $timestamp)
since 1.27 use WatchedItemStore::updateNotificationTimestamp directly
Member escapeSingleString ($string)
since 1.25, use UtfNormal\Utils directly
Member EventRelayerGroup::singleton ()
since 1.27 Use MediaWikiServices::getInstance()->getEventRelayerGroup()
Returns
EventRelayerGroup
Member FileRepo::streamFile ($virtualUrl, $headers=[])
since 1.26, use streamFileWithStatus
Parameters
string$virtualUrl
array$headersAdditional HTTP headers to send on success
Returns
bool Success
Class FileRepoStatus
1.25
Class FSRepo
since 1.19
Member hexSequenceToUtf8 ($sequence)
since 1.25, use UtfNormal\Utils directly
Member HTMLFileCache::newFromTitle ($title, $action)
Since 1.24, instantiate this class directly
Member HTMLForm::isVForm ()
since 1.25
Returns
bool
File HtmlFormatter.php
since 1.27, use HtmlFormatter\HtmlFormatter
Member IContextSource::getStats ()
since 1.27 use a StatsdDataFactory from MediaWikiServices (preferably injected)
Class ImageGallery
since 1.22 Use ImageGalleryBase::factory instead.
Class IPSet
since 1.26 use IPSet\IPSet directly
Member Job::batchInsert ($jobs)
since 1.21
Member Job::insert ()
since 1.21
Member JsonContent::getJsonData ()
since 1.25 Use getData instead.
Returns
array|null
Member Linker::getInternalLinkAttributes ($title, $unused=null, $class= '')
since 1.25
Member Linker::getInternalLinkAttributesObj ($nt, $unused=null, $class= '', $title=false)
since 1.25
Member Linker::getInterwikiLinkAttributes ($title, $unused=null, $class= 'external')
since 1.25
Member Linker::getLinkAttributesInternal ($title, $class)
since 1.25
Member LoginForm::clearCreateaccountToken ()
since 1.27 - don't use LoginForm, use AuthManager instead
Member LoginForm::clearLoginThrottle ($username)
since 1.27 - don't use LoginForm, use AuthManager instead
Member LoginForm::clearLoginToken ()
since 1.27 - don't use LoginForm, use AuthManager instead
Member LoginForm::getCreateaccountToken ()
since 1.27 - don't use LoginForm, use AuthManager instead
Member LoginForm::getLoginToken ()
since 1.27 - don't use LoginForm, use AuthManager instead
Member LoginForm::getValidErrorMessages ()
since 1.27 - call LoginHelper::getValidErrorMessages instead.
Member LoginForm::incLoginThrottle ($username)
since 1.27 - don't use LoginForm, use AuthManager instead
Member LoginForm::incrementLoginThrottle ($username)
since 1.27 - don't use LoginForm, use AuthManager instead
Member LoginForm::setCreateaccountToken ()
since 1.27 - don't use LoginForm, use AuthManager instead
Member LoginForm::setLoginToken ()
since 1.27 - don't use LoginForm, use AuthManager instead
Member MagicWord::replaceMultiple ($magicarr, $subject, &$result)
since 1.25, unused
Member MediaTransformOutput::streamFile ($headers=[])
since 1.26, use streamFileWithStatus
Parameters
array$headersAdditional HTTP headers to send on success
Returns
bool Success
Member MediaWiki::callLegacyAuthPlugin ($method, array $params, $return=null)
For backwards compatibility only, should be avoided in new code
Parameters
string$methodAuthPlugin method to call
array$paramsParameters to pass
mixed$returnReturn value if AuthPlugin wasn't called
Returns
mixed Return value from the AuthPlugin method, or $return
Member MediaWiki::forcePrimaryAuthenticationProviders (array $providers, $why)
For backwards compatibility only
Parameters
PrimaryAuthenticationProvider[]$providers
string$why
Class MediaWiki
since 1.27
Class MediaWiki
since 1.27
Class MediaWiki
since 1.27
Class MediaWiki
since 1.27
Member MediaWiki::autoCreateUser (User $user)
since 1.27, use MediaWiki\Auth\AuthManager::autoCreateUser instead
Parameters
User$userUser to auto-create
Returns
bool Success
Member MediaWikiTestCase::assertNotTag ($matcher, $actual, $message= '', $isHtml=true)
Member MediaWikiTestCase::assertTag ($matcher, $actual, $message= '', $isHtml=true)
Class MemCachedClientforWiki
since 1.27
Member MessageBlobStore::get (ResourceLoader $resourceLoader, $modules, $lang)
since 1.27 Use getBlobs() instead
Returns
array
Member MessageBlobStore::insertMessageBlob ($name, ResourceLoaderModule $module, $lang)
since 1.27 Obsolete. Used to populate a cache table in the database.
Returns
bool
Member MWExceptionHandler::getLogId ($e)
since 1.27: Exception IDs are synonymous with request IDs.
Parameters
Exception | Throwable$e
Returns
string
Class MWMemcached
since 1.27
Member MWTimestamp::getHumanTimestamp (MWTimestamp $relativeTo=null, User $user=null, Language $lang=null)
since 1.26 Use Language::getHumanTimestamp directly
Member ObjectCache::newAccelerator ($params=[], $fallback=null)
1.27
Member OutputPage::$mDebugtext
since 1.20; use MWDebug class instead.
Member OutputPage::addExtensionStyle ($url)
since 1.27 use addModuleStyles() or addStyle() instead
Parameters
string$urlPath to sheet. Provide either a full url (beginning with 'http', etc) or a relative path from the document root (beginning with '/'). Otherwise it behaves identically to addStyle() and draws from the /skins folder.
Member OutputPage::addModuleMessages ($modules)
since 1.26 Use addModules() instead
Parameters
string | array$modulesModule name (string) or array of module names
Member OutputPage::addParserOutputNoText ($parserOutput)
since 1.24, use addParserOutputMetadata() instead.
Parameters
ParserOutput$parserOutput
Member OutputPage::getExtStyle ()
since 1.27
Returns
array
Member OutputPage::getHeadLinks ()
since 1.24 Use OutputPage::headElement or if you have to, OutputPage::getHeadLinksArray directly.
Member OutputPage::getModuleMessages ($filter=false, $position=null)
since 1.26 Obsolete
Parameters
bool$filter
string | null$position
Returns
array Array of module names
Member OutputPage::rateLimited ()
since 1.25; throw the exception directly
Member OutputPage::readOnlyPage ()
since 1.25; throw the exception directly
Exceptions
ReadOnlyError
Member OutputPage::setSquidMaxage ($maxage)
since 1.27 Use setCdnMaxage() instead
Member Parser::$mUniqPrefix
since 1.26; use Parser::MARKER_PREFIX instead.
Member Parser::getRandomString ()
since 1.26; use wfRandomString() instead.
Member Parser::replaceUnusualEscapes ($url)
since 1.24, use normalizeLinkUrl
Parameters
string$url
Returns
string
Member Parser::uniqPrefix ()
since 1.26; use Parser::MARKER_PREFIX instead.
Member ParserOutput::addModuleMessages ($modules)
since 1.26 Use addModules() instead
Parameters
string | array$modules
Member ParserOutput::getModuleMessages ()
since 1.26 Obsolete
Returns
array
File PHPVersionError.php

1.25

Class PrefixSearch
Since 1.27, Use SearchEngine::prefixSearchSubpages or SearchEngine::completionSearch
Member PrefixSearch::titleSearch ($search, $limit, $namespaces=[], $offset=0)
Since 1.23, use TitlePrefixSearch or StringPrefixSearch classes
Class ProfileSection
1.25 No-op now
Member QueryPage::tryLastResult ()
since 1.27
Member RedisConnectionPool::handleException ($server, RedisConnRef $cref, RedisException $e)
since 1.23
Member RequestContext::getStats ()
since 1.27 use a StatsdDataFactory from MediaWikiServices (preferably injected)
Member ResourceLoader::makeLoaderConditionalScript ($script)
since 1.25; use makeInlineScript instead
Parameters
string$scriptJavaScript code
Returns
string
Member ResourceLoader::makeLoaderURL ($modules, $lang, $skin, $user=null, $version=null, $debug=false, $only=null, $printable=false, $handheld=false, $extraQuery=[])
since 1.24 Use createLoaderURL() instead
Parameters
array$modulesArray of module names (strings)
string$langLanguage code
string$skinSkin name
string | null$userUser name. If null, the &user= parameter is omitted
string | null$versionVersioning timestamp
bool$debugWhether the request should be in debug mode
string | null$only&only= parameter
bool$printablePrintable mode
bool$handheldHandheld mode
array$extraQueryExtra query parameters to add
Returns
string URL to load.php. May be protocol-relative if $wgLoadScript is, too.
Member ResourceLoaderModule::getDefinitionMtime (ResourceLoaderContext $context)
since 1.26 Superseded by getVersionHash()
Parameters
ResourceLoaderContext$context
Returns
int UNIX timestamp
Member ResourceLoaderModule::getHashMtime (ResourceLoaderContext $context)
since 1.26 Superseded by getVersionHash()
Parameters
ResourceLoaderContext$context
Returns
int UNIX timestamp
Member ResourceLoaderModule::getModifiedHash (ResourceLoaderContext $context)
since 1.26 Use getDefinitionSummary() instead
Parameters
ResourceLoaderContext$context
Returns
string|null Hash
Member ResourceLoaderModule::getModifiedTime (ResourceLoaderContext $context)
since 1.26 Use getDefinitionSummary() instead
Parameters
ResourceLoaderContext$contextContext object
Returns
int|null UNIX timestamp
Member Revision::getRawComment ()
since 1.25, use getComment( Revision::RAW )
Member Revision::getRawUser ()
since 1.25, use getUser( Revision::RAW )
Member Revision::getRawUserText ()
since 1.25, use getUserText( Revision::RAW )
Member Revision::getText ($audience=self::FOR_PUBLIC, User $user=null)
since 1.21, use getContent() instead
Member Revision::userWasLastToEdit ($db, $pageId, $userId, $since)
since 1.24
Class RevisiondeleteAction
since 1.25 This class has been replaced by SpecialPageAction, but you really shouldn't have been using it outside core in the first place
Class RunningStat
since 1.27 use RunningStat\RunningStat directly
Member SearchEngine::create ($type=null)
since 1.27; Use SearchEngineFactory::create
Parameters
string$typeType of search backend, if not the default
Returns
SearchEngine
Member SearchEngine::defaultNamespaces ()
since 1.27; use SearchEngineConfig::defaultNamespaces()
Returns
array
Member SearchEngine::getNearMatch ($searchterm)
since 1.27; Use SearchEngine::getNearMatcher()
Parameters
string$searchterm
Returns
Title
Member SearchEngine::getNearMatchResultSet ($searchterm)
since 1.27; Use SearchEngine::getNearMatcher()
Parameters
string$searchterm
Returns
SearchResultSet
Member SearchEngine::getOpenSearchTemplate ()
since 1.25
Returns
string
Member SearchEngine::getSearchTypes ()
since 1.27; use SearchEngineConfig::getSearchTypes()
Returns
array
Member SearchEngine::namespacesAsText ($namespaces)
since 1.27; use SearchEngineConfig::namespacesAsText()
Parameters
array$namespaces
Returns
array
Member SearchEngine::searchableNamespaces ()
since 1.27; use SearchEngineConfig::searchableNamespaces()
Returns
array
Member SearchEngine::userNamespaces ($user)
since 1.27; use SearchEngineConfig::userNamespaces()
Parameters
user$user
Returns
array
Member SiteConfiguration::$localVHosts
since 1.25; use $wgLocalVirtualHosts instead.
Member SiteConfiguration::isLocalVHost ($vhost)
since 1.25; check if the host is in $wgLocalVirtualHosts instead.
Parameters
string$vhost
Returns
bool
Member SiteSQLStore::newInstance ($sitesTable=null, BagOStuff $cache=null)
1.27 use MediaWikiServices::getSiteStore() or MediaWikiServices::getSiteLookup() instead.
Member SiteStats::views ()
since 1.25
Returns
int
Member Skin::commentBlock ($comment, $title=null, $local=false, $wikiId=null)
in 1.21
Member Skin::generateRollback ($rev, IContextSource $context=null, $options=[ 'verify'])
in 1.21
Member Skin::link ($target, $html=null, $customAttribs=[], $query=[], $options=[])
in 1.21
Member Skin::linkKnown ($target, $html=null, $customAttribs=[], $query=[], $options=[ 'known', 'noclasses'])
in 1.21
Member Skin::showIPinHeader ()
since 1.27, feature removed
Returns
bool Always false
Member Skin::userLink ($userId, $userName, $altUserName=false)
in 1.21
Member Skin::userToolLinks ($userId, $userText, $redContribsWhenNoEdits=false, $flags=0, $edits=null)
in 1.21
Member SkinFactory::getDefaultInstance ()
in 1.27
Returns
SkinFactory
Member SpecialPage::getTitle ($subpage=false)
since 1.23, use SpecialPage::getPageTitle
Member SpecialPageFactory::getList ()
since 1.24, use getNames() instead.
Returns
array
Class SpecialResetTokens
1.26
Class SquidUpdate
since 1.27
Member Status::getErrorsArray ()
1.25
Member Status::getWarningsArray ()
1.25
Class StringPrefixSearch

Since 1.27, Use SearchEngine::prefixSearchSubpages or SearchEngine::completionSearch

Member TablePager::getBody ()
since 1.24, use getBodyOutput() or getFullOutput() instead
Returns
string
Member TestUser::$password
Since 1.25. Use TestUser::getPassword()
Access:
private
Member TestUser::$user
Since 1.25. Use TestUser::getUser()
Access:
private
Member TestUser::$username
Since 1.25. Use TestUser::getUser()->getName()
Access:
private
Member TextContent::getHighlightHtml ()
since 1.24. Use getHtml() instead. In particular, subclasses overriding getHighlightHtml() should override getHtml() instead.
Member Title::getSquidURLs ()
since 1.27 use getCdnUrls()
Member Title::getTitleInvalidRegex ()
since 1.25, use MediaWikiTitleCodec::getTitleInvalidRegex() instead
Member Title::isValidMoveOperation (&$nt, $auth=true, $reason= '')
since 1.25, use MovePage's methods instead
Parameters
Title$ntThe new title
bool$authWhether to check user permissions (uses $wgUser)
string$reasonIs the log summary of the move, used for spam checking
Returns
array|bool True on success, getUserPermissionsErrors()-like array on failure
Member Title::isValidMoveTarget ($nt)
since 1.25, use MovePage's methods instead
Parameters
Title$ntThe new title to check
Returns
bool
Member Title::moveNoAuth (&$nt)
since 1.25 use MovePage class instead
Parameters
Title$ntThe new page Title
Returns
array|bool True on success, getUserPermissionsErrors()-like array on failure
Member Title::moveTo (&$nt, $auth=true, $reason= '', $createRedirect=true)
since 1.25, use the MovePage class instead
Parameters
Title$ntThe new title
bool$authIndicates whether $wgUser's permissions should be checked
string$reasonThe reason for the move
bool$createRedirectWhether to create a redirect from the old title to the new title. Ignored if the user doesn't have the suppressredirect right.
Returns
array|bool True on success, getUserPermissionsErrors()-like array on failure
Class TitlePrefixSearch

Since 1.27, Use SearchEngine::prefixSearchSubpages or SearchEngine::completionSearch

Member UNICODE_HANGUL_FIRST
since 1.25, use UtfNormal\Constants instead
Member UNICODE_HANGUL_LAST
since 1.25, use UtfNormal\Constants instead
Member UNICODE_HANGUL_LBASE
since 1.25, use UtfNormal\Constants instead
Member UNICODE_HANGUL_LCOUNT
since 1.25, use UtfNormal\Constants instead
Member UNICODE_HANGUL_LEND
since 1.25, use UtfNormal\Constants instead
Member UNICODE_HANGUL_NCOUNT
since 1.25, use UtfNormal\Constants instead
Member UNICODE_HANGUL_TBASE
since 1.25, use UtfNormal\Constants instead
Member UNICODE_HANGUL_TCOUNT
since 1.25, use UtfNormal\Constants instead
Member UNICODE_HANGUL_TEND
since 1.25, use UtfNormal\Constants instead
Member UNICODE_HANGUL_VBASE
since 1.25, use UtfNormal\Constants instead
Member UNICODE_HANGUL_VCOUNT
since 1.25, use UtfNormal\Constants instead
Member UNICODE_HANGUL_VEND
since 1.25, use UtfNormal\Constants instead
Member UNICODE_MAX
since 1.25, use UtfNormal\Constants instead
Member UNICODE_REPLACEMENT
since 1.25, use UtfNormal\Constants instead
Member UNICODE_SURROGATE_FIRST
since 1.25, use UtfNormal\Constants instead
Member UNICODE_SURROGATE_LAST
since 1.25, use UtfNormal\Constants instead
Member User::addNewUserLogEntry ($action=false, $reason= '')
since 1.27, AuthManager handles logging
Parameters
string | bool$actionAccount creation type.
  • String, one of the following values:
    • 'create' for an anonymous user creating an account for himself. This will force the action's performer to be the created user itself, no matter the value of $wgUser
    • 'create2' for a logged in user creating an account for someone else
    • 'byemail' when the created user will receive its password by e-mail
    • 'autocreate' when the user is automatically created (such as by CentralAuth).
  • Boolean means whether the account was created by e-mail (deprecated):
    • true will be converted to 'byemail'
    • false will be converted to 'create' if this object is the same as $wgUser and to 'create2' otherwise
string$reasonUser supplied reason
Returns
bool true
Member User::addNewUserLogEntryAutoCreate ()
since 1.27, AuthManager handles logging
Returns
bool
Member User::checkPassword ($password)
since 1.27, use AuthManager instead
Parameters
string$passwordUser password
Returns
bool True if the given password is correct, otherwise False
Member User::checkTemporaryPassword ($plaintext)
since 1.27, use AuthManager instead
Parameters
string$plaintext
Returns
bool True if matches, false otherwise
Member User::clearCookie ($name, $secure=null, $params=[])
since 1.27
Parameters
string$nameName of the cookie to clear
bool$securetrue: Force setting the secure attribute when setting the cookie false: Force NOT setting the secure attribute when setting the cookie null (default): Use the default ($wgCookieSecure) to set the secure attribute
array$paramsArray of options sent passed to WebResponse::setcookie()
Member User::comparePasswords ($hash, $password, $userId=false)
since 1.24, use Password class
Member User::crypt ($password, $salt=false)
since 1.24, use Password class
Member User::EDIT_TOKEN_SUFFIX
since 1.27, use \MediaWiki\Session\Token::SUFFIX
Member User::edits ($uid)
since 1.21 in favour of User::getEditCount
Member User::getEditTokenTimestamp ($val)
since 1.27, use \MediaWiki\Session\Token::getTimestamp instead.
Parameters
string$valInput token
Returns
int|null
Member User::getPassword ()
Removed in 1.27.
Returns
Password
Since
1.24
Member User::getPasswordFactory ()
since 1.27, create a PasswordFactory directly instead
Returns
PasswordFactory
Member User::getTemporaryPassword ()
Removed in 1.27.
Returns
Password
Since
1.24
Member User::getTokenFromOption ($oname)
1.26 Applications should use the OAuth extension
Member User::isPasswordReminderThrottled ()
Removed in 1.27. See above.
Returns
bool
Member User::passwordChangeInputAttribs ()
since 1.27
Returns
array Array of HTML attributes suitable for feeding to Html::element(), directly or indirectly. (Don't feed to Xml::*()! That will get confused by the boolean attribute syntax used.)
Member User::randomPassword ()
since 1.27, use PasswordFactory::generateRandomPasswordString()
Returns
string New random password
Member User::setCookie ($name, $value, $exp=0, $secure=null, $params=[], $request=null)
since 1.27
Parameters
string$nameName of the cookie to set
string$valueValue to set
int$expExpiration time, as a UNIX time value; if 0 or not specified, use the default $wgCookieExpiration
bool$securetrue: Force setting the secure attribute when setting the cookie false: Force NOT setting the secure attribute when setting the cookie null (default): Use the default ($wgCookieSecure) to set the secure attribute
array$paramsArray of options sent passed to WebResponse::setcookie()
WebRequest | null$requestWebRequest object to use; $wgRequest will be used if null is passed.
Member User::setExtendedLoginCookie ($name, $value, $secure)
since 1.27
Parameters
string$nameName of the cookie to set
string$valueValue to set
bool$securetrue: Force setting the secure attribute when setting the cookie false: Force NOT setting the secure attribute when setting the cookie null (default): Use the default ($wgCookieSecure) to set the secure attribute
Member User::setInternalPassword ($str)
since 1.27, use AuthManager instead
Parameters
string | null$strNew password to set or null to set an invalid password hash meaning that the user will not be able to log in through the web interface.
Member User::setNewpassword ($str, $throttle=true)
Removed in 1.27. Use PasswordReset instead.
Parameters
string$strNew password to set or null to set an invalid password hash meaning that the user will not be able to use it
bool$throttleIf true, reset the throttle timestamp to the present
Member User::setPassword ($str)
since 1.27, use AuthManager instead
Parameters
string$strNew password to set
Exceptions
PasswordErrorOn failure
Returns
bool
Member UTF8_FDD0
since 1.25, use UtfNormal\Constants instead
Member UTF8_FDEF
since 1.25, use UtfNormal\Constants instead
Member UTF8_FFFE
since 1.25, use UtfNormal\Constants instead
Member UTF8_FFFF
since 1.25, use UtfNormal\Constants instead
Member UTF8_HANGUL_FIRST
since 1.25, use UtfNormal\Constants instead
Member UTF8_HANGUL_LAST
since 1.25, use UtfNormal\Constants instead
Member UTF8_HANGUL_LBASE
since 1.25, use UtfNormal\Constants instead
Member UTF8_HANGUL_LEND
since 1.25, use UtfNormal\Constants instead
Member UTF8_HANGUL_TBASE
since 1.25, use UtfNormal\Constants instead
Member UTF8_HANGUL_TEND
since 1.25, use UtfNormal\Constants instead
Member UTF8_HANGUL_VBASE
since 1.25, use UtfNormal\Constants instead
Member UTF8_HANGUL_VEND
since 1.25, use UtfNormal\Constants instead
Member UTF8_HEAD
since 1.25, use UtfNormal\Constants instead
Member UTF8_MAX
since 1.25, use UtfNormal\Constants instead
Member UTF8_OVERLONG_A
since 1.25, use UtfNormal\Constants instead
Member UTF8_OVERLONG_B
since 1.25, use UtfNormal\Constants instead
Member UTF8_OVERLONG_C
since 1.25, use UtfNormal\Constants instead
Member UTF8_REPLACEMENT
since 1.25, use UtfNormal\Constants instead
Member UTF8_SURROGATE_FIRST
since 1.25, use UtfNormal\Constants instead
Member UTF8_SURROGATE_LAST
since 1.25, use UtfNormal\Constants instead
Member UTF8_TAIL
since 1.25, use UtfNormal\Constants instead
Member utf8ToCodepoint ($char)
since 1.25, use UtfNormal\Utils directly
Class UtfNormal

since 1.25, use UtfNormal\Validator directly

Member WatchedItem::$checkRights
Internal class use only
Member WatchedItem::$title
Internal class use only
Member WatchedItem::addWatch ()
since 1.27 Use User::addWatch()
Returns
bool
Member WatchedItem::batchAddWatch (array $items)
since 1.27 Use WatchedItemStore::addWatchBatch()
Member WatchedItem::CHECK_USER_RIGHTS
since 1.27, see User::CHECK_USER_RIGHTS
Member WatchedItem::DEPRECATED_USAGE_TIMESTAMP
Internal class use only
Member WatchedItem::duplicateEntries (Title $oldTitle, Title $newTitle)
since 1.27 Use WatchedItemStore::duplicateAllAssociatedEntries()
Member WatchedItem::fromUserTitle ($user, $title, $checkRights=User::CHECK_USER_RIGHTS)
since 1.27 Use the constructor, WatchedItemStore::getWatchedItem() or WatchedItemStore::loadWatchedItem()
Member WatchedItem::getTitle ()
Internal class use only
Member WatchedItem::IGNORE_USER_RIGHTS
since 1.27, see User::IGNORE_USER_RIGHTS
Member WatchedItem::isWatched ()
since 1.27 Use User::isWatched()
Returns
bool
Member WatchedItem::removeWatch ()
since 1.27 Use User::removeWatch()
Returns
bool
Member WatchedItem::resetNotificationTimestamp ($force= '', $oldid=0)
since 1.27 Use WatchedItemStore::resetNotificationTimestamp()
Member WebRequest::checkSessionCookie ()
since 1.27, use \MediaWiki\Session\SessionManager::singleton()->getPersistedSessionId() instead.
Returns
bool
Member wfBaseConvert ($input, $sourceBase, $destBase, $pad=1, $lowercase=true, $engine= 'auto')
1.27 Use Wikimedia\base_convert() directly
Member wfDiff ($before, $after, $params= '-u')
since 1.25, use DiffEngine/UnifiedDiffFormatter directly
Member wfErrorLog ($text, $file, array $context=[])
since 1.25 Use \MediaWiki\Logger\LegacyLogger::emit or UDPTransport
Member wfFixSessionID ()
since 1.27, PHP's session generation isn't used with MediaWiki\Session\SessionManager
Member wfProfileIn ($functionname)
1.25
Member wfProfileOut ($functionname= 'missing')
1.25
Member wfResetSessionID ()
since 1.27, use MediaWiki\Session\SessionManager instead
Since
1.22
Member wfRestoreWarnings ()
since 1.26, use MediaWiki\restoreWarnings() directly Restore error level to previous value
Member wfRunHooks ($event, array $args=[], $deprecatedVersion=null)
1.25 - use Hooks::run
Member wfSetupSession ($sessionId=false)
since 1.27, use MediaWiki\Session\SessionManager instead. Generally, "using" SessionManager will be calling ->getSessionById() or ::getGlobalSession() (depending on whether you were passing $sessionId here), then calling $session->persist().
Parameters
bool | string$sessionId
Member wfSuppressWarnings ($end=false)
since 1.26, use MediaWiki\suppressWarnings() directly
Parameters
bool$end
Member wfUseMW ($req_ver)
since 1.26, use the "requires' property of extension.json
Parameters
string | int | float$req_verThe version to check, can be a string, an integer, or a float
Exceptions
MWException
Member wfWaitForSlaves ($ifWritesSince=null, $wiki=false, $cluster=false, $timeout=null)
since 1.27 Use LBFactory::waitForReplication
Member WikiPage::doEdit ($text, $summary, $flags=0, $baseRevId=false, $user=null)
since 1.21: use doEditContent() instead.
Member WikiPage::getAutosummary ($oldtext, $newtext, $flags)
since 1.21, use ContentHandler::getAutosummary() instead
Member WikiPage::getText ($audience=Revision::FOR_PUBLIC, User $user=null)
since 1.21, getContent() should be used instead.
Member WikiPage::prepareTextForEdit ($text, $revid=null, User $user=null)
since 1.21: use prepareContentForEdit instead.
Returns
object
Member WikiPage::replaceSectionContent ($sectionId, Content $sectionContent, $sectionTitle= '', $edittime=null)
since 1.24, use replaceSectionAtRev instead
Member WikiPage::updateIfNewerOn ($dbw, $revision)
since 1.24, use updateRevisionOn instead
Member WikiRevision::getText ()
Since 1.21, use getContent() instead.
Member Xml::escapeJsString ($string)
since 1.21; use Xml::encodeJsVar() or Xml::encodeJsCall() instead
Parameters
string$stringString to escape
Returns
string