MediaWiki  1.23.15
MediaWiki constants

Variables

const ALF_NO_BLOCK_LOCK 8
 
const ALF_NO_LINK_LOCK 4
 
const ALF_PRELOAD_EXISTENCE 2
 
const ALF_PRELOAD_LINKS 1
 
const APCOND_AGE 2
 
const APCOND_AGE_FROM_EDIT 7
 
const APCOND_BLOCKED 8
 
const APCOND_EDITCOUNT 1
 
const APCOND_EMAILCONFIRMED 3
 
const APCOND_INGROUPS 4
 
const APCOND_IPINRANGE 6
 
const APCOND_ISBOT 9
 
const APCOND_ISIP 5
 
const AV_NO_VIRUS 0
 
const AV_SCAN_ABORTED -1
 
const AV_SCAN_FAILED false
 
const AV_VIRUS_FOUND 1
 
const CACHE_ACCEL 3
 
const CACHE_ANYTHING -1
 
const CACHE_DB 1
 
const CACHE_MEMCACHED 2
 
const CACHE_NONE 0
 
const CONTENT_FORMAT_CSS 'text/css'
 
const CONTENT_FORMAT_HTML 'text/html'
 
const CONTENT_FORMAT_JAVASCRIPT 'text/javascript'
 
const CONTENT_FORMAT_JSON 'application/json'
 
const CONTENT_FORMAT_SERIALIZED 'application/vnd.php.serialized'
 
const CONTENT_FORMAT_TEXT 'text/plain'
 
const CONTENT_FORMAT_WIKITEXT 'text/x-wiki'
 
const CONTENT_FORMAT_XML 'application/xml'
 
const CONTENT_MODEL_CSS 'css'
 
const CONTENT_MODEL_JAVASCRIPT 'javascript'
 
const CONTENT_MODEL_TEXT 'text'
 
const CONTENT_MODEL_WIKITEXT 'wikitext'
 
const DB_MASTER -2
 
const DB_SLAVE -1
 
const DBO_COMPRESS 512
 
const DBO_DDLMODE 128
 
const DBO_DEBUG 1
 
const DBO_DEFAULT 16
 
const DBO_IGNORE 4
 
const DBO_NOBUFFER 2
 
const DBO_PERSISTENT 32
 
const DBO_SSL 256
 
const DBO_SYSDBA 64
 
const DBO_TRX 8
 
const EDIT_AUTOSUMMARY 64
 
const EDIT_DEFER_UPDATES 32
 
const EDIT_FORCE_BOT 16
 
const EDIT_MINOR 4
 
const EDIT_NEW 1
 
const EDIT_SUPPRESS_RC 8
 
const EDIT_TOKEN_SUFFIX '+\\'
 String Some punctuation to prevent editing from broken text-mangling proxies. More...
 
const EDIT_UPDATE 2
 
const LIST_AND 1
 
const LIST_COMMA 0
 
const LIST_NAMES 3
 
const LIST_OR 4
 
const LIST_SET 2
 
const MEDIATYPE_ARCHIVE 'ARCHIVE'
 
const MEDIATYPE_AUDIO 'AUDIO'
 
const MEDIATYPE_BITMAP 'BITMAP'
 
const MEDIATYPE_DRAWING 'DRAWING'
 
const MEDIATYPE_EXECUTABLE 'EXECUTABLE'
 
const MEDIATYPE_MULTIMEDIA 'MULTIMEDIA'
 
const MEDIATYPE_OFFICE 'OFFICE'
 
const MEDIATYPE_TEXT 'TEXT'
 
const MEDIATYPE_UNKNOWN 'UNKNOWN'
 
const MEDIATYPE_VIDEO 'VIDEO'
 
const MW_DATE_DEFAULT 'default'
 
const MW_DATE_DMY 'dmy'
 
const MW_DATE_ISO 'ISO 8601'
 
const MW_DATE_MDY 'mdy'
 
const MW_DATE_YMD 'ymd'
 
const MW_SUPPORTS_CONTENTHANDLER 1
 
const MW_SUPPORTS_EDITFILTERMERGED 1
 Unicode and normalisation related. More...
 
const MW_SUPPORTS_LOCALISATIONCACHE 1
 
const MW_SUPPORTS_PARSERFIRSTCALLINIT 1
 
const MW_USER_VERSION 9
 Int Serialized record version. More...
 
const NS_CATEGORY 14
 
const NS_CATEGORY_TALK 15
 
const NS_FILE 6
 
const NS_FILE_TALK 7
 
const NS_HELP 12
 
const NS_HELP_TALK 13
 
const NS_IMAGE NS_FILE
 NS_IMAGE and NS_IMAGE_TALK are the pre-v1.14 names for NS_FILE and NS_FILE_TALK respectively, and are kept for compatibility. More...
 
const NS_IMAGE_TALK NS_FILE_TALK
 
const NS_MAIN 0
 
const NS_MEDIA -2
 
const NS_MEDIAWIKI 8
 
const NS_MEDIAWIKI_TALK 9
 
const NS_PROJECT 4
 
const NS_PROJECT_TALK 5
 
const NS_SPECIAL -1
 
const NS_TALK 1
 
const NS_TEMPLATE 10
 
const NS_TEMPLATE_TALK 11
 
const NS_USER 2
 
const NS_USER_TALK 3
 
const OT_HTML 1
 
const OT_MSG 3
 
const OT_PLAIN 4
 
const OT_PREPROCESS 3
 
const OT_WIKI 2
 
const PROTO_CANONICAL 1
 
const PROTO_CURRENT null
 
const PROTO_HTTP 'http://'
 
const PROTO_HTTPS 'https://'
 
const PROTO_INTERNAL 2
 
const PROTO_RELATIVE '//'
 
const RC_EDIT 0
 
const RC_EXTERNAL 5
 
const RC_LOG 3
 
const RC_MOVE 2
 
const RC_MOVE_OVER_REDIRECT 4
 
const RC_NEW 1
 
const SFH_NO_HASH 1
 
const SFH_OBJECT_ARGS 2
 
const SHELL_MAX_ARG_STRLEN '100000'
 
const USER_TOKEN_LENGTH 32
 Int Number of characters in user_token field. More...
 

Detailed Description

Variable Documentation

◆ ALF_NO_BLOCK_LOCK

const ALF_NO_BLOCK_LOCK 8

Definition at line 161 of file Defines.php.

◆ ALF_NO_LINK_LOCK

const ALF_NO_LINK_LOCK 4

Definition at line 160 of file Defines.php.

Referenced by SqlDataUpdate\__construct(), and LinkCache\addLinkObj().

◆ ALF_PRELOAD_EXISTENCE

const ALF_PRELOAD_EXISTENCE 2

Definition at line 159 of file Defines.php.

◆ ALF_PRELOAD_LINKS

const ALF_PRELOAD_LINKS 1

Anti-lock flags See DefaultSettings.php for a description

Definition at line 158 of file Defines.php.

◆ APCOND_AGE

const APCOND_AGE 2

Definition at line 254 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_AGE_FROM_EDIT

const APCOND_AGE_FROM_EDIT 7

Definition at line 259 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_BLOCKED

const APCOND_BLOCKED 8

Definition at line 260 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_EDITCOUNT

const APCOND_EDITCOUNT 1

Autopromote conditions (must be here and not in Autopromote.php, so that they're loaded for DefaultSettings.php before AutoLoader.php)

Definition at line 253 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_EMAILCONFIRMED

const APCOND_EMAILCONFIRMED 3

Definition at line 255 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_INGROUPS

const APCOND_INGROUPS 4

Definition at line 256 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_IPINRANGE

const APCOND_IPINRANGE 6

Definition at line 258 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_ISBOT

const APCOND_ISBOT 9

Definition at line 261 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_ISIP

const APCOND_ISIP 5

Definition at line 257 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ AV_NO_VIRUS

const AV_NO_VIRUS 0

Antivirus result codes, for use in $wgAntivirusSetup.

Definition at line 148 of file Defines.php.

◆ AV_SCAN_ABORTED

const AV_SCAN_ABORTED -1

Definition at line 150 of file Defines.php.

◆ AV_SCAN_FAILED

const AV_SCAN_FAILED false

Definition at line 151 of file Defines.php.

◆ AV_VIRUS_FOUND

const AV_VIRUS_FOUND 1

Definition at line 149 of file Defines.php.

◆ CACHE_ACCEL

const CACHE_ACCEL 3

Definition at line 115 of file Defines.php.

Referenced by LCStoreAccel\__construct().

◆ CACHE_ANYTHING

◆ CACHE_DB

const CACHE_DB 1

◆ CACHE_MEMCACHED

const CACHE_MEMCACHED 2

Definition at line 114 of file Defines.php.

Referenced by McTest\execute().

◆ CACHE_NONE

◆ CONTENT_FORMAT_CSS

const CONTENT_FORMAT_CSS 'text/css'

◆ CONTENT_FORMAT_HTML

const CONTENT_FORMAT_HTML 'text/html'

Definition at line 305 of file Defines.php.

◆ CONTENT_FORMAT_JAVASCRIPT

const CONTENT_FORMAT_JAVASCRIPT 'text/javascript'

◆ CONTENT_FORMAT_JSON

const CONTENT_FORMAT_JSON 'application/json'

Definition at line 309 of file Defines.php.

◆ CONTENT_FORMAT_SERIALIZED

const CONTENT_FORMAT_SERIALIZED 'application/vnd.php.serialized'

Definition at line 307 of file Defines.php.

◆ CONTENT_FORMAT_TEXT

const CONTENT_FORMAT_TEXT 'text/plain'

Definition at line 303 of file Defines.php.

Referenced by RevisionTestModifyableContentHandler\__construct().

◆ CONTENT_FORMAT_WIKITEXT

const CONTENT_FORMAT_WIKITEXT 'text/x-wiki'

Content formats, used by Content and ContentHandler. These should be MIME types, and will be exposed in the API and XML dumps.

Extensions are free to use the below formats, or define their own. It is recommended to stick with the conventions for MIME types.

Definition at line 297 of file Defines.php.

Referenced by WikitextContentHandler\__construct(), RevisionTest\dataGetContentFormat(), WikitextContentHandlerTest\dataIsSupportedFormat(), ContentHandlerTest\dataMakeContent(), WikitextContentHandlerTest\testSerializeContent(), and WikitextContentHandlerTest\testUnserializeContent().

◆ CONTENT_FORMAT_XML

const CONTENT_FORMAT_XML 'application/xml'

Definition at line 311 of file Defines.php.

◆ CONTENT_MODEL_CSS

◆ CONTENT_MODEL_JAVASCRIPT

◆ CONTENT_MODEL_TEXT

◆ CONTENT_MODEL_WIKITEXT

const CONTENT_MODEL_WIKITEXT 'wikitext'

Content model ids, used by Content and ContentHandler. These IDs will be exposed in the API and XML dumps.

Extensions that define their own content model IDs should take care to avoid conflicts. Using the extension name as a prefix is recommended, for example 'myextension-somecontent'.

Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 283 of file Defines.php.

Referenced by WikitextContent\__construct(), MessageContent\__construct(), RevisionStorageTest\createPage(), TitleMethodsTest\dataGetContentModel(), RevisionTest\dataGetContentModel(), ContentHandlerTest\dataGetDefaultModelFor(), WikitextContentTest\dataGetParserOutput(), WikitextContentTest\dataGetSecondaryDataUpdates(), RevisionTest\dataGetSha1(), RevisionTest\dataGetSize(), ContentHandlerTest\dataMakeContent(), ApiParse\execute(), ApiQueryRevisions\extractRowInfo(), WikiPage\getAutosummary(), Revision\getContentModel(), ContentHandler\getDefaultModelFor(), MediaWikiTestCase\getDefaultWikitextNS(), ApiParse\getParamDescription(), TextPassDumper\getText(), TextContent\getWikitextForTransclusion(), MediaWikiTestCase\isWikitextNS(), Title\isWikitextPage(), Title\newFromRedirect(), Title\newFromRedirectArray(), Title\newFromRedirectRecurse(), PreprocessDump\processRevision(), CompareParsers\processRevision(), WikiPageTest\provideGetParserOutput(), WikiPageTest\provideGetRedirectTarget(), WikiPageTest\provideIsCountable(), TextContentTest\setUp(), WikitextContentHandlerTest\setUp(), ContentHandlerTest\setUp(), RevisionStorageTest\setUp(), WikiPageTest\testDoDeleteArticle(), WikiPageTest\testDoDeleteUpdates(), WikiPageTest\testDoEditContent(), WikiPageTest\testDoQuickEditContent(), WikiPageTest\testExists(), RevisionStorageTest\testFetchRevision(), WikiPageTest\testGetContent(), WikiPageTest_ContentHandlerUseDB\testGetContentModel(), RevisionTest\testGetContentUncloned(), RevisionStorageTest\testGetNext(), RevisionStorageTest\testGetPrevious(), WikiPageTest\testGetRawText(), WikiPageTest\testGetRevision(), WikiPageTest\testGetText(), WikiPageTest\testHasViewableContent(), RevisionStorageTest\testIsCurrent(), RevisionStorageTest\testNewFromArchiveRow(), RevisionStorageTest\testNewNullRevision(), and RevisionStorageTest\testUserWasLastToEdit().

◆ DB_MASTER

const DB_MASTER -2
Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 56 of file Defines.php.

Referenced by SqlDataUpdate\__construct(), DbTestPreviewer\__construct(), SiteStatsInit\__construct(), User\addGroup(), LinkCache\addLinkObj(), LogPage\addRelations(), ChangeTags\addTags(), User\addToDatabase(), WatchedItem\addWatch(), CheckStorage\check(), User\checkNewtalk(), Orphans\checkOrphans(), Orphans\checkSeparation(), Orphans\checkWidows(), CleanupSpam\cleanupArticle(), SpecialEditWatchlist\cleanupWatchlist(), MessageBlobStore\clear(), User\clearAllNotifications(), SpecialEditWatchlist\clearWatchlist(), ViewCountUpdate\collect(), CgzCopyTransaction\commit(), WikiPage\commitRollback(), CompressOld\compressOldPages(), CompressOld\compressPage(), CompressOld\compressWithConcat(), TestORMRowTest\constructorTestProvider(), User\createNew(), ConvertLinks\createTempTable(), SearchMySQL\delete(), Block\delete(), RefreshLinks\deleteLinksFromNonexistent(), User\deleteNewtalk(), NukePage\deleteRevisions(), Title\deleteTitleProtection(), FixSlaveDesync\desyncFixPage(), SiteStatsInit\doAllAndCommit(), PopulateRecentChangesSource\doDBUpdates(), PopulateRevisionLength\doDBUpdates(), PopulateRevisionSha1\doDBUpdates(), PopulateFilearchiveSha1\doDBUpdates(), FixExtLinksProtocolRelative\doDBUpdates(), PopulateParentId\doDBUpdates(), PopulateLogSearch\doDBUpdates(), PopulateLogUsertext\doDBUpdates(), PopulateImageSha1\doDBUpdates(), DeleteArchivedFilesImplementation\doDelete(), DeleteArchivedRevisionsImplementation\doDelete(), DeleteOldRevisions\doDelete(), FileDeleteForm\doDelete(), WikiPage\doDeleteArticleReal(), WatchedItem\doDuplicateEntries(), WikiPage\doEditContent(), PopulateRevisionLength\doLenUpdates(), PopulateCategory\doPopulateCategory(), WikiPage\doPurge(), WikiPage\doQuickEditContent(), ReassignEdits\doReassignEdits(), PopulateRevisionSha1\doSha1LegacyUpdates(), PopulateRevisionSha1\doSha1Updates(), MovePageForm\doSubmit(), HTMLCacheUpdate\doUpdate(), ViewCountUpdate\doUpdate(), SiteStatsUpdate\doUpdate(), WikiPage\doUpdateRestrictions(), DeferredUpdates\doUpdates(), UpdateSearchIndex\doUpdateSearchIndex(), TidyUpBug37714\execute(), CleanupPreferences\execute(), ApiSetNotificationTimestamp\execute(), BenchmarkDeleteTruncate\execute(), FixUserRegistration\execute(), SpecialStatistics\execute(), DeleteRevision\execute(), DeleteSelfExternals\execute(), UpdateLogging\execute(), CleanupAncientTables\execute(), DeleteDefaultMessages\execute(), MigrateUserGroup\execute(), BatchedQueryRunner\execute(), ConvertUserOptions\execute(), DeleteOrphanedRevisions\execute(), InitEditCount\execute(), NukePage\execute(), RemoveUnusedAccounts\execute(), MwSql\execute(), CleanupRemovedModules\execute(), AlterSharedConstraints\execute(), UpdateArticleCount\execute(), UpdateRestrictions\execute(), UpdateSpecialPages\execute(), InitSiteStats\execute(), PatchSql\execute(), EraseArchivedFile\execute(), FixBug20757\execute(), RenameDbPrefix\execute(), AttachLatest\execute(), FixTimestamps\execute(), UpdateDoubleWidthSearch\execute(), DeleteArchivedRevisions\execute(), DeleteBatch\execute(), RebuildFileCache\execute(), NamespaceConflictChecker\execute(), RebuildTextIndex\execute(), SqliteMaintenance\execute(), ConvertLinks\execute(), NukeNS\execute(), MoveBatch\execute(), ImageBuilder\execute(), RefreshImageMetadata\execute(), UpdateCollation\execute(), UpdateMediaWiki\execute(), DeleteEqualMessages\execute(), LoggedUpdateMaintenance\execute(), UploadStash\fetchFileMetadata(), TrackBlobs\findOrphanBlobs(), FixSlaveDesync\findPageLatestCorruption(), RefreshLinks\fixLinksFromArticle(), RefreshLinks\fixRedirect(), DoubleRedirectJob\fixRedirects(), EditPageTest\forceRevisionDate(), ApiEditPageTest\forceRevisionDate(), LCStoreDB\get(), ContentHandler\getAutoDeleteReason(), Block\getBlocksForIPList(), DBLockManager\getConnection(), LoadBalancer\getConnection(), RevDel_RevisionList\getCurrent(), SqlBagOStuff\getDB(), UserRightsProxy\getDB(), RecompressTracked\getExtDB(), UploadStash\getFile(), DoubleRedirectJob\getFinalDestination(), Title\getFirstRevision(), User\getFormerGroups(), WikiPage\getLastNAuthors(), Title\getLinksFrom(), Title\getLinksTo(), ExternalStoreDB\getMaster(), ForeignDBViaLBRepo\getMasterDB(), DBFileJournal\getMasterDB(), LocalRepo\getMasterDB(), JobQueueDB\getMasterDB(), Title\getNextRevisionID(), WikiPage\getOldestRevision(), Title\getPreviousRevisionID(), ResourceLoaderFileModule\getStyles(), Revision\getTimestampFromId(), MessageBlobStore\getUpdatesForMessage(), SpecialEditWatchlist\getWatchlist(), SpecialEditWatchlist\getWatchlistInfo(), ORMTable\getWriteDbConnection(), BackupReader\handleUpload(), WikiImporter\importLogItem(), WikiRevision\importLogItem(), WikiRevision\importOldRevision(), WikiImporter\importRevision(), CheckStorage\importRevision(), WikiImporter\importUpload(), User\incEditCount(), User\initEditCount(), TrackBlobs\initTrackingTable(), Block\insert(), ManualLogEntry\insert(), MessageBlobStore\insertMessageBlob(), WikiPage\insertProtectNullRevision(), WikiPage\insertRedirectEntry(), User\invalidateCache(), Title\invalidateCache(), HTMLCacheUpdateJob\invalidateTitles(), RemoveUnusedAccounts\isInactiveAccount(), Title\isSingleRevRedirect(), ImageCleanup\killRow(), SiteStats\loadAndLazyInit(), User\loadFromDatabase(), User\loadGroups(), WikiPage\loadPageData(), Revision\loadText(), Profiler\logData(), LinkFilter\makeLikeArray(), RevisionStorageTest\makeRevision(), SpecialMergeHistory\merge(), SpecialActiveUsers\mergeActiveUsers(), TitleCleanup\moveIllegalPage(), TitleCleanup\moveInconsistentPage(), RecompressTracked\moveTextRow(), Title\moveTo(), moveToExternal(), Title\moveToInternal(), Revision\newFromConds(), WikiPage\newFromID(), Title\newFromID(), Revision\newFromTitle(), Block\newLoad(), EmailNotification\notifyOnPageChange(), ImageCleanup\pokeFile(), Block\purgeExpired(), RecentChange\purgeExpiredChanges(), Title\purgeExpiredRestrictions(), PurgeRedundantText(), Maintenance\purgeRedundantText(), RecentChange\reallyMarkPatrolled(), RebuildRecentchanges\rebuildRecentChangesTablePass1(), RebuildRecentchanges\rebuildRecentChangesTablePass2(), RebuildRecentchanges\rebuildRecentChangesTablePass3(), RebuildRecentchanges\rebuildRecentChangesTablePass4(), QueryPage\recache(), SiteStatsInit\refresh(), Category\refreshCounts(), RevDel_List\reloadFromMaster(), User\removeGroup(), WatchlistCleanup\removeWatch(), WatchedItem\removeWatch(), WikiPage\replaceSectionContent(), ImportReporter\reportPage(), MediaWikiTestCase\resetDB(), WatchedItem\resetNotificationTimestamp(), resolveStub(), CheckStorage\restoreText(), MediaWikiTestCase\run(), RecentChange\save(), LogPage\saveContent(), User\saveOptions(), User\saveSettings(), EraseArchivedFile\scrubAllVersions(), RevDel_RevisionItem\setBits(), RevDel_ArchiveItem\setBits(), RevDel_ArchivedRevisionItem\setBits(), RevDel_FileItem\setBits(), RevDel_ArchivedFileItem\setBits(), RevDel_LogItem\setBits(), RevisionTest_ContentHandlerUseDB\setUp(), WikiPageTest_ContentHandlerUseDB\setUp(), DatabaseTest\setUp(), LinksUpdateTest\setUp(), TestORMRowTest\setUp(), RevisionDeleteUser\setUsernameBitfields(), RevDel_List\setVisibility(), LogEventsList\showLogExtract(), LCStoreDB\startWrite(), RecompressTracked\syncDBs(), TestORMRowTest\tearDown(), RevisionStorageTest\testNewNullRevision(), DatabaseTest\testStoredFunctions(), RevisionStorageTest\testUserWasLastToEdit(), TrackBlobs\trackOrphanText(), TrackBlobs\trackRevisions(), SiteStatsUpdate\tryDBUpdateInternal(), PageArchive\undeleteRevisions(), SpecialEditWatchlist\unwatchTitles(), SearchOracle\update(), SearchSqlite\update(), SearchMySQL\update(), Block\update(), WikiPage\updateCategoryCounts(), MessageBlobStore\updateMessage(), MessageBlobStore\updateModule(), User\updateNewtalk(), ORMTable\updateSummaryFields(), Block\updateTimestamp(), SearchOracle\updateTitle(), SearchSqlite\updateTitle(), SearchMySQL\updateTitle(), PopulateRevisionSha1\upgradeLegacyArchiveRow(), PopulateRevisionLength\upgradeRow(), PopulateRevisionSha1\upgradeRow(), and SpecialEditWatchlist\watchTitles().

◆ DB_SLAVE

const DB_SLAVE -1

Valid database indexes Operation-based indexes

Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 55 of file Defines.php.

Referenced by SearchDatabase\__construct(), DeletedContribsPager\__construct(), LogPager\__construct(), Block\__construct(), ImageListPager\__construct(), IndexPager\__construct(), SiteStatsInit\__construct(), MergeHistoryPager\__construct(), OutputPage\addCategoryLinks(), LinkCache\addLinkObj(), ApiQueryLogEvents\addLogParams(), ChangeTags\addTags(), MediaWikiTestCase\assertSelect(), BackupDumper\backupDb(), ImageListPager\buildQueryConds(), ImageBuilder\buildTable(), SiteStatsUpdate\cacheUpdate(), UserOptions\CHANGER(), CheckStorage\check(), TrackBlobs\checkIntegrity(), User\checkNewtalk(), RevisionDeleter\checkRevisionExistence(), RecompressTracked\checkTrackingTable(), CompressOld\compressWithConcat(), Title\countRevisionsBetween(), SearchEngine\create(), Block\defaultRetroactiveAutoblock(), PrefixSearch\defaultSearchBackend(), DifferenceEngine\deletedLink(), RefreshLinks\deleteLinksFromNonexistent(), SpecialUndelete\diffHeader(), RecompressTracked\doAllOrphans(), RecompressTracked\doAllPages(), WikiPage\doCascadeProtectionUpdates(), CategoryViewer\doCategoryQuery(), SpecialExport\doExport(), SpecialRecentChangesLinked\doMainQuery(), RecompressTracked\doOrphanList(), RecompressTracked\doPage(), UserCache\doQuery(), GenderCache\doQuery(), LinkBatch\doQuery(), RefreshLinks\doRefreshLinks(), LinkHolderArray\doVariants(), Title\estimateRevisionCount(), TidyUpBug37714\execute(), StorageTypeStats\execute(), CheckBadRedirects\execute(), GetSlaveServer\execute(), CheckImages\execute(), ClearInterwikiCache\execute(), FixUserRegistration\execute(), DumpRev\execute(), DeleteDefaultMessages\execute(), CleanupSpam\execute(), DumpSisterSites\execute(), GetTextMaint\execute(), InitEditCount\execute(), RemoveUnusedAccounts\execute(), MwSql\execute(), CheckUsernames\execute(), DeleteImageCache\execute(), RebuildAll\execute(), SpecialPagesWithProp\execute(), ApiQueryContributions\execute(), ResetUserTokens\execute(), OrphanStats\execute(), FixDoubleRedirects\execute(), RefreshFileHeaders\execute(), ShowSiteStats\execute(), FixBug20757\execute(), DumpLinks\execute(), FetchText\execute(), PurgeChangedPages\execute(), RebuildFileCache\execute(), PurgeChangedFiles\execute(), QueryPage\execute(), QueryPage\fetchFromCache(), UploadDumper\fetchLocal(), Revision\fetchRevision(), HistoryAction\fetchRevisions(), UploadDumper\fetchUsed(), TitleCleanup\fileExists(), TrackBlobs\findOrphanBlobs(), RecompressTracked\finishIncompleteMoves(), WikiPage\formatExpiry(), Language\formatExpiry(), DoubleRedirectsPage\formatResult(), SpecialProtectedtitles\formatRow(), LCStoreDB\get(), Interwiki\getAllPrefixesDB(), Title\getAuthorsBetween(), Block\getBlocksForIPList(), Title\getBrokenLinksFrom(), QueryPage\getCachedTimestamp(), Title\getCascadeProtectionSources(), WikiPage\getCategories(), LoadBalancer\getConnection(), WikiPage\getContributors(), AllmessagesTablePager\getCustomisedStatuses(), Block\getDatabaseArray(), OrphanStats\getDB(), ResourceLoaderWikiModule\getDB(), BacklinkCache\getDB(), SpecialWatchlist\getDB(), ChangesListSpecialPage\getDB(), User\getEditCount(), ProtectionForm\getExpiry(), ResourceLoaderModule\getFileDependencies(), User\getFirstEditTimestamp(), Title\getFirstRevision(), MessageBlobStore\getFromDB(), WikiPage\getHiddenCategories(), DeleteImageCache\getImageCount(), WikiPage\getLastNAuthors(), PageArchive\getLastRevisionText(), SpecialExport\getLinks(), Title\getLinksFrom(), Title\getLinksTo(), Category\getMembers(), SpecialRandomInCategory\getMinAndMaxForCat(), SpecialStatistics\getMostViewedPages(), ResourceLoaderModule\getMsgBlobMtime(), User\getNewMessageLinks(), Title\getNextRevisionID(), Title\getNotificationTimestamp(), WikiPage\getOldestRevision(), SpecialExport\getPagesFromCategory(), SpecialExport\getPagesFromNamespace(), Title\getParentCategories(), PageArchive\getPreviousRevision(), Title\getPreviousRevisionID(), BrokenRedirectsPage\getQueryInfo(), NewFilesPager\getQueryInfo(), WithoutInterwikiPage\getQueryInfo(), UsersPager\getQueryInfo(), SpecialRandomInCategory\getQueryInfo(), LinkSearchPage\getQueryInfo(), ImageListPager\getQueryInfoReal(), Block\getRangeCond(), QueryPage\getRecacheDB(), Revision\getRecentChange(), Title\getRedirectsHere(), WikiPage\getRedirectTarget(), BenchmarkParse\getRevIdForTime(), PageArchive\getRevision(), FixBug20757\getRevTextMap(), Linker\getRollbackEditCount(), RollbackEdits\getRollbackTitles(), ExternalStoreDB\getSlave(), ForeignDBViaLBRepo\getSlaveDB(), LocalRepo\getSlaveDB(), JobQueueDB\getSlaveDB(), Title\getSubpages(), HistoryBlobStub\getText(), HistoryBlobCurStub\getText(), TrackBlobs\getTextClause(), PageArchive\getTextFromRow(), Revision\getTimestampFromId(), Revision\getTitle(), Title\getTitleProtection(), Title\getTouched(), User\idForName(), User\idFromName(), CheckStorage\importRevision(), User\incEditCount(), User\initEditCount(), Block\initFromRow(), Category\initialize(), BackupDumper\initProgress(), WikiPage\isCountable(), PageArchive\isDeleted(), Title\isDeleted(), Title\isDeletedQuick(), RemoveUnusedAccounts\isInactiveAccount(), Title\isNewPage(), SiteStats\jobs(), PageArchive\listAllPages(), ChangeTags\listDefinedTags(), PageArchive\listFiles(), PageArchive\listPagesByPrefix(), PageArchive\listRevisions(), SiteStats\load(), WatchedItem\load(), ArchivedFile\load(), Interwiki\load(), SiteStats\loadAndLazyInit(), MessageCache\loadFromDB(), User\loadOptions(), WikiPage\loadPageData(), Title\loadRestrictions(), Title\loadRestrictionsFromRows(), DifferenceEngine\loadRevisionData(), Revision\loadText(), DifferenceEngine\markPatrolledLink(), SpecialActiveUsers\mergeActiveUsers(), SearchMySQL\minSearchLength(), ChangeTags\modifyDisplayQuery(), moveToExternal(), LinkSearchPage\mungeQuery(), Title\nameOf(), RecentChange\newFromConds(), Revision\newFromConds(), User\newFromConfirmationCode(), Block\newFromID(), WikiPage\newFromID(), Title\newFromID(), UserArray\newFromIDs(), Title\newFromIDs(), SquidUpdate\newFromLinksTo(), Revision\newFromTitle(), Block\newLoad(), SiteStats\numberingroup(), SpecialPasswordReset\onSubmit(), InfoAction\pageCounts(), InfoAction\pageInfo(), SiteStats\pagesInNs(), SpecialBlock\parseExpiryInput(), ResourceLoader\preloadModuleInfo(), SkinTemplate\prepareQuickTemplate(), PurgeChangedFiles\purgeFromLogType(), PurgeList\purgeNamespace(), ImagePage\queryImageLinks(), DoubleRedirectsPage\reallyGetQueryInfo(), LinkHolderArray\replaceInternal(), RevisionListBase\reset(), WatchedItem\resetNotificationTimestamp(), resolveStub(), resolveStubs(), CheckStorage\restoreText(), TextPassDumper\rotateDb(), ApiQueryWatchlistRaw\run(), ApiQueryWatchlist\run(), TableCleanup\runTable(), RandomPage\selectRandomPageFromDB(), SpecialRandomInCategory\selectRandomPageFromDB(), SpecialAllpages\showChunk(), MovePageForm\showForm(), SpecialWhatLinksHere\showIndirectLinks(), SpecialBlockList\showList(), Article\showPatrolFooter(), SpecialPrefixindex\showPrefixChunk(), SpecialAllpages\showToplevel(), SpecialVersion\softwareInformation(), RevDel_LogList\suggestTarget(), RecompressTracked\syncDBs(), ChangeTags\tagUsageStatistics(), TitlePermissionTest\testActionPermissions(), RevisionStorageTest\testConstructFromRow(), WikiPageTest\testDoDeleteArticle(), WikiPageTest\testDoDeleteUpdates(), WikiPageTest\testDoEdit(), WikiPageTest\testDoEditContent(), RevisionStorageTest\testNewFromArchiveRow(), RevisionStorageTest\testNewFromRow(), TrackBlobs\trackOrphanText(), TrackBlobs\trackRevisions(), ResourceLoader\tryRespondFromFileCache(), and UserOptions\USAGER().

◆ DBO_COMPRESS

const DBO_COMPRESS 512

◆ DBO_DDLMODE

◆ DBO_DEBUG

const DBO_DEBUG 1

Database related constants

Definition at line 39 of file Defines.php.

Referenced by DatabaseBase\debug(), and LBFactorySimple\newMainLB().

◆ DBO_DEFAULT

const DBO_DEFAULT 16

◆ DBO_IGNORE

const DBO_IGNORE 4

Definition at line 41 of file Defines.php.

Referenced by DatabaseBase\ignoreErrors().

◆ DBO_NOBUFFER

const DBO_NOBUFFER 2

Definition at line 40 of file Defines.php.

Referenced by DatabaseBase\bufferResults().

◆ DBO_PERSISTENT

const DBO_PERSISTENT 32

◆ DBO_SSL

const DBO_SSL 256

◆ DBO_SYSDBA

const DBO_SYSDBA 64

◆ DBO_TRX

◆ EDIT_AUTOSUMMARY

const EDIT_AUTOSUMMARY 64

Definition at line 195 of file Defines.php.

Referenced by WikiPage\doEditContent(), and EditCLI\execute().

◆ EDIT_DEFER_UPDATES

const EDIT_DEFER_UPDATES 32

Definition at line 194 of file Defines.php.

Referenced by WikiPage\doEditContent().

◆ EDIT_FORCE_BOT

const EDIT_FORCE_BOT 16

Definition at line 193 of file Defines.php.

Referenced by WikiPage\commitRollback(), WikiPage\doEditContent(), and EditCLI\execute().

◆ EDIT_MINOR

const EDIT_MINOR 4

Definition at line 191 of file Defines.php.

Referenced by WikiPage\commitRollback(), WikiPage\doEditContent(), and EditCLI\execute().

◆ EDIT_NEW

◆ EDIT_SUPPRESS_RC

const EDIT_SUPPRESS_RC 8

◆ EDIT_TOKEN_SUFFIX

const EDIT_TOKEN_SUFFIX '+\\'

String Some punctuation to prevent editing from broken text-mangling proxies.

Definition at line 39 of file User.php.

◆ EDIT_UPDATE

◆ LIST_AND

◆ LIST_COMMA

const LIST_COMMA 0

Flags for Database::makeList() These are also available as Database class constants

Definition at line 202 of file Defines.php.

◆ LIST_NAMES

const LIST_NAMES 3

Definition at line 205 of file Defines.php.

Referenced by DatabaseMssql\makeList(), and DatabaseBase\makeList().

◆ LIST_OR

◆ LIST_SET

◆ MEDIATYPE_ARCHIVE

const MEDIATYPE_ARCHIVE 'ARCHIVE'

Definition at line 142 of file Defines.php.

Referenced by MIMEsearchPage\getQueryInfo().

◆ MEDIATYPE_AUDIO

const MEDIATYPE_AUDIO 'AUDIO'

Definition at line 129 of file Defines.php.

Referenced by MIMEsearchPage\getQueryInfo(), and PackedImageGallery\getThumbParams().

◆ MEDIATYPE_BITMAP

const MEDIATYPE_BITMAP 'BITMAP'

Definition at line 125 of file Defines.php.

Referenced by MIMEsearchPage\getQueryInfo().

◆ MEDIATYPE_DRAWING

const MEDIATYPE_DRAWING 'DRAWING'

Definition at line 127 of file Defines.php.

Referenced by MIMEsearchPage\getQueryInfo().

◆ MEDIATYPE_EXECUTABLE

const MEDIATYPE_EXECUTABLE 'EXECUTABLE'

Definition at line 140 of file Defines.php.

Referenced by MIMEsearchPage\getQueryInfo().

◆ MEDIATYPE_MULTIMEDIA

const MEDIATYPE_MULTIMEDIA 'MULTIMEDIA'

Definition at line 134 of file Defines.php.

Referenced by MIMEsearchPage\getQueryInfo().

◆ MEDIATYPE_OFFICE

const MEDIATYPE_OFFICE 'OFFICE'

Definition at line 136 of file Defines.php.

Referenced by MIMEsearchPage\getQueryInfo().

◆ MEDIATYPE_TEXT

const MEDIATYPE_TEXT 'TEXT'

Definition at line 138 of file Defines.php.

Referenced by MIMEsearchPage\getQueryInfo().

◆ MEDIATYPE_UNKNOWN

const MEDIATYPE_UNKNOWN 'UNKNOWN'

Media types. This defines constants for the value returned by File::getMediaType()

Definition at line 123 of file Defines.php.

Referenced by File\getIsSafeFileUncached(), File\getMediaType(), MIMEsearchPage\getQueryInfo(), and FSFile\placeholderProps().

◆ MEDIATYPE_VIDEO

const MEDIATYPE_VIDEO 'VIDEO'

Definition at line 132 of file Defines.php.

Referenced by MIMEsearchPage\getQueryInfo().

◆ MW_DATE_DEFAULT

const MW_DATE_DEFAULT 'default'

Date format selectors; used in user preference storage and by Language::date() and co.

Definition at line 168 of file Defines.php.

◆ MW_DATE_DMY

const MW_DATE_DMY 'dmy'

Definition at line 170 of file Defines.php.

◆ MW_DATE_ISO

const MW_DATE_ISO 'ISO 8601'

Definition at line 172 of file Defines.php.

◆ MW_DATE_MDY

const MW_DATE_MDY 'mdy'

Definition at line 169 of file Defines.php.

◆ MW_DATE_YMD

const MW_DATE_YMD 'ymd'

Definition at line 171 of file Defines.php.

◆ MW_SUPPORTS_CONTENTHANDLER

const MW_SUPPORTS_CONTENTHANDLER 1

Definition at line 220 of file Defines.php.

◆ MW_SUPPORTS_EDITFILTERMERGED

const MW_SUPPORTS_EDITFILTERMERGED 1

Unicode and normalisation related.

Hook support constants

Definition at line 217 of file Defines.php.

◆ MW_SUPPORTS_LOCALISATIONCACHE

const MW_SUPPORTS_LOCALISATIONCACHE 1

Definition at line 219 of file Defines.php.

◆ MW_SUPPORTS_PARSERFIRSTCALLINIT

const MW_SUPPORTS_PARSERFIRSTCALLINIT 1

Definition at line 218 of file Defines.php.

◆ MW_USER_VERSION

const MW_USER_VERSION 9

Int Serialized record version.

Definition at line 33 of file User.php.

◆ NS_CATEGORY

const NS_CATEGORY 14
Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 93 of file Defines.php.

Referenced by UncategorizedCategoriesPage\__construct(), CategoryPager\__construct(), DumpNamespaceFilter\__construct(), OutputPage\addCategoryLinks(), CategoryViewer\doCategoryQuery(), SpecialRecentChangesLinked\doMainQuery(), LinkHolderArray\doVariants(), SpecialTrackingCategories\execute(), ApiQueryCategoryInfo\execute(), UpdateCollation\execute(), SpecialRandomInCategory\execute(), WikiPage\factory(), ApiParse\formatCategoryLinks(), UncategorizedCategoriesPage\formatResult(), UnusedCategoriesPage\formatResult(), MostlinkedCategoriesPage\formatResult(), CategoryPager\formatRow(), TitleValueTest\fragmentTitleProvider(), CategoryPager\getBody(), Skin\getCategories(), WikiPage\getCategories(), LinksUpdate\getCategoryInsertions(), Skin\getCategoryLinks(), MediaWikiTestCase\getDefaultWikitextNS(), WikiFilePage\getForeignCategories(), WikiPage\getHiddenCategories(), WantedFilesPage\getPageHeader(), Title\getParentCategories(), WantedCategoriesPage\getQueryInfo(), UnusedCategoriesPage\getQueryInfo(), MostlinkedCategoriesPage\getQueryInfo(), Category\getTitle(), LinksUpdate\invalidateCategories(), MWNamespace\isMovable(), SearchHighlighter\linkReplace(), WikitextContentHandler\makeRedirectContent(), Category\newFromName(), Article\newFromTitle(), InfoAction\pageInfo(), CoreParserFunctions\pagesincategory(), MostlinkedCategoriesPage\preprocessResults(), MediaWikiTitleCodecTest\provideParseTitle(), ApiQueryTest\provideTestTitlePartToKey(), Category\refreshCounts(), ApiQueryCategories\run(), ApiQueryCategoryMembers\run(), ApiQueryAllCategories\run(), Categoryfinder\scan_next_layer(), SpecialSearch\showHit(), CologneBlueTemplate\talkLink(), ApiQueryAllPagesTest\testBug25702(), MWNamespaceTest\testGetContentNamespaces(), MWNamespaceTest\testIsContent(), MWNamespaceTest\testIsMovable(), ExtraParserTest\testTrackingCategory(), Title\touchLinks(), WikiPage\updateCategoryCounts(), and CategoryPage\view().

◆ NS_CATEGORY_TALK

const NS_CATEGORY_TALK 15

Definition at line 94 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct().

◆ NS_FILE

const NS_FILE 6
Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 85 of file Defines.php.

Referenced by FakeDimensionFile\__construct(), ApiQueryAllLinks\__construct(), FileRepo\__construct(), DumpNamespaceFilter\__construct(), ParserOutput\addLink(), UploadForm\addUploadJS(), SrConverter\autoConvert(), ShiConverter\autoConvert(), IuConverter\autoConvert(), KuConverter\autoConvert(), KkConverter\autoConvert(), SkinTemplate\buildContentNavigationUrls(), ImageCleanup\buildSafeTitle(), Title\checkQuickPermissions(), LocalRepo\checkRedirect(), UploadFromUrlTest\deleteFile(), ApiTestCaseUpload\deleteFileByFileName(), ApiTestCaseUpload\deleteFileByTitle(), SpecialRedirect\dispatchFile(), WikiPage\doCascadeProtectionUpdates(), CategoryViewer\doCategoryQuery(), WikiPage\doDeleteUpdates(), SpecialRecentChangesLinked\doMainQuery(), MovePageForm\doSubmit(), ApiMove\execute(), ApiQueryFilearchive\execute(), ApiDelete\execute(), ApiQueryImageInfo\execute(), DeleteBatch\execute(), UpdateCollation\execute(), FileDuplicateSearchPage\execute(), SpecialUndelete\execute(), WikiPage\factory(), ForeignAPIRepo\findBySha1(), FileRepo\findFile(), LocalRepo\findFiles(), WikiFilePage\followRedirect(), Linker\formatLinksInCommentCallback(), NewFilesPager\formatRow(), ImageListPager\formatValue(), Title\getCascadeProtectionSources(), LinksUpdate\getCategoryInsertions(), ApiUpload\getChunkResult(), MediaWikiTestCase\getDefaultWikitextNS(), SpecialWhatLinksHere\getFilterPanel(), SpecialExport\getImages(), FileRepo\getNameFromTitle(), SearchEngine\getNearMatchInternal(), ApiImageRotate\getPageSet(), ApiQueryInfo\getProtectionInfo(), MostimagesPage\getQueryInfo(), UnusedimagesPage\getQueryInfo(), UncategorizedImagesPage\getQueryInfo(), MIMEsearchPage\getQueryInfo(), ListDuplicatedFilesPage\getQueryInfo(), WantedFilesPage\getQueryInfo(), File\getRedirectedTitle(), WikiFilePage\getRedirectTarget(), Title\getRestrictionTypes(), SpecialSearch\getSearchProfiles(), SpecialUpload\getUploadForm(), SpecialUpload\getWatchCheck(), SearchHighlighter\highlightText(), Title\indexTitle(), SearchResult\initFromTitle(), MediaWiki\initializeArticle(), LinksUpdate\invalidateImageDescriptions(), Title\isAlwaysKnown(), MWNamespace\isCapitalized(), Title\isDeleted(), Title\isDeletedQuick(), MWNamespace\isMovable(), Title\isValidMoveOperation(), Title\isValidMoveTarget(), SearchHighlighter\linkReplace(), PageArchive\listFiles(), ArchivedFile\load(), Linker\makeThumbLink2(), Title\moveTo(), ForeignDBFile\newFromRow(), OldLocalFile\newFromRow(), LocalFile\newFromRow(), ArchivedFile\newFromRow(), Article\newFromTitle(), File\normalizeTitle(), WikiPage\onArticleDelete(), ImageQueryPage\outputResults(), ImageCleanup\pageExists(), MediaWiki\parseTitle(), ApiUpload\performUpload(), ImageCleanup\pokeFile(), SkinTemplate\prepareQuickTemplate(), ApiQueryBacklinks\processContinue(), TitleCleanup\processRow(), ImageCleanup\processRow(), LanguageTest\provideGetNamespaceAliases(), MediaWikiTitleCodecTest\provideParseTitle(), TestSample\provideTitles(), PurgeChangedFiles\purgeFromLogType(), LinksUpdate\queueRecursiveJobs(), Category\refreshCounts(), ApiQueryImages\run(), ApiQueryDuplicateFiles\run(), ApiQueryAllImages\run(), ApiQueryBacklinks\run(), PrefixSearch\searchBackend(), UploadFromUrlTestSuite\setUp(), SpecialSearch\showHit(), SpecialWhatLinksHere\showIndirectLinks(), SpecialSearch\showResults(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), SpecialSearch\startsWithImage(), CologneBlueTemplate\talkLink(), MWNamespaceTest\testIsCapitalizedHardcodedAssertions(), TitlePermissionTest\testQuickPermissions(), TraditionalImageGallery\toHTML(), PageArchive\undelete(), SpecialUndelete\undelete(), PageArchive\undeleteRevisions(), WikiPage\updateCategoryCounts(), WikiPage\updateRedirectOn(), CoreParserFunctions\urlFunction(), Title\validateFileMoveOperation(), ApiFileRevert\validateParameters(), ImagePage\view(), wfStreamThumb(), and XmlDumpWriter\writeUploads().

◆ NS_FILE_TALK

◆ NS_HELP

◆ NS_HELP_TALK

const NS_HELP_TALK 13

Definition at line 92 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct().

◆ NS_IMAGE

const NS_IMAGE NS_FILE

NS_IMAGE and NS_IMAGE_TALK are the pre-v1.14 names for NS_FILE and NS_FILE_TALK respectively, and are kept for compatibility.

When writing code that should be compatible with older MediaWiki versions, either stick to the old names or define the new constants yourself, if they're not defined already.

Definition at line 104 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct().

◆ NS_IMAGE_TALK

const NS_IMAGE_TALK NS_FILE_TALK

Definition at line 105 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct().

◆ NS_MAIN

const NS_MAIN 0

Real namespaces

Number 100 and beyond are reserved for custom namespaces; DO NOT assign standard namespaces at 100 or beyond. DO NOT Change integer values as they are most probably hardcoded everywhere see bug #696 which talked about that.

Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 79 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct(), BackupDumperLoggerTest\addDBData(), SearchEngineTest\addPages(), TitleValueTest\badConstructorProvider(), Title\canExist(), MWNamespace\canTalk(), TextPassDumperTest\checkpointHelper(), Title\checkReadPermissions(), Title\checkSpecialsAndNSPermissions(), PrefixSearch\defaultSearchBackend(), WithoutInterwikiPage\execute(), SpecialExport\execute(), DumpSisterSites\execute(), SpecialLog\execute(), SearchEngineTest\fetchIds(), TitleValueTest\fragmentTitleProvider(), ApiOpenSearch\getAllowedParams(), ApiQueryPrefixSearch\getAllowedParams(), ApiQueryAllPages\getAllowedParams(), ApiQuerySearch\getAllowedParams(), ApiQueryDeletedrevs\getAllowedParams(), MWNamespace\getCanonicalNamespaces(), MWNamespace\getContentNamespaces(), MediaWikiTestCase\getDefaultWikitextNS(), Linker\getInvalidTitleDescription(), EditWatchlistNormalHTMLForm\getLegend(), SpecialEditWatchlist\getNormalForm(), RandomPage\getNsList(), WantedFilesPage\getPageHeader(), MWNamespace\getSubject(), User\getTokenUrl(), Title\isAlwaysKnown(), MWNamespace\isContent(), MWNamespace\isMethodValidFor(), MWNamespace\isMovable(), MWNamespace\isTalk(), MWNamespace\isWatchable(), MediaWiki\main(), Html\namespaceSelector(), Title\newFromText(), SpecialListGroupRights\outputNamespaceProtectionInfo(), MediaWikiTitleCodecTest\provideFormat(), MediaWikiTitleCodecTest\provideGetFullText(), MediaWikiTitleCodecTest\provideGetNamespaceName(), MediaWikiTitleCodecTest\provideGetPrefixedText(), MediaWikiTitleCodecTest\provideGetText(), TitleMethodsTest\provideHasSubjectNamespace(), TitleMethodsTest\provideInNamespace(), WikitextContentHandlerTest\provideMakeRedirectContent(), SpecialRecentchangesTest\provideNamespacesAssociations(), TitleTest\provideNewFromTitleValue(), MediaWikiTitleCodecTest\provideParseTitle(), ApiQueryTest\provideTestTitlePartToKey(), GlobalWithDBTest\provideWfIsBadImageList(), PrefixSearch\search(), SearchEngine\searchableNamespaces(), Title\secureAndSplit(), RandomPage\setNamespace(), WikiImporter\setTargetRootPage(), ArticleTest\setUp(), MWNamespaceTest\setUp(), TitlePermissionTest\setUp(), SpecialAllpages\showChunk(), SpecialPrefixindex\showPrefixChunk(), MediaWikiTitleCodec\splitTitleString(), CologneBlueTemplate\talkLink(), TitlePermissionTest\testActionPermissions(), MWNamespaceTest\testCanTalk(), TitlePermissionTest\testCascadingSourcesRestrictions(), MWNamespaceTest\testEquals(), MediaWikiTitleCodecTest\testFormat(), MWNamespaceTest\testGetAssociated(), MWNamespaceTest\testGetContentNamespaces(), MWNamespaceTest\testGetSubject(), MWNamespaceTest\testGetSubjectNamespaces(), MWNamespaceTest\testGetTalk(), MWNamespaceTest\testGetTalkNamespaces(), TitleValueTest\testGetText(), MWNamespaceTest\testHasGenderDistinction(), MWNamespaceTest\testHasSubpages(), TitleMethodsTest\testInNamespaces(), MWNamespaceTest\testIsContent(), MWNamespaceTest\testIsContentAdvanced(), MWNamespaceTest\testIsSubject(), MWNamespaceTest\testIsTalk(), MWNamespaceTest\testIsWatchable(), TitlePermissionTest\testPageRestrictions(), MediaWikiTitleCodecTest\testParseTitle(), MediaWikiTitleCodecTest\testParseTitle_invalid(), TextPassDumperTest\testPlain(), TextPassDumperTest\testPrefetchPlain(), TitlePermissionTest\testQuickPermissions(), SpecialRecentchangesTest\testRcNsFilter(), SpecialRecentchangesTest\testRcNsFilterInversion(), TitlePermissionTest\testSpecialsAndNSPermissions(), MWNamespaceTest\testSubjectEquals(), LinksUpdateTest\testUpdate_iwlinks(), LinksUpdateTest\testUpdate_pagelinks(), and PrefixSearch\validateNamespaces().

◆ NS_MEDIA

◆ NS_MEDIAWIKI

const NS_MEDIAWIKI 8
Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 87 of file Defines.php.

Referenced by AllmessagesTablePager\__construct(), DumpNamespaceFilter\__construct(), SkinTemplate\buildContentNavigationUrls(), ProtectionForm\buildForm(), Title\checkSpecialsAndNSPermissions(), Article\confirmDelete(), WikiPage\doEditUpdates(), WikiPage\doPurge(), SpecialTags\doTagRow(), ApiEditPage\execute(), SpecialTrackingCategories\execute(), DeleteDefaultMessages\execute(), ImportSiteScripts\execute(), UpdateRestrictions\execute(), NukeNS\execute(), DeleteEqualMessages\execute(), AllmessagesTablePager\formatValue(), Article\getContentObject(), AllmessagesTablePager\getCustomisedStatuses(), Title\getDefaultMessageText(), ContentHandler\getDefaultModelFor(), MediaWikiTestCase\getDefaultWikitextNS(), MessageCache\getMsgFromNamespace(), SearchEngine\getNearMatchInternal(), ContentHandler\getPageLanguage(), ContentHandler\getPageViewLanguage(), UnwatchedpagesPage\getQueryInfo(), WantedPagesPage\getQueryInfo(), RawAction\getRawText(), Title\hasSourceText(), MediaWiki\initializeArticle(), Title\isAlwaysKnown(), Title\isConversionTable(), Title\isCssOrJsPage(), MessageCache\loadFromDB(), MessageCacheTest\makePage(), WikiPage\onArticleDelete(), SpecialBlock\postText(), SkinTemplate\prepareQuickTemplate(), UploadFromUrlTestSuite\setUp(), TitlePermissionTest\setUp(), FileDeleteForm\showForm(), SpecialRevisionDelete\showForm(), Article\showMissingArticle(), CologneBlueTemplate\talkLink(), MWNamespaceTest\testIsCapitalizedHardcodedAssertions(), MWNamespaceTest\testIsCapitalizedWithWgCapitalLinkOverrides(), MWNamespaceTest\testIsCapitalizedWithWgCapitalLinks(), and TitlePermissionTest\testSpecialsAndNSPermissions().

◆ NS_MEDIAWIKI_TALK

◆ NS_PROJECT

◆ NS_PROJECT_TALK

◆ NS_SPECIAL

const NS_SPECIAL -1

Definition at line 68 of file Defines.php.

Referenced by ParserOutput\addLink(), RCCacheEntryFactory\buildCLink(), Title\checkSpecialsAndNSPermissions(), LinkHolderArray\doVariants(), TidyUpBug37714\execute(), Title\fixSpecialName(), RCCacheEntryFactoryTest\getContext(), OutputPage\getJSVars(), IRCColourfulRCFeedFormatter\getLine(), SpecialPage\getSafeTitleFor(), SpecialPage\getTitleFor(), SpecialPageTest\getTitleForWithWarningProvider(), Title\isAlwaysKnown(), Title\isSpecialPage(), MediaWiki\performRequest(), SkinTemplate\prepareQuickTemplate(), OldChangesList\recentChangesLine(), LinkHolderArray\replaceInternal(), PrefixSearch\searchBackend(), Title\secureAndSplit(), CoreParserFunctions\special(), PrefixSearch\specialSearch(), MediaWikiTitleCodec\splitTitleString(), CologneBlueTemplate\talkLink(), MWNamespaceTest\testCanTalk(), MWNamespaceTest\testEquals(), MWNamespaceTest\testGetAssociatedExceptionsForNsSpecial(), MWNamespaceTest\testGetSubject(), MWNamespaceTest\testGetSubjectNamespaces(), MWNamespaceTest\testGetTalkExceptionsForNsSpecial(), MWNamespaceTest\testGetTalkNamespaces(), SpecialPageTest\testGetTitleFor(), MWNamespaceTest\testHasGenderDistinction(), MWNamespaceTest\testHasSubpages(), SpecialPageTest\testInvalidGetTitleFor(), MWNamespaceTest\testIsCapitalizedHardcodedAssertions(), MWNamespaceTest\testIsCapitalizedWithWgCapitalLinkOverrides(), MWNamespaceTest\testIsCapitalizedWithWgCapitalLinks(), MWNamespaceTest\testIsContent(), MWNamespaceTest\testIsSubject(), MWNamespaceTest\testIsTalk(), MWNamespaceTest\testIsWatchable(), MWNamespaceTest\testSpecialAndMediaAreDifferentSubjects(), TitlePermissionTest\testSpecialsAndNSPermissions(), MWNamespaceTest\testSubjectEquals(), and Title\userIsWatching().

◆ NS_TALK

◆ NS_TEMPLATE

◆ NS_TEMPLATE_TALK

const NS_TEMPLATE_TALK 11

Definition at line 90 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct().

◆ NS_USER

const NS_USER 2
Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 81 of file Defines.php.

Referenced by UsersPager\__construct(), ActiveUsersPager\__construct(), ImageListPager\__construct(), DumpNamespaceFilter\__construct(), LoginForm\addNewAccountInternal(), SpecialEditWatchlist\buildRemoveLine(), Title\checkQuickPermissions(), SpecialRedirect\dispatchUser(), FileDuplicateSearchPage\doBatchLookups(), UsersPager\doBatchLookups(), HistoryPager\doBatchLookups(), ContribsPager\doBatchLookups(), UserCache\doQuery(), SpecialActiveUsers\doQueryCacheUpdate(), SpecialContributions\execute(), ApiFeedContributions\execute(), ChangesListSpecialPage\execute(), SpecialLog\execute(), SrConverter\findVariantLink(), ShiConverter\findVariantLink(), IuConverter\findVariantLink(), KuConverter\findVariantLink(), KkConverter\findVariantLink(), SpecialNewpages\form(), MIMEsearchPage\formatResult(), ImageListPager\formatValue(), CoreParserFunctions\gender(), Preferences\generateSkinOptions(), User\getCanonicalName(), ContentHandler\getDefaultModelFor(), MediaWikiTestCase\getDefaultWikitextNS(), SearchEngine\getNearMatchInternal(), ResourceLoaderUserModule\getPages(), WantedPagesPage\getQueryInfo(), ActiveUsersPager\getQueryInfo(), NewPagesPager\getQueryInfo(), SpecialMypage\getRedirect(), Skin\getRelevantUser(), Article\getRobotPolicy(), LogPager\getStartBody(), MergeHistoryPager\getStartBody(), NewPagesPager\getStartBody(), SpecialBlock\getTargetUserTitle(), UserRightsProxy\getUserPage(), User\getUserPage(), MWNamespace\hasGenderDistinction(), User\idFromName(), Title\isCssJsSubpage(), Title\isCssSubpage(), Title\isJsSubpage(), LogPager\limitPerformer(), Language\needsGenderDistinction(), InfoAction\pageInfo(), ProtectedPagesPager\preprocessResults(), BlockListPager\preprocessResults(), SpecialBlock\processForm(), SpecialUnblock\processUnblock(), MediaWikiTitleCodecTest\provideFormat(), MediaWikiTitleCodecTest\provideGetFullText(), MediaWikiTitleCodecTest\provideGetNamespaceName(), MediaWikiTitleCodecTest\provideGetPrefixedText(), MediaWikiTitleCodecTest\provideGetText(), TitleMethodsTest\provideHasSubjectNamespace(), TitleMethodsTest\provideInNamespace(), TitleTest\provideNewFromTitleValue(), MediaWikiTitleCodecTest\provideParseTitle(), TestSample\provideTitles(), MWNamespaceTest\setUp(), RevisionDeleteUser\setUsernameBitfields(), MovePageForm\showForm(), SpecialUndelete\showHistory(), Article\showMissingArticle(), Preferences\skinPreferences(), MediaWikiTitleCodec\splitTitleString(), CologneBlueTemplate\talkLink(), MWNamespaceTest\testCanTalk(), TitleValueTest\testConstruction(), TitlePermissionTest\testCssAndJavascriptPermissions(), MWNamespaceTest\testEquals(), MWNamespaceTest\testGetContentNamespaces(), MWNamespaceTest\testGetSubject(), MWNamespaceTest\testGetTalk(), MWNamespaceTest\testHasGenderDistinction(), MWNamespaceTest\testHasSubpages(), TitleMethodsTest\testInNamespaces(), MWNamespaceTest\testIsCapitalizedHardcodedAssertions(), MWNamespaceTest\testIsCapitalizedWithWgCapitalLinkOverrides(), MWNamespaceTest\testIsCapitalizedWithWgCapitalLinks(), MWNamespaceTest\testIsContent(), MWNamespaceTest\testIsNonincludable(), MWNamespaceTest\testIsSubject(), MWNamespaceTest\testIsTalk(), TitlePermissionTest\testQuickPermissions(), TitlePermissionTest\testSpecialsAndNSPermissions(), MWNamespaceTest\testSubjectEquals(), and Linker\userLink().

◆ NS_USER_TALK

const NS_USER_TALK 3

Definition at line 82 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct(), EmailNotification\actuallyNotifyOnPageChange(), EmailNotification\canSendUserTalkEmail(), User\clearNotification(), FileDuplicateSearchPage\doBatchLookups(), UsersPager\doBatchLookups(), HistoryPager\doBatchLookups(), ContribsPager\doBatchLookups(), WikiPage\doEditUpdates(), UserCache\doQuery(), ChangesListSpecialPage\execute(), SrConverter\findVariantLink(), ShiConverter\findVariantLink(), IuConverter\findVariantLink(), KuConverter\findVariantLink(), KkConverter\findVariantLink(), NewUsersLogFormatter\getPreloadTitles(), WantedPagesPage\getQueryInfo(), SpecialMytalk\getRedirect(), Article\getRobotPolicy(), LogPager\getStartBody(), MergeHistoryPager\getStartBody(), NewPagesPager\getStartBody(), MWNamespace\hasGenderDistinction(), User\isBlockedFrom(), Language\needsGenderDistinction(), EmailNotification\notifyOnPageChange(), WikiPage\onArticleDelete(), InfoAction\pageInfo(), ProtectedPagesPager\preprocessResults(), BlockListPager\preprocessResults(), MediaWikiTitleCodecTest\provideFormat(), MediaWikiTitleCodecTest\provideGetFullText(), MediaWikiTitleCodecTest\provideGetPrefixedText(), TitleMethodsTest\provideHasSubjectNamespace(), TitleMethodsTest\provideInNamespace(), MWNamespaceTest\setUp(), SpecialUndelete\showHistory(), Article\showMissingArticle(), Article\showViewFooter(), MediaWikiTitleCodec\splitTitleString(), MWNamespaceTest\testCanTalk(), MWNamespaceTest\testEquals(), MWNamespaceTest\testGetSubject(), MWNamespaceTest\testGetTalk(), MWNamespaceTest\testHasGenderDistinction(), MWNamespaceTest\testHasSubpages(), MWNamespaceTest\testIsSubject(), MWNamespaceTest\testIsTalk(), MWNamespaceTest\testSubjectEquals(), and Linker\userTalkLink().

◆ OT_HTML

const OT_HTML 1

Allowed values for Parser::$mOutputType Parameter to Parser::startExternalParse().

Definition at line 230 of file Defines.php.

Referenced by ParserMethodsTest\testCallParserFunction().

◆ OT_MSG

const OT_MSG 3

Definition at line 233 of file Defines.php.

◆ OT_PLAIN

const OT_PLAIN 4

Definition at line 234 of file Defines.php.

◆ OT_PREPROCESS

const OT_PREPROCESS 3

◆ OT_WIKI

const OT_WIKI 2

Definition at line 231 of file Defines.php.

◆ PROTO_CANONICAL

◆ PROTO_CURRENT

◆ PROTO_HTTP

◆ PROTO_HTTPS

const PROTO_HTTPS 'https://'

◆ PROTO_INTERNAL

const PROTO_INTERNAL 2

Definition at line 272 of file Defines.php.

Referenced by SquidUpdate\expand().

◆ PROTO_RELATIVE

◆ RC_EDIT

◆ RC_EXTERNAL

◆ RC_LOG

◆ RC_MOVE

◆ RC_MOVE_OVER_REDIRECT

◆ RC_NEW

◆ SFH_NO_HASH

const SFH_NO_HASH 1

Flags for Parser::setFunctionHook

Definition at line 240 of file Defines.php.

Referenced by CoreParserFunctions\register().

◆ SFH_OBJECT_ARGS

const SFH_OBJECT_ARGS 2

◆ SHELL_MAX_ARG_STRLEN

const SHELL_MAX_ARG_STRLEN '100000'

Max string length for shell invocations; based on binfmts.h

Definition at line 317 of file Defines.php.

◆ USER_TOKEN_LENGTH

const USER_TOKEN_LENGTH 32

Int Number of characters in user_token field.

Definition at line 27 of file User.php.