This is a brief overview of the new design.
More thorough and up-to-date information is available on the documentation
-wiki at http://www.mediawiki.org/
+wiki at https://www.mediawiki.org/
Primary classes:
interface language is instantiated as $wgLang, and the local content
language as $wgContLang; be sure to use the *correct* language object
depending upon the circumstances.
- See also language.txt.
+ See also language.txt.
Parser
Class used to transform wikitext to html.
things will break. New code should use the standard method of setting
visibilities as normal.
- - Member variables are generally "mXxx" to distinguish them. This should make
- it easier to spot errors of forgetting the required "$this->", which PHP
- will happily accept by creating a new local variable rather than complaining.
-
- Globals are particularly evil in PHP; it sets a lot of them automatically
from cookies, query strings, and such, leading to namespace conflicts; when
a variable name is used in a function, it is silently declared as a new