MediaWiki  1.28.0
Deprecated List
Member $wgEnableParserCache
since 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::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 ApiPageSet::getInvalidTitles ()
since 1.26, use self::getInvalidTitlesAndReasons()
Returns
string[] Array of strings (not Title objects)
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 [ 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 [ 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
Class ApiTokens

since 1.24

Member ArchivedFile::getUserText ()
since 1.23 Use getUser( 'text' ) instead.
Returns
string
Member Article::doEdit ($text, $summary, $flags=0, $baseRevId=false, $user=null)
since 1.21: use doEditContent() instead.
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::getText ($audience=Revision::FOR_PUBLIC, User $user=null)
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::prepareTextForEdit ($text, $revid=null, User $user=null)
since 1.21, use prepareContentForEdit
See also
WikiPage::prepareTextForEdit
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)
since 1.27
Member ChangesList::insertArticleLink (&$s, RecentChange $rc, $unpatrolled, $watched)
since 1.27, use getArticleLink instead.
Member ChangeTags::listExtensionActivatedTags ()
since 1.28 call listSoftwareActivatedTags directly
Returns
array
Member ChangeTags::listExtensionDefinedTags ()
since 1.28
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 Database::getProperty ($name)
Since 1.28
Member Database::getSearchEngine ()
since 1.28 use SearchEngineFactory::getSearchEngineClass instead
Returns
string
Member DataUpdate::runUpdates (array $updates)
Since 1.28 Use DeferredUpdates::execute()
Member DBConnRef::getSearchEngine ()
since 1.28 use SearchEngineFactory::getSearchEngineClass instead
Returns
string
Member DerivativeContext::getStats ()
since 1.27 use a StatsdDataFactory from MediaWikiServices (preferably injected)
Member DummyLinker::formatSize ($size)
since 1.28, use Language::formatSize() directly
Member DummyLinker::formatTemplates ($templates, $preview=false, $section=false, $more=null)
since 1.28, use TemplatesOnThisPageFormatter directly
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 DummyLinker::getLinkColour ($t, $threshold)
since 1.28, use LinkRenderer::getLinkClasses() instead
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
since 1.25
Class FSRepo
since 1.19
Member GenderCache::singleton ()
in 1.28 see MediaWikiServices::getInstance()->getGenderCache()
Returns
GenderCache
Member hexSequenceToUtf8 ($sequence)
since 1.25, use UtfNormal\Utils directly
Member HTMLFileCache::newFromTitle ($title, $action)
since 1.24, instantiate this class directly
Parameters
Title | string$titleTitle object or prefixed DB key string
string$action
Exceptions
MWException
Returns
HTMLFileCache
Member HTMLForm::getErrors ($errors)
since 1.28, use getErrorsOrWarnings() instead
Member HTMLForm::isVForm ()
since 1.25
Returns
bool
File HtmlFormatter.php
since 1.27, use HtmlFormatter\HtmlFormatter
Class HWLDFWordAccumulator
Alias for WordAccumulator, to be soon removed
Member IContextSource::getStats ()
since 1.27 use a StatsdDataFactory from MediaWikiServices (preferably injected)
Member IDatabase::getSearchEngine ()
since 1.28 use SearchEngineFactory::getSearchEngineClass instead
Returns
string
Class ImageGallery
since 1.22 Use ImageGalleryBase::factory instead.
Member Interwiki::fetch ($prefix)
since 1.28, use InterwikiLookup instead
Member Interwiki::getAllPrefixes ($local=null)
since 1.28, unused. Use InterwikiLookup instead.
Member Interwiki::isValidInterwiki ($prefix)
since 1.28, use InterwikiLookup 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 Language::initEncoding ()
No-op since 1.28
Member Language::recodeForEdit ($s)
No-op since 1.28
Member Language::recodeInput ($s)
No-op since 1.28
Member LinkCache::addLink ($title)
since 1.27, unused
Parameters
string$titlePrefixed DB key
Returns
int Page ID or zero
Member LinkCache::singleton ()
since 1.28, use MediaWikiServices instead
Member Linker::formatSize ($size)
since 1.28, use Language::formatSize() directly
Member Linker::formatTemplates ($templates, $preview=false, $section=false, $more=null)
since 1.28, use TemplatesOnThisPageFormatter directly
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 Linker::getLinkColour (LinkTarget $t, $threshold)
since 1.28, use LinkRenderer::getLinkClasses() instead
Member Linker::link ($target, $html=null, $customAttribs=[], $query=[], $options=[])
since 1.28, use MediaWiki\Linker\LinkRenderer instead
Member Linker::linkKnown ($target, $html=null, $customAttribs=[], $query=[], $options=[ 'known'])
since 1.28, use MediaWiki\Linker\LinkRenderer instead
See also
Linker::link
Returns
string
Member LoadBalancer::getLaggedSlaveMode ($domain=false)
1.28; use getLaggedReplicaMode()
Member LoadBalancer::laggedSlaveUsed ()
Since 1.28; use laggedReplicaUsed()
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 MimeMagic::singleton ()
since 1.28
Member MW_DIFF_VERSION
use class constant instead
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 NS_IMAGE
since 1.14
Member NS_IMAGE_TALK
since 1.14
Member ObjectCache::getMainStashInstance ()
Since 1.28 Use MediaWikiServices::getMainObjectStash
Member ObjectCache::getMainWANInstance ()
Since 1.28 Use MediaWikiServices::getMainWANCache()
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::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::rateLimited ()
since 1.25; throw the exception directly
Member OutputPage::readOnlyPage ()
since 1.25; throw the exception directly
Exceptions
ReadOnlyError
Member OutputPage::setETag ($tag)
since 1.28 Obsolete - wgUseETag experiment was removed.
Parameters
string$tag
Member OutputPage::setSquidMaxage ($maxage)
since 1.27 Use setCdnMaxage() instead
Member Parser::$mUniqPrefix
since 1.26; use Parser::MARKER_PREFIX instead.
Member Parser::disableCache ()
since 1.28; use getOutput()->updateCacheExpiry()
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.
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
since 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)
Class ResetUserTokens
since 1.27, use $wgAuthenticationTokenVersion instead.
Member ResourceLoader::makeLoaderConditionalScript ($script)
since 1.25; use makeInlineScript instead
Parameters
string$scriptJavaScript code
Returns
string
Member ResourceLoaderClientHtml::setModuleScripts (array $modules)
since 1.28
Parameters
array$modulesArray of module names
Member ResourceLoaderClientHtml::setModuleStyles (array $modules)
since 1.28
Parameters
array$modulesArray of module names
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::fetchRevision (LinkTarget $title)
Since 1.28
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
Returns
string
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
Class ScopedCallback
since 1.28 use Wikimedia\ScopedCallback
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 SiteSQLStore::newInstance ($sitesTable=null, BagOStuff $cache=null)
since 1.27 use MediaWikiServices::getSiteStore() or MediaWikiServices::getSiteLookup() instead.
Member SiteStats::views ()
since 1.25
Returns
int
Member Skin::showIPinHeader ()
since 1.27, feature removed
Returns
bool Always false
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
since 1.26
Class SqlDataUpdate
Since 1.28 Use DataUpdate directly, injecting the database
Class SquidUpdate
since 1.27
Member Status::getErrorsArray ()
since 1.25
Member Status::getWarningsArray ()
since 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 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 UploadBase::stashFile (User $user=null)
since 1.28 Use tryStashFile() instead
Parameters
User$user
Returns
UploadStashFile Stashed file
Exceptions
UploadStashBadPathException
UploadStashFileException
UploadStashNotLoggedInException
Member UploadBase::stashFileGetKey ()
since 1.28
Returns
string File key
Member UploadBase::stashSession ()
since 1.28
Returns
string File key
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)
since 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::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 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')
since 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 wfGetLB ($wiki=false)
since 1.27, use MediaWikiServices::getDBLoadBalancer() or MediaWikiServices::getDBLoadBalancerFactory() instead.
Member wfGetLBFactory ()
since 1.27, use MediaWikiServices::getDBLoadBalancerFactory() instead.
Member wfProfileIn ($functionname)
since 1.25
Member wfProfileOut ($functionname= 'missing')
since 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)
since 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 WikiPageTest::testDoEdit ()
since 1.21. Should be removed when WikiPage::doEdit() gets removed
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