X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=docs%2Fglobals.txt;h=847fbed274cbf7966cab20e65d95d8bca40bc3b1;hp=ac4bd792ce58bada6b47323363f034951386b30a;hb=60090fe207ef07aa2b90c401285eaf6179da9172;hpb=3e11266ae5e5a33498abb7f028bbc79b5ca93515 diff --git a/docs/globals.txt b/docs/globals.txt index ac4bd792ce..847fbed274 100644 --- a/docs/globals.txt +++ b/docs/globals.txt @@ -29,19 +29,17 @@ Some of the current MediaWiki developers have an idle fantasy that some day, globals will be eliminated from MediaWiki entirely, replaced by an application object which would be passed to constructors. Whether that would be an efficient, convenient solution remains to be seen, but certainly PHP 5 makes -such object-oriented programming models easier than they were in previous +such object-oriented programming models easier than they were in previous versions. For the time being though, MediaWiki programmers will have to work in an environment with some global context. At the time of writing, 418 globals were -initialised on startup by MediaWiki. 304 of these were configuration settings, -which are documented in DefaultSettings.php. There is no comprehensive +initialised on startup by MediaWiki. 304 of these were configuration settings, +which are documented in DefaultSettings.php. There is no comprehensive documentation for the remaining 114 globals, however some of the most important ones are listed below. They are typically initialised either in index.php or in Setup.php. -For a description of the classes, see design.txt. - $wgTitle Title object created from the request URL. @@ -63,5 +61,5 @@ $wgParser $wgRequest WebRequest object, to get request data -$wgMemc, $messageMemc, $parserMemc +$wgMemc, $messageMemc Object caches