MediaWiki  master
WebInstallerOutput Class Reference

Output class modelled on OutputPage. More...

Collaboration diagram for WebInstallerOutput:

Public Member Functions

 __construct (WebInstaller $parent)
 
 addHTML ( $html)
 
 addHTMLNoFlush ( $html)
 
 addWikiTextAsInterface ( $text)
 
 allowFrames ( $allow=true)
 
 flush ()
 
 getCSS ()
 Get the stylesheet of the MediaWiki skin. More...
 
 getHeadAttribs ()
 
 getJQuery ()
 
 headerDone ()
 Get whether the header has been output. More...
 
 output ()
 
 outputFooter ()
 
 outputHeader ()
 
 outputShortHeader ()
 
 outputTitle ()
 
 redirect ( $url)
 
 useShortHeader ( $use=true)
 

Public Attributes

bool $allowFrames = false
 Does the current page need to allow being used as a frame? If not, X-Frame-Options will be output to forbid it. More...
 
WebInstaller $parent
 The WebInstaller object this WebInstallerOutput is used by. More...
 
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 42 of file WebInstallerOutput.php.

Constructor & Destructor Documentation

◆ __construct()

WebInstallerOutput::__construct ( WebInstaller  $parent)
Parameters
WebInstaller$parent

Definition at line 85 of file WebInstallerOutput.php.

References $parent.

Member Function Documentation

◆ addHTML()

WebInstallerOutput::addHTML (   $html)
Parameters
string$html

Definition at line 92 of file WebInstallerOutput.php.

References flush().

Referenced by addWikiTextAsInterface().

◆ addHTMLNoFlush()

WebInstallerOutput::addHTMLNoFlush (   $html)
Parameters
string$html

Definition at line 108 of file WebInstallerOutput.php.

◆ addWikiTextAsInterface()

WebInstallerOutput::addWikiTextAsInterface (   $text)
Parameters
string$text
Since
1.32

Definition at line 101 of file WebInstallerOutput.php.

References addHTML().

◆ allowFrames()

WebInstallerOutput::allowFrames (   $allow = true)

Definition at line 180 of file WebInstallerOutput.php.

Referenced by outputHeader().

◆ flush()

WebInstallerOutput::flush ( )

Definition at line 184 of file WebInstallerOutput.php.

References headerDone(), and outputHeader().

Referenced by addHTML(), and output().

◆ getCSS()

WebInstallerOutput::getCSS ( )

Get the stylesheet of the MediaWiki skin.

Returns
string

Definition at line 137 of file WebInstallerOutput.php.

◆ getHeadAttribs()

WebInstallerOutput::getHeadAttribs ( )
Returns
string[]

Definition at line 209 of file WebInstallerOutput.php.

Referenced by outputHeader(), and outputShortHeader().

◆ getJQuery()

WebInstallerOutput::getJQuery ( )
Returns
string

Definition at line 334 of file WebInstallerOutput.php.

Referenced by outputHeader(), and outputShortHeader().

◆ headerDone()

WebInstallerOutput::headerDone ( )

Get whether the header has been output.

Returns
bool

Definition at line 221 of file WebInstallerOutput.php.

Referenced by flush(), outputHeader(), and redirect().

◆ output()

WebInstallerOutput::output ( )

Definition at line 124 of file WebInstallerOutput.php.

References flush(), and outputFooter().

◆ outputFooter()

WebInstallerOutput::outputFooter ( )

Definition at line 267 of file WebInstallerOutput.php.

References useShortHeader(), and wfMessage().

Referenced by output().

◆ outputHeader()

WebInstallerOutput::outputHeader ( )

◆ outputShortHeader()

WebInstallerOutput::outputShortHeader ( )

Definition at line 310 of file WebInstallerOutput.php.

References getHeadAttribs(), getJQuery(), and outputTitle().

Referenced by outputHeader().

◆ outputTitle()

WebInstallerOutput::outputTitle ( )

Definition at line 327 of file WebInstallerOutput.php.

References MW_VERSION, and wfMessage().

Referenced by outputHeader(), and outputShortHeader().

◆ redirect()

WebInstallerOutput::redirect (   $url)
Parameters
string$url
Exceptions
MWException

Definition at line 117 of file WebInstallerOutput.php.

References headerDone().

◆ useShortHeader()

WebInstallerOutput::useShortHeader (   $use = true)

Definition at line 176 of file WebInstallerOutput.php.

Referenced by outputFooter(), and outputHeader().

Member Data Documentation

◆ $allowFrames

bool WebInstallerOutput::$allowFrames = false

Does the current page need to allow being used as a frame? If not, X-Frame-Options will be output to forbid it.

Definition at line 74 of file WebInstallerOutput.php.

◆ $parent

WebInstaller WebInstallerOutput::$parent

The WebInstaller object this WebInstallerOutput is used by.

Definition at line 49 of file WebInstallerOutput.php.

Referenced by __construct().

◆ $redirectTarget

string WebInstallerOutput::$redirectTarget

Definition at line 66 of file WebInstallerOutput.php.


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