aboutsummaryrefslogtreecommitdiffstats
path: root/docs/globals.txt
diff options
context:
space:
mode:
authorBrion Vibber <brion@users.mediawiki.org>2005-04-12 00:41:38 +0000
committerBrion Vibber <brion@users.mediawiki.org>2005-04-12 00:41:38 +0000
commit27b500c4aa62a5ea7e60a987a3c43edf4d9db59c (patch)
treede919364189ed72c27a022a37fcddf5eae8a186b /docs/globals.txt
parente1f576c14e0bce02ca67a3c433a689bec8c74e24 (diff)
downloadmediawikicore-27b500c4aa62a5ea7e60a987a3c43edf4d9db59c.tar.gz
mediawikicore-27b500c4aa62a5ea7e60a987a3c43edf4d9db59c.zip
Change .doc extension to .txt so people stop asking why we have Word documents. WE DONT THEY ARE TEXT!!!!111eleven
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/8267
Diffstat (limited to 'docs/globals.txt')
-rw-r--r--docs/globals.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/globals.txt b/docs/globals.txt
new file mode 100644
index 000000000000..ac1a60916344
--- /dev/null
+++ b/docs/globals.txt
@@ -0,0 +1,29 @@
+GLOBALS.DOC
+
+PHP loves globals. I hate them. This is not a great
+combination, but I manage. I could get rid of most of
+them by having a single "HTTP request" object, and using
+it to hold everything that's now global (which is exactly
+what I'd do in a Java servlet). But that's really
+awkward in PHP, and wouldn't really provide much benefit
+in readability or maintainability, so I go with the flow
+of PHP and use globals. Here's documentation on the
+important globals used by the system.
+
+$wgOut
+ OutputPage object for HTTP response.
+
+$wgTitle
+ Title object created from the request URL.
+
+$wgLang
+ Language object for this request.
+
+$wgArticle
+ Article object corresponsing to $wgTitle.
+
+$wgLinkCache
+ LinkCache object.
+
+...
+