MediaWiki  REL1_19
router.php File Reference

Go to the source code of this file.

Variables

 $lines = explode( "\n", file_get_contents( "includes/mime.types" ) )
if($ext== 'php'||$ext== 'php5') $mime = false
foreach($lines as $line) if(!$mime)
if($mime) return 
false
 Some member variables can be lazy-initialised using __get().

Variable Documentation

Some member variables can be lazy-initialised using __get().

The initialisation function for these variables is always a function named like getVar(), where Var is the variable name with upper-case first letter.

The following variables are initialised in this way in this base class: name, extension, handler, path, canRender, isSafeFile, transformScript, hashPath, pageCount, url

Code within this class should generally use the accessor function directly, since __get() isn't re-entrant and therefore causes bugs that depend on initialisation order. The following member variables are not lazy-initialised

Definition at line 63 of file router.php.

Referenced by ContribsPager\__construct(), PPFrame_Hash\__construct(), PPFrame_DOM\__construct(), SkinTemplate\buildContentNavigationUrls(), Title\checkUserBlock(), SpecialContributions\execute(), SpecialExport\execute(), SpecialLog\execute(), LogFormatter\extractParameters(), ExternalStoreDB\fetchBlob(), Linker\formatLinksInCommentCallback(), SpecialProtectedpages\formatRow(), CreditsAction\getAuthor(), User\getBlockId(), WebInstaller\getInfoBox(), NewUsersLogFormatter\getMessageParameters(), BackupReader\getNsIndex(), MediaHandler\getThumbType(), SpecialSearch\goResult(), HistoryPager\historyLine(), Message\inContentLanguage(), FileCacheBase\incrMissesRecent(), userOptions\initializeOpts(), Message\inLanguage(), User\isBlockedFrom(), Linker\makeBrokenImageLinkObj(), ApiBase\makeHelpMsgParameters(), moveToExternal(), UnregisteredLocalFile\newFromTitle(), WikiPage\onArticleDelete(), SpecialUploadStash\outputLocallyScaledThumb(), Parser\parse(), PatrolLog\record(), LocalFile\recordUpload2(), UploadFromUrlJob\run(), SearchMssql\searchTitle(), SpecialAllpages\showToplevel(), PageArchive\undeleteRevisions(), and DatabaseMysql\wasReadOnlyError().