MediaWiki master
IContextSource.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\Context;
22
32use Skin;
33use Timing;
34use WikiPage;
35
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
167class_alias( IContextSource::class, 'IContextSource' );
Base class for language-specific code.
Definition Language.php:78
This is one of the Core classes and should be read at least once by any new developers.
The WebRequest class encapsulates getting at data passed in the URL or via a POSTed form,...
Represents a title within MediaWiki.
Definition Title.php:78
internal since 1.36
Definition User.php:93
The base class for all skins.
Definition Skin.php:64
An interface to help developers measure the performance of their applications.
Definition Timing.php:45
Base representation for an editable wiki page.
Definition WikiPage.php:85
Interface for configuration instances.
Definition Config.php:32
Interface for objects which can provide a MediaWiki context on request.
exportSession()
Export the resolved user IP, HTTP headers, user ID, and session ID.
getActionName()
Get the action name for the current web request.
getWikiPage()
Get the WikiPage object.
getConfig()
Get the site configuration.
canUseWikiPage()
Check whether a WikiPage object can be obtained with getWikiPage().
Interface supporting message localization in MediaWiki.
This interface represents the authority associated with the current execution context,...
Definition Authority.php:37