|
MediaWiki REL1_39
|
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. | |
| getHeadAttribs () | |
| getJQuery () | |
| 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 |
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 40 of file WebInstallerOutput.php.
| WebInstallerOutput::__construct | ( | WebInstaller | $parent | ) |
| WebInstaller | $parent |
Definition at line 83 of file WebInstallerOutput.php.
References $parent.
| WebInstallerOutput::addHTML | ( | $html | ) |
| string | $html |
Definition at line 90 of file WebInstallerOutput.php.
References flush().
Referenced by addWikiTextAsInterface().
| WebInstallerOutput::addHTMLNoFlush | ( | $html | ) |
| string | $html |
Definition at line 106 of file WebInstallerOutput.php.
| WebInstallerOutput::addWikiTextAsInterface | ( | $text | ) |
| string | $text |
Definition at line 99 of file WebInstallerOutput.php.
References addHTML().
| WebInstallerOutput::allowFrames | ( | $allow = true | ) |
Definition at line 178 of file WebInstallerOutput.php.
References allowFrames().
Referenced by allowFrames(), and outputHeader().
| WebInstallerOutput::flush | ( | ) |
Definition at line 182 of file WebInstallerOutput.php.
References flush(), headerDone(), and outputHeader().
| WebInstallerOutput::getCSS | ( | ) |
Get the stylesheet of the MediaWiki skin.
Definition at line 135 of file WebInstallerOutput.php.
| WebInstallerOutput::getHeadAttribs | ( | ) |
Definition at line 207 of file WebInstallerOutput.php.
Referenced by outputHeader(), and outputShortHeader().
| WebInstallerOutput::getJQuery | ( | ) |
Definition at line 332 of file WebInstallerOutput.php.
Referenced by outputHeader(), and outputShortHeader().
| WebInstallerOutput::headerDone | ( | ) |
Get whether the header has been output.
Definition at line 219 of file WebInstallerOutput.php.
Referenced by flush(), outputHeader(), and redirect().
| WebInstallerOutput::output | ( | ) |
Definition at line 122 of file WebInstallerOutput.php.
References flush(), and outputFooter().
| WebInstallerOutput::outputFooter | ( | ) |
Definition at line 265 of file WebInstallerOutput.php.
References useShortHeader(), and wfMessage().
Referenced by output().
| WebInstallerOutput::outputHeader | ( | ) |
Definition at line 223 of file WebInstallerOutput.php.
References allowFrames(), getHeadAttribs(), getJQuery(), headerDone(), outputShortHeader(), outputTitle(), and useShortHeader().
Referenced by flush().
| WebInstallerOutput::outputShortHeader | ( | ) |
Definition at line 308 of file WebInstallerOutput.php.
References getHeadAttribs(), getJQuery(), and outputTitle().
Referenced by outputHeader().
| WebInstallerOutput::outputTitle | ( | ) |
Definition at line 325 of file WebInstallerOutput.php.
References MW_VERSION, and wfMessage().
Referenced by outputHeader(), and outputShortHeader().
| WebInstallerOutput::redirect | ( | $url | ) |
| string | $url |
| MWException |
Definition at line 115 of file WebInstallerOutput.php.
References headerDone().
| WebInstallerOutput::useShortHeader | ( | $use = true | ) |
Definition at line 174 of file WebInstallerOutput.php.
References useShortHeader().
Referenced by outputFooter(), outputHeader(), and useShortHeader().
| 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 72 of file WebInstallerOutput.php.
| WebInstaller WebInstallerOutput::$parent |
The WebInstaller object this WebInstallerOutput is used by.
Definition at line 47 of file WebInstallerOutput.php.
Referenced by __construct().
| string WebInstallerOutput::$redirectTarget |
Definition at line 64 of file WebInstallerOutput.php.