Manual:Global object variables/ko
Appearance
Hundreds of globals are initialized on startup by MediaWiki. The majority of these global variables are configuration settings. (See 매뉴얼:구성 설정들 for documentation on these variables.) There is no comprehensive documentation for the remaining few hundred globals, however, some of the most important ones are listed below. They are typically initialized either in index.php or in Setup.php.
Global variables
- $mediaWiki - MediaWiki object, the main base class for the MediaWiki software. Initializes the
$wgTitleobject and executes the URL actions. - $wgContLang - Language object associated with the wiki being viewed. (1.32에서 구식화됨) (1.36 에서 제거됨)
- $wgLang - Language object selected by user preferences.
- $wgOut - OutputPage object for HTTP response.
- $wgParser - Parser object. Parser extensions register their hooks here. (1.32에서 구식화됨) (1.39 에서 제거됨)
- $wgRequest - WebRequest object, to get request data.
- $wgTitle - Title object created from the request URL. (1.19에서 구식화됨)
주의: This variable should be avoided when possible, more sane title objects are usually available. - $wgUser - User object for the user associated with the current request. (1.35에서 구식화됨) (1.46 에서 제거됨)