MediaWiki
REL1_22
|
Interface for objects which can provide a context on request. More...
Public Member Functions | |
canUseWikiPage () | |
Check whether a WikiPage object can be get with getWikiPage(). | |
exportSession () | |
Export the resolved user IP, HTTP headers, user ID, and session ID. | |
getLang () | |
Get the Language object. | |
getLanguage () | |
Get the Language object. | |
getOutput () | |
Get the OutputPage object. | |
getRequest () | |
Get the WebRequest object. | |
getSkin () | |
Get the Skin object. | |
getTitle () | |
Get the Title object. | |
getUser () | |
Get the User object. | |
getWikiPage () | |
Get the WikiPage object. | |
msg () | |
Get a Message object with context set. |
Interface for objects which can provide a context on request.
Definition at line 29 of file IContextSource.php.
Check whether a WikiPage object can be get with getWikiPage().
Callers should expect that an exception is thrown from getWikiPage() if this method returns false.
Implemented in DerivativeContext, RequestContext, and ContextSource.
Export the resolved user IP, HTTP headers, user ID, and session ID.
The result will be reasonably sized to allow for serialization.
Implemented in RequestContext, and ContextSource.
Get the Language object.
Implemented in RequestContext, DerivativeContext, and ContextSource.
Get the Language object.
Implemented in RequestContext, DerivativeContext, and ContextSource.
Referenced by SpecialPageFactory\capturePath(), Preferences\datetimePreferences(), Preferences\generateSkinOptions(), Preferences\getDateOptions(), MWDebug\getDebugInfo(), MWDebug\getFilesIncluded(), Block\getPermissionsError(), Preferences\profilePreferences(), Preferences\skinPreferences(), and HTMLFileCache\useFileCache().
Get the OutputPage object.
Implemented in RequestContext, DerivativeContext, and ContextSource.
Referenced by SpecialPageFactory\capturePath(), SpecialPageFactory\executePath(), HTMLFileCache\loadFromFileCache(), and Preferences\profilePreferences().
Get the WebRequest object.
Implemented in DerivativeContext, RequestContext, and ContextSource.
Referenced by NewFilesPager\__construct(), ImageListPager\__construct(), SpecialPageFactory\capturePath(), SpecialPageFactory\executePath(), MWDebug\getDebugInfo(), Block\getPermissionsError(), Preferences\profilePreferences(), and HTMLFileCache\useFileCache().
Get the Skin object.
Implemented in RequestContext, DerivativeContext, and ContextSource.
Get the Title object.
Implemented in ImageHistoryPseudoPager, HTMLForm, ImageListPager, AllmessagesTablePager, ProtectedTitlesPager, DerivativeContext, RequestContext, and ContextSource.
Referenced by Preferences\profilePreferences().
Get the User object.
Implemented in RequestContext, DerivativeContext, and ContextSource.
Referenced by SpecialPageFactory\capturePath(), ApiLogin\execute(), SpecialBlock\processForm(), SpecialUnblock\processUnblock(), Preferences\profilePreferences(), and HTMLFileCache\useFileCache().
Get the WikiPage object.
May throw an exception if there's no Title object set or the Title object belongs to a special namespace that doesn't have WikiPage, so use first canUseWikiPage() to check whether this method can be called safely.
Implemented in RequestContext, DerivativeContext, and ContextSource.
Get a Message object with context set.
Implemented in RequestContext, DerivativeContext, and ContextSource.
Referenced by Preferences\editingPreferences(), Preferences\generateSkinOptions(), Preferences\getDateOptions(), Preferences\getFormObject(), Preferences\getImageSizes(), Linker\getInvalidTitleDescription(), Block\getPermissionsError(), Preferences\getThumbSizes(), Preferences\getTimezoneOptions(), Preferences\profilePreferences(), Preferences\rcPreferences(), Preferences\renderingPreferences(), Preferences\searchPreferences(), Preferences\skinPreferences(), and Preferences\watchlistPreferences().