MediaWiki
REL1_19
|
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(). | |
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.
Referenced by Action\getActionName().
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\getDebugHTML(), MWDebug\getFilesIncluded(), ParserOptions\newFromContext(), Preferences\profilePreferences(), Message\setContext(), Preferences\skinPreferences(), and HTMLFileCache\useFileCache().
Get the OutputPage object.
Implemented in DerivativeContext, RequestContext, 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(), Action\getActionName(), MWDebug\getDebugHTML(), ChangesList\newFromContext(), and HTMLFileCache\useFileCache().
Get the Skin object.
Implemented in RequestContext, DerivativeContext, and ContextSource.
Referenced by ChangesList\newFromContext().
Get the Title object.
Implemented in ImageHistoryPseudoPager, HTMLForm, AllmessagesTablePager, ProtectedTitlesPager, DerivativeContext, RequestContext, and ContextSource.
Referenced by Preferences\profilePreferences(), and Message\setContext().
Get the User object.
Implemented in DerivativeContext, RequestContext, and ContextSource.
Referenced by SpecialPageFactory\capturePath(), ChangesList\newFromContext(), ParserOptions\newFromContext(), 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 DerivativeContext, RequestContext, and ContextSource.
Referenced by Action\getActionName().
Get a Message object with context set.
Implemented in RequestContext, and ContextSource.
Referenced by Preferences\editingPreferences(), Preferences\generateSkinOptions(), Preferences\getDateOptions(), Preferences\getFormObject(), Preferences\getImageSizes(), Preferences\getThumbSizes(), Preferences\getTimezoneOptions(), Preferences\profilePreferences(), Preferences\rcPreferences(), Preferences\renderingPreferences(), Preferences\searchPreferences(), Preferences\skinPreferences(), and Preferences\watchlistPreferences().