MediaWiki
REL1_24
|
Output class modelled on OutputPage. More...
Public Member Functions | |
__construct (WebInstaller $parent) | |
addHTML ($html) | |
addHTMLNoFlush ($html) | |
addWikiText ($text) | |
allowFrames ($allow=true) | |
flush () | |
getCSS () | |
Get the stylesheet of the MediaWiki skin. | |
getDir () | |
getHeadAttribs () | |
getJQuery () | |
getLanguageCode () | |
headerDone () | |
Get whether the header has been output. | |
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. | |
WebInstaller | $parent |
The WebInstaller object this WebInstallerOutput is used by. | |
string | $redirectTarget |
Private Member Functions | |
getCssUrl () | |
"<link>" to index.php?css=1 for the "<head>" | |
Private Attributes | |
string | $contents = '' |
Buffered contents that haven't been output yet. | |
bool | $headerDone = false |
Has the header (or short header) been output? | |
bool | $useShortHeader = false |
Whether to use the limited header (used during CC license callbacks) |
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.
WebInstallerOutput::addHTML | ( | $ | html | ) |
string | $html |
Definition at line 79 of file WebInstallerOutput.php.
WebInstallerOutput::addHTMLNoFlush | ( | $ | html | ) |
string | $html |
Definition at line 94 of file WebInstallerOutput.php.
WebInstallerOutput::addWikiText | ( | $ | text | ) |
string | $text |
Definition at line 87 of file WebInstallerOutput.php.
WebInstallerOutput::allowFrames | ( | $ | allow = true | ) |
Definition at line 185 of file WebInstallerOutput.php.
Definition at line 189 of file WebInstallerOutput.php.
Get the stylesheet of the MediaWiki skin.
Definition at line 120 of file WebInstallerOutput.php.
References $resourceLoader, array(), as, getLanguageCode(), global, and ResourceLoader\makeCombinedStyles().
WebInstallerOutput::getCssUrl | ( | ) | [private] |
"<link>" to index.php?css=1 for the "<head>"
Definition at line 177 of file WebInstallerOutput.php.
References Html\linkedStyle().
Definition at line 203 of file WebInstallerOutput.php.
Definition at line 221 of file WebInstallerOutput.php.
Definition at line 328 of file WebInstallerOutput.php.
Get whether the header has been output.
Definition at line 233 of file WebInstallerOutput.php.
Definition at line 110 of file WebInstallerOutput.php.
Definition at line 277 of file WebInstallerOutput.php.
Definition at line 237 of file WebInstallerOutput.php.
Definition at line 304 of file WebInstallerOutput.php.
Definition at line 320 of file WebInstallerOutput.php.
WebInstallerOutput::redirect | ( | $ | url | ) |
string | $url |
MWException |
Definition at line 103 of file WebInstallerOutput.php.
WebInstallerOutput::useShortHeader | ( | $ | use = true | ) |
Definition at line 181 of file WebInstallerOutput.php.
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.
string WebInstallerOutput::$contents = '' [private] |
Buffered contents that haven't been output yet.
Definition at line 46 of file WebInstallerOutput.php.
bool WebInstallerOutput::$headerDone = false [private] |
Has the header (or short header) been output?
Definition at line 51 of file WebInstallerOutput.php.
WebInstaller WebInstallerOutput::$parent |
The WebInstaller object this WebInstallerOutput is used by.
Definition at line 41 of file WebInstallerOutput.php.
string WebInstallerOutput::$redirectTarget |
Definition at line 55 of file WebInstallerOutput.php.
bool WebInstallerOutput::$useShortHeader = false [private] |
Whether to use the limited header (used during CC license callbacks)
Definition at line 67 of file WebInstallerOutput.php.