MediaWiki master
IContextSource.php
Go to the documentation of this file.
1<?php
7namespace MediaWiki\Context;
8
21
58
62 public function getRequest();
63
67 public function getTitle();
68
78 public function canUseWikiPage();
79
90 public function getWikiPage();
91
98 public function getActionName(): string;
99
103 public function getOutput();
104
108 public function getUser();
109
114 public function getAuthority(): Authority;
115
120 public function getLanguage();
121
125 public function getSkin();
126
133 public function getConfig();
134
139 public function getTiming();
140
149 public function exportSession();
150}
151
153class_alias( IContextSource::class, 'IContextSource' );
Base class for language-specific code.
Definition Language.php:70
This is one of the Core classes and should be read at least once by any new developers.
Base representation for an editable wiki page.
Definition WikiPage.php:82
The WebRequest class encapsulates getting at data passed in the URL or via a POSTed form,...
The base class for all skins.
Definition Skin.php:52
Represents a title within MediaWiki.
Definition Title.php:69
User class for the MediaWiki software.
Definition User.php:130
An interface to help developers measure the performance of their applications.
Definition Timing.php:33
Interface for configuration instances.
Definition Config.php:18
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:23
Provide an instance of CsrfTokenSet.