MediaWiki
REL1_19
|
Output class modelled on OutputPage. More...
Public Member Functions | |
__construct (WebInstaller $parent) | |
Constructor. | |
addHTML ($html) | |
addHTMLNoFlush ($html) | |
addWikiText ($text) | |
allowFrames ($allow=true) | |
flush () | |
getCSS ($dir) | |
Get the raw vector CSS, flipping if needed. | |
getDir () | |
getHeadAttribs () | |
getJQuery () | |
getLanguageCode () | |
headerDone () | |
Get whether the header has been output. | |
output () | |
outputFooter () | |
outputHeader () | |
outputShortHeader () | |
outputTitle () | |
redirect ($url) | |
useShortHeader ($use=true) | |
Public Attributes | |
$allowFrames = false | |
$parent | |
$redirectTarget | |
Private Member Functions | |
getCssUrl () | |
<link> to index.php?css=foobar for the <head> | |
Private Attributes | |
$contents = '' | |
$headerDone = false | |
$useShortHeader = false |
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 20 of file WebInstallerOutput.php.
WebInstallerOutput::__construct | ( | WebInstaller $ | parent | ) |
Constructor.
$parent | WebInstaller |
Definition at line 61 of file WebInstallerOutput.php.
References $parent.
WebInstallerOutput::addHTML | ( | $ | html | ) |
Definition at line 65 of file WebInstallerOutput.php.
References flush().
Referenced by addWikiText().
WebInstallerOutput::addHTMLNoFlush | ( | $ | html | ) |
Definition at line 74 of file WebInstallerOutput.php.
WebInstallerOutput::addWikiText | ( | $ | text | ) |
Definition at line 70 of file WebInstallerOutput.php.
References addHTML().
WebInstallerOutput::allowFrames | ( | $ | allow = true | ) |
Definition at line 151 of file WebInstallerOutput.php.
Referenced by outputHeader().
Definition at line 155 of file WebInstallerOutput.php.
References echo, headerDone(), and outputHeader().
Referenced by addHTML(), and output().
WebInstallerOutput::getCSS | ( | $ | dir | ) |
Get the raw vector CSS, flipping if needed.
$dir | String 'ltr' or 'rtl' |
Definition at line 95 of file WebInstallerOutput.php.
References $dir, CSSJanus\transform(), wfRestoreWarnings(), and wfSuppressWarnings().
WebInstallerOutput::getCssUrl | ( | ) | [private] |
<link> to index.php?css=foobar for the <head>
Definition at line 143 of file WebInstallerOutput.php.
References getDir(), and Html\linkedStyle().
Referenced by outputHeader(), and outputShortHeader().
Definition at line 169 of file WebInstallerOutput.php.
References $wgLang.
Referenced by getCssUrl(), getHeadAttribs(), and outputHeader().
Definition at line 185 of file WebInstallerOutput.php.
References getDir(), and getLanguageCode().
Referenced by outputHeader(), and outputShortHeader().
Definition at line 292 of file WebInstallerOutput.php.
References Html\linkedScript().
Referenced by outputHeader(), and outputShortHeader().
Definition at line 177 of file WebInstallerOutput.php.
References $wgLang.
Referenced by getHeadAttribs().
Get whether the header has been output.
Definition at line 196 of file WebInstallerOutput.php.
Referenced by flush(), outputHeader(), and redirect().
Definition at line 85 of file WebInstallerOutput.php.
References flush(), and outputFooter().
Definition at line 241 of file WebInstallerOutput.php.
References echo, useShortHeader(), and wfMsgNoTrans().
Referenced by output().
Definition at line 200 of file WebInstallerOutput.php.
References allowFrames(), echo, Xml\encodeJsVar(), getCssUrl(), getDir(), getHeadAttribs(), getJQuery(), headerDone(), Html\htmlHeader(), Html\inlineScript(), Html\linkedScript(), Html\linkedStyle(), Html\openElement(), outputShortHeader(), outputTitle(), and useShortHeader().
Referenced by flush().
Definition at line 271 of file WebInstallerOutput.php.
References echo, getCssUrl(), getHeadAttribs(), getJQuery(), Html\htmlHeader(), Html\linkedScript(), and outputTitle().
Referenced by outputHeader().
Definition at line 287 of file WebInstallerOutput.php.
References $wgVersion, echo, and wfMsg().
Referenced by outputHeader(), and outputShortHeader().
WebInstallerOutput::redirect | ( | $ | url | ) |
Definition at line 78 of file WebInstallerOutput.php.
References $url, and headerDone().
WebInstallerOutput::useShortHeader | ( | $ | use = true | ) |
Definition at line 147 of file WebInstallerOutput.php.
Referenced by outputFooter(), and outputHeader().
WebInstallerOutput::$allowFrames = false |
Definition at line 48 of file WebInstallerOutput.php.
WebInstallerOutput::$contents = '' [private] |
Definition at line 32 of file WebInstallerOutput.php.
WebInstallerOutput::$headerDone = false [private] |
Definition at line 38 of file WebInstallerOutput.php.
WebInstallerOutput::$parent |
Definition at line 26 of file WebInstallerOutput.php.
Referenced by __construct().
WebInstallerOutput::$redirectTarget |
Definition at line 40 of file WebInstallerOutput.php.
WebInstallerOutput::$useShortHeader = false [private] |
Definition at line 54 of file WebInstallerOutput.php.