MediaWiki
1.23.0
|
Output class modelled on OutputPage. More...
Public Member Functions | |
__construct (WebInstaller $parent) | |
addHTML ( $html) | |
addHTMLNoFlush ( $html) | |
addWikiText ( $text) | |
allowFrames ( $allow=true) | |
flush () | |
getCSS ( $dir) | |
Get the raw vector CSS, flipping if needed. More... | |
getDir () | |
getHeadAttribs () | |
getJQuery () | |
getLanguageCode () | |
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 |
Private Member Functions | |
getCssUrl () | |
"<link>" to index.php?css=foobar for the "<head>" More... | |
Private Attributes | |
String | $contents = '' |
Buffered contents that haven't been output yet. More... | |
bool | $headerDone = false |
Has the header (or short header) been output? More... | |
bool | $useShortHeader = false |
Whether to use the limited header (used during CC license callbacks) More... | |
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 35 of file WebInstallerOutput.php.
WebInstallerOutput::__construct | ( | WebInstaller | $parent | ) |
WebInstaller | $parent |
Definition at line 72 of file WebInstallerOutput.php.
References $parent.
WebInstallerOutput::addHTML | ( | $html | ) |
string | $html |
Definition at line 79 of file WebInstallerOutput.php.
References $html, contents, and flush().
Referenced by addWikiText().
WebInstallerOutput::addHTMLNoFlush | ( | $html | ) |
string | $html |
Definition at line 94 of file WebInstallerOutput.php.
WebInstallerOutput::addWikiText | ( | $text | ) |
WebInstallerOutput::allowFrames | ( | $allow = true | ) |
Definition at line 217 of file WebInstallerOutput.php.
Referenced by outputHeader().
WebInstallerOutput::flush | ( | ) |
Definition at line 221 of file WebInstallerOutput.php.
References $contents, contents, headerDone(), and outputHeader().
WebInstallerOutput::getCSS | ( | $dir | ) |
Get the raw vector CSS, flipping if needed.
string | $dir | 'ltr' or 'rtl' |
Definition at line 126 of file WebInstallerOutput.php.
References $css, $dir, $e, $GLOBALS, $resourceLoader, array(), as, ResourceLoader\formatException(), ResourceLoader\getLessCompiler(), ResourceLoader\makeComment(), CSSMin\remap(), CSSJanus\transform(), wfRestoreWarnings(), and wfSuppressWarnings().
|
private |
"<link>" to index.php?css=foobar for the "<head>"
Definition at line 209 of file WebInstallerOutput.php.
References getDir(), and Html\linkedStyle().
Referenced by outputHeader(), and outputShortHeader().
WebInstallerOutput::getDir | ( | ) |
Definition at line 235 of file WebInstallerOutput.php.
References $wgLang, and global.
Referenced by getCssUrl(), getHeadAttribs(), and outputHeader().
WebInstallerOutput::getHeadAttribs | ( | ) |
Definition at line 253 of file WebInstallerOutput.php.
References array(), getDir(), and getLanguageCode().
Referenced by outputHeader(), and outputShortHeader().
WebInstallerOutput::getJQuery | ( | ) |
Definition at line 360 of file WebInstallerOutput.php.
References Html\linkedScript().
Referenced by outputHeader(), and outputShortHeader().
WebInstallerOutput::getLanguageCode | ( | ) |
Definition at line 244 of file WebInstallerOutput.php.
References $wgLang, and global.
Referenced by getHeadAttribs().
WebInstallerOutput::headerDone | ( | ) |
Get whether the header has been output.
Definition at line 265 of file WebInstallerOutput.php.
References $headerDone.
Referenced by flush(), outputHeader(), and redirect().
WebInstallerOutput::output | ( | ) |
Definition at line 110 of file WebInstallerOutput.php.
References flush(), and outputFooter().
WebInstallerOutput::outputFooter | ( | ) |
Definition at line 309 of file WebInstallerOutput.php.
References Html\closeElement(), href, php, title, useShortHeader(), and wfMessage().
Referenced by output().
WebInstallerOutput::outputHeader | ( | ) |
Definition at line 269 of file WebInstallerOutput.php.
References allowFrames(), array(), content, getCssUrl(), getDir(), getHeadAttribs(), getJQuery(), headerDone(), Html\htmlHeader(), Html\linkedScript(), name, Html\openElement(), outputShortHeader(), outputTitle(), php, title, and useShortHeader().
Referenced by flush().
WebInstallerOutput::outputShortHeader | ( | ) |
Definition at line 336 of file WebInstallerOutput.php.
References content, getCssUrl(), getHeadAttribs(), getJQuery(), Html\htmlHeader(), Html\linkedScript(), name, outputTitle(), php, and title.
Referenced by outputHeader().
WebInstallerOutput::outputTitle | ( | ) |
Definition at line 352 of file WebInstallerOutput.php.
References global, and wfMessage().
Referenced by outputHeader(), and outputShortHeader().
WebInstallerOutput::redirect | ( | $url | ) |
string | $url |
MWException |
Definition at line 103 of file WebInstallerOutput.php.
References headerDone().
WebInstallerOutput::useShortHeader | ( | $use = true | ) |
Definition at line 213 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 62 of file WebInstallerOutput.php.
|
private |
Buffered contents that haven't been output yet.
Definition at line 46 of file WebInstallerOutput.php.
Referenced by flush().
|
private |
Has the header (or short header) been output?
Definition at line 51 of file WebInstallerOutput.php.
Referenced by headerDone().
WebInstaller WebInstallerOutput::$parent |
The WebInstaller object this WebInstallerOutput is used by.
Definition at line 41 of file WebInstallerOutput.php.
Referenced by __construct().
string WebInstallerOutput::$redirectTarget |
Definition at line 55 of file WebInstallerOutput.php.
|
private |
Whether to use the limited header (used during CC license callbacks)
Definition at line 67 of file WebInstallerOutput.php.