Manual:Global object variables/ja
From MediaWiki.org
Hundreds of globals are initialised on startup by MediaWiki. The majority of these global variables are configuration settings that are set in DefaultSettings.php and LocalSettings.php. (See Manual:Configuration settings 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 initialised either in index.php or in Setup.php.
Global variables[edit]
- $mediaWiki - MediaWiki object, the main base class for the MediaWiki software. Initializes the $wgTitle and $wgArticle objects, and executes the URL actions.
- $wgArticle - $wgTitleに対応するArticleオブジェクト
- $wgContLang - Language object associated with the wiki being viewed.
- $wgLang - Language object selected by user preferences
- $wgLoadBalancer - LoadBalancerオブジェクト、データベース接続を管理します。Note: This variable doesn't exist anymore in 1.13
- $wgMessageCache - Message cache to manage interface messages
- $wgOut - OutputPage object for HTTP response.
- $wgParser - Parserオブジェクト。パーサエクステンションはそれらのフックをここで登録します。
- $wgRequest - WebRequest object, to get request data
- $wgTitle - Title object created from the request URL. Note: 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.
関連項目[edit]
| 言語: | English • Deutsch • 日本語 • polski |
|---|
