MediaWiki master
MutableContext.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\Context;
22
31use Skin;
32
38interface MutableContext {
39
40 public function setConfig( Config $config );
41
42 public function setRequest( WebRequest $request );
43
44 public function setTitle( Title $title );
45
46 public function setWikiPage( WikiPage $wikiPage );
47
52 public function setActionName( string $action ): void;
53
54 public function setOutput( OutputPage $output );
55
56 public function setUser( User $user );
57
62 public function setAuthority( Authority $authority );
63
67 public function setLanguage( $language );
68
69 public function setSkin( Skin $skin );
70
71}
72
74class_alias( MutableContext::class, 'MutableContext' );
Base class for language-specific code.
Definition Language.php:82
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:92
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
User class for the MediaWiki software.
Definition User.php:120
The base class for all skins.
Definition Skin.php:63
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