MediaWiki master
MediaWiki\Installer\WebInstallerOutput Class Reference

Output class modelled on OutputPage. More...

Collaboration diagram for MediaWiki\Installer\WebInstallerOutput:

Public Member Functions

 __construct (WebInstaller $parent)
 
 addHTML ( $html)
 
 addHTMLNoFlush ( $html)
 
 addWikiTextAsInterface ( $text)
 
 flush ()
 
 getCodex ()
 
 getCSPNonce ()
 Get the nonce for use with inline scripts.
 
 getCSS ()
 Get the stylesheet of the MediaWiki skin.
 
 getHeadAttribs ()
 
 getJQuery ()
 
 headerDone ()
 Get whether the header has been output.
 
 output ()
 
 outputFooter ()
 
 outputHeader ()
 
 outputTitle ()
 
 redirect ( $url)
 

Public Attributes

WebInstaller $parent
 The WebInstaller object this WebInstallerOutput is used by.
 
string $redirectTarget
 

Detailed Description

Output class modelled on OutputPage.

I've opted to use a distinct class rather than derive from OutputPage here in the interests of separation of concerns: if we used a subclass, there would be quite a lot of things you could do in OutputPage that would break the installer, that wouldn't be immediately obvious.

Since
1.17
Access: internal

Definition at line 31 of file WebInstallerOutput.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Installer\WebInstallerOutput::__construct ( WebInstaller $parent)

Member Function Documentation

◆ addHTML()

MediaWiki\Installer\WebInstallerOutput::addHTML ( $html)

◆ addHTMLNoFlush()

MediaWiki\Installer\WebInstallerOutput::addHTMLNoFlush ( $html)
Parameters
string$html

Definition at line 80 of file WebInstallerOutput.php.

◆ addWikiTextAsInterface()

MediaWiki\Installer\WebInstallerOutput::addWikiTextAsInterface ( $text)
Parameters
string$text
Since
1.32

Definition at line 73 of file WebInstallerOutput.php.

References MediaWiki\Installer\WebInstallerOutput\addHTML().

◆ flush()

◆ getCodex()

MediaWiki\Installer\WebInstallerOutput::getCodex ( )
Returns
string

Definition at line 280 of file WebInstallerOutput.php.

Referenced by MediaWiki\Installer\WebInstallerOutput\outputHeader().

◆ getCSPNonce()

MediaWiki\Installer\WebInstallerOutput::getCSPNonce ( )

Get the nonce for use with inline scripts.

Since
1.45
Returns
string

Definition at line 290 of file WebInstallerOutput.php.

Referenced by MediaWiki\Installer\WebInstallerOutput\outputHeader().

◆ getCSS()

MediaWiki\Installer\WebInstallerOutput::getCSS ( )

Get the stylesheet of the MediaWiki skin.

Returns
string

Definition at line 107 of file WebInstallerOutput.php.

References MediaWiki\MediaWikiServices\getInstance().

◆ getHeadAttribs()

MediaWiki\Installer\WebInstallerOutput::getHeadAttribs ( )
Returns
string[]

Definition at line 171 of file WebInstallerOutput.php.

Referenced by MediaWiki\Installer\WebInstallerOutput\outputHeader().

◆ getJQuery()

MediaWiki\Installer\WebInstallerOutput::getJQuery ( )
Returns
string

Definition at line 273 of file WebInstallerOutput.php.

Referenced by MediaWiki\Installer\WebInstallerOutput\outputHeader().

◆ headerDone()

MediaWiki\Installer\WebInstallerOutput::headerDone ( )

◆ output()

MediaWiki\Installer\WebInstallerOutput::output ( )

◆ outputFooter()

MediaWiki\Installer\WebInstallerOutput::outputFooter ( )

Definition at line 226 of file WebInstallerOutput.php.

References wfMessage().

Referenced by MediaWiki\Installer\WebInstallerOutput\output().

◆ outputHeader()

◆ outputTitle()

MediaWiki\Installer\WebInstallerOutput::outputTitle ( )

Definition at line 266 of file WebInstallerOutput.php.

References MW_VERSION, and wfMessage().

Referenced by MediaWiki\Installer\WebInstallerOutput\outputHeader().

◆ redirect()

MediaWiki\Installer\WebInstallerOutput::redirect ( $url)
Parameters
string$url

Definition at line 87 of file WebInstallerOutput.php.

References $url, and MediaWiki\Installer\WebInstallerOutput\headerDone().

Member Data Documentation

◆ $parent

WebInstaller MediaWiki\Installer\WebInstallerOutput::$parent

The WebInstaller object this WebInstallerOutput is used by.

Definition at line 38 of file WebInstallerOutput.php.

Referenced by MediaWiki\Installer\WebInstallerOutput\__construct().

◆ $redirectTarget

string MediaWiki\Installer\WebInstallerOutput::$redirectTarget

Definition at line 55 of file WebInstallerOutput.php.


The documentation for this class was generated from the following file: