MediaWiki
REL1_20
|
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 | |
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. | |
$redirectTarget | |
Private Member Functions | |
getCssUrl () | |
"<link>" to index.php?css=foobar 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 | ) |
WebInstallerOutput::addHTML | ( | $ | html | ) |
Definition at line 75 of file WebInstallerOutput.php.
Referenced by addHTMLNoFlush().
WebInstallerOutput::addHTMLNoFlush | ( | $ | html | ) |
Definition at line 84 of file WebInstallerOutput.php.
References addHTML().
WebInstallerOutput::addWikiText | ( | $ | text | ) |
Definition at line 80 of file WebInstallerOutput.php.
References flush().
WebInstallerOutput::allowFrames | ( | $ | allow = true | ) |
Definition at line 163 of file WebInstallerOutput.php.
References useShortHeader().
Referenced by flush().
Definition at line 167 of file WebInstallerOutput.php.
References allowFrames().
Referenced by addWikiText().
WebInstallerOutput::getCSS | ( | $ | dir | ) |
Get the raw vector CSS, flipping if needed.
$dir | String 'ltr' or 'rtl' |
Definition at line 105 of file WebInstallerOutput.php.
WebInstallerOutput::getCssUrl | ( | ) | [private] |
"<link>" to index.php?css=foobar for the "<head>"
Definition at line 155 of file WebInstallerOutput.php.
References getDir(), and Html\linkedStyle().
Definition at line 197 of file WebInstallerOutput.php.
Definition at line 303 of file WebInstallerOutput.php.
References echo, and wfMessage().
Definition at line 189 of file WebInstallerOutput.php.
Get whether the header has been output.
Definition at line 208 of file WebInstallerOutput.php.
Definition at line 95 of file WebInstallerOutput.php.
Definition at line 252 of file WebInstallerOutput.php.
Definition at line 212 of file WebInstallerOutput.php.
Definition at line 282 of file WebInstallerOutput.php.
Definition at line 298 of file WebInstallerOutput.php.
WebInstallerOutput::redirect | ( | $ | url | ) |
Definition at line 88 of file WebInstallerOutput.php.
WebInstallerOutput::useShortHeader | ( | $ | use = true | ) |
Definition at line 159 of file WebInstallerOutput.php.
Referenced by 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 59 of file WebInstallerOutput.php.
String WebInstallerOutput::$contents = '' [private] |
Buffered contents that haven't been output yet.
Definition at line 45 of file WebInstallerOutput.php.
bool WebInstallerOutput::$headerDone = false [private] |
Has the header (or short header) been output?
Definition at line 50 of file WebInstallerOutput.php.
WebInstaller WebInstallerOutput::$parent |
The WebInstaller object this WebInstallerOutput is used by.
Definition at line 40 of file WebInstallerOutput.php.
WebInstallerOutput::$redirectTarget |
Definition at line 52 of file WebInstallerOutput.php.
bool WebInstallerOutput::$useShortHeader = false [private] |
Whether to use the limited header (used during CC license callbacks)
Definition at line 64 of file WebInstallerOutput.php.