MediaWiki master
MutableContext.php
Go to the documentation of this file.
1<?php
7namespace MediaWiki\Context;
8
18
24interface MutableContext {
25
27 public function setConfig( Config $config );
28
30 public function setRequest( WebRequest $request );
31
33 public function setTitle( Title $title );
34
36 public function setWikiPage( WikiPage $wikiPage );
37
42 public function setActionName( string $action ): void;
43
45 public function setOutput( OutputPage $output );
46
48 public function setUser( User $user );
49
54 public function setAuthority( Authority $authority );
55
59 public function setLanguage( $language );
60
62 public function setSkin( Skin $skin );
63
64}
65
67class_alias( MutableContext::class, 'MutableContext' );
Base class for language-specific code.
Definition Language.php:68
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
Interface for configuration instances.
Definition Config.php:18
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:23