MediaWiki
master
|
Output class modelled on OutputPage. More...
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 |
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.
Definition at line 41 of file WebInstallerOutput.php.
WebInstallerOutput::__construct | ( | WebInstaller | $parent | ) |
WebInstaller | $parent |
Definition at line 84 of file WebInstallerOutput.php.
References $parent.
WebInstallerOutput::addHTML | ( | $html | ) |
string | $html |
Definition at line 91 of file WebInstallerOutput.php.
References flush().
Referenced by addWikiTextAsInterface().
WebInstallerOutput::addHTMLNoFlush | ( | $html | ) |
string | $html |
Definition at line 107 of file WebInstallerOutput.php.
WebInstallerOutput::addWikiTextAsInterface | ( | $text | ) |
string | $text |
Definition at line 100 of file WebInstallerOutput.php.
References addHTML().
WebInstallerOutput::allowFrames | ( | $allow = true | ) |
Definition at line 179 of file WebInstallerOutput.php.
Referenced by outputHeader().
WebInstallerOutput::flush | ( | ) |
Definition at line 183 of file WebInstallerOutput.php.
References headerDone(), and outputHeader().
WebInstallerOutput::getCSS | ( | ) |
Get the stylesheet of the MediaWiki skin.
Definition at line 136 of file WebInstallerOutput.php.
WebInstallerOutput::getHeadAttribs | ( | ) |
Definition at line 208 of file WebInstallerOutput.php.
Referenced by outputHeader(), and outputShortHeader().
WebInstallerOutput::getJQuery | ( | ) |
Definition at line 333 of file WebInstallerOutput.php.
References Html\linkedScript().
Referenced by outputHeader(), and outputShortHeader().
WebInstallerOutput::headerDone | ( | ) |
Get whether the header has been output.
Definition at line 220 of file WebInstallerOutput.php.
Referenced by flush(), outputHeader(), and redirect().
WebInstallerOutput::output | ( | ) |
Definition at line 123 of file WebInstallerOutput.php.
References flush(), and outputFooter().
WebInstallerOutput::outputFooter | ( | ) |
Definition at line 266 of file WebInstallerOutput.php.
References Html\closeElement(), useShortHeader(), and wfMessage().
Referenced by output().
WebInstallerOutput::outputHeader | ( | ) |
Definition at line 224 of file WebInstallerOutput.php.
References allowFrames(), getHeadAttribs(), getJQuery(), headerDone(), Html\htmlHeader(), Html\linkedScript(), Html\openElement(), outputShortHeader(), outputTitle(), and useShortHeader().
Referenced by flush().
WebInstallerOutput::outputShortHeader | ( | ) |
Definition at line 309 of file WebInstallerOutput.php.
References getHeadAttribs(), getJQuery(), Html\htmlHeader(), Html\linkedScript(), and outputTitle().
Referenced by outputHeader().
WebInstallerOutput::outputTitle | ( | ) |
Definition at line 326 of file WebInstallerOutput.php.
References MW_VERSION, and wfMessage().
Referenced by outputHeader(), and outputShortHeader().
WebInstallerOutput::redirect | ( | $url | ) |
string | $url |
MWException |
Definition at line 116 of file WebInstallerOutput.php.
References headerDone().
WebInstallerOutput::useShortHeader | ( | $use = true | ) |
Definition at line 175 of file WebInstallerOutput.php.
Referenced by outputFooter(), and outputHeader().
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 73 of file WebInstallerOutput.php.
WebInstaller WebInstallerOutput::$parent |
The WebInstaller object this WebInstallerOutput is used by.
Definition at line 48 of file WebInstallerOutput.php.
Referenced by __construct().
string WebInstallerOutput::$redirectTarget |
Definition at line 65 of file WebInstallerOutput.php.