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 ()
 
 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 45 of file WebInstallerOutput.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 74 of file WebInstallerOutput.php.

References MediaWiki\Installer\WebInstallerOutput\$parent.

Member Function Documentation

◆ addHTML()

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

◆ addHTMLNoFlush()

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

Definition at line 97 of file WebInstallerOutput.php.

◆ addWikiTextAsInterface()

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

Definition at line 90 of file WebInstallerOutput.php.

References MediaWiki\Installer\WebInstallerOutput\addHTML().

◆ flush()

◆ getCodex()

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

Definition at line 291 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 124 of file WebInstallerOutput.php.

References MediaWiki\MediaWikiServices\getInstance().

◆ getHeadAttribs()

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

Definition at line 188 of file WebInstallerOutput.php.

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

◆ getJQuery()

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

Definition at line 284 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 237 of file WebInstallerOutput.php.

References wfMessage().

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

◆ outputHeader()

◆ outputTitle()

MediaWiki\Installer\WebInstallerOutput::outputTitle ( )

Definition at line 277 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 104 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 52 of file WebInstallerOutput.php.

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

◆ $redirectTarget

string MediaWiki\Installer\WebInstallerOutput::$redirectTarget

Definition at line 69 of file WebInstallerOutput.php.


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