MediaWiki
master
IContextSource.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\Context
;
22
23
use
MediaWiki\Config\Config
;
24
use
MediaWiki\Language\Language
;
25
use
MediaWiki\Language\LocalizationContext
;
26
use
MediaWiki\Output\OutputPage
;
27
use
MediaWiki\Permissions\Authority
;
28
use
MediaWiki\Request\WebRequest
;
29
use
MediaWiki\Session\CsrfTokenSetProvider
;
30
use
MediaWiki\Title\Title
;
31
use
MediaWiki\User\User
;
32
use
Skin
;
33
use
Timing
;
34
use
WikiPage
;
35
71
interface
IContextSource
extends
LocalizationContext
,
CsrfTokenSetProvider
{
72
76
public
function
getRequest
();
77
81
public
function
getTitle
();
82
92
public
function
canUseWikiPage
();
93
104
public
function
getWikiPage
();
105
112
public
function
getActionName
(): string;
113
117
public
function
getOutput
();
118
122
public
function
getUser
();
123
128
public
function
getAuthority
():
Authority
;
129
134
public
function
getLanguage
();
135
139
public
function
getSkin
();
140
147
public
function
getConfig
();
148
153
public
function
getTiming
();
154
163
public
function
exportSession
();
164
}
165
167
class_alias( IContextSource::class,
'IContextSource'
);
MediaWiki\Language\Language
Base class for language-specific code.
Definition
Language.php:78
MediaWiki\Output\OutputPage
This is one of the Core classes and should be read at least once by any new developers.
Definition
OutputPage.php:98
MediaWiki\Request\WebRequest
The WebRequest class encapsulates getting at data passed in the URL or via a POSTed form,...
Definition
WebRequest.php:51
MediaWiki\Title\Title
Represents a title within MediaWiki.
Definition
Title.php:78
MediaWiki\User\User
internal since 1.36
Definition
User.php:93
Skin
The base class for all skins.
Definition
Skin.php:64
Timing
An interface to help developers measure the performance of their applications.
Definition
Timing.php:45
WikiPage
Base representation for an editable wiki page.
Definition
WikiPage.php:85
MediaWiki\Config\Config
Interface for configuration instances.
Definition
Config.php:32
MediaWiki\Context\IContextSource
Interface for objects which can provide a MediaWiki context on request.
Definition
IContextSource.php:71
MediaWiki\Context\IContextSource\getOutput
getOutput()
MediaWiki\Context\IContextSource\exportSession
exportSession()
Export the resolved user IP, HTTP headers, user ID, and session ID.
MediaWiki\Context\IContextSource\getActionName
getActionName()
Get the action name for the current web request.
MediaWiki\Context\IContextSource\getSkin
getSkin()
MediaWiki\Context\IContextSource\getWikiPage
getWikiPage()
Get the WikiPage object.
MediaWiki\Context\IContextSource\getAuthority
getAuthority()
MediaWiki\Context\IContextSource\getUser
getUser()
MediaWiki\Context\IContextSource\getConfig
getConfig()
Get the site configuration.
MediaWiki\Context\IContextSource\getTitle
getTitle()
MediaWiki\Context\IContextSource\getLanguage
getLanguage()
MediaWiki\Context\IContextSource\getRequest
getRequest()
MediaWiki\Context\IContextSource\getTiming
getTiming()
MediaWiki\Context\IContextSource\canUseWikiPage
canUseWikiPage()
Check whether a WikiPage object can be obtained with getWikiPage().
MediaWiki\Language\LocalizationContext
Interface supporting message localization in MediaWiki.
Definition
LocalizationContext.php:32
MediaWiki\Permissions\Authority
This interface represents the authority associated with the current execution context,...
Definition
Authority.php:37
MediaWiki\Session\CsrfTokenSetProvider
Definition
CsrfTokenSetProvider.php:28
MediaWiki\Context
Definition
ContextSource.php:21
includes
context
IContextSource.php
Generated on Sat Nov 2 2024 12:23:13 for MediaWiki by
1.10.0