MediaWiki master
MutableContext.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\Context;
22
23use Language;
30use Skin;
31use WikiPage;
32
38interface MutableContext {
39
43 public function setConfig( Config $config );
44
48 public function setRequest( WebRequest $request );
49
53 public function setTitle( Title $title );
54
58 public function setWikiPage( WikiPage $wikiPage );
59
64 public function setActionName( string $action ): void;
65
69 public function setOutput( OutputPage $output );
70
74 public function setUser( User $user );
75
80 public function setAuthority( Authority $authority );
81
85 public function setLanguage( $language );
86
90 public function setSkin( Skin $skin );
91
92}
93
95class_alias( MutableContext::class, 'MutableContext' );
Base class for language-specific code.
Definition Language.php:63
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:58
Base representation for an editable wiki page.
Definition WikiPage.php:79
Interface for configuration instances.
Definition Config.php:32
Request-dependent objects containers.
setWikiPage(WikiPage $wikiPage)
setAuthority(Authority $authority)
setOutput(OutputPage $output)
setRequest(WebRequest $request)
This interface represents the authority associated with the current execution context,...
Definition Authority.php:37