|
MediaWiki master
|
Output class modelled on OutputPage. More...

Public Member Functions | |
| __construct (WebInstaller $parent) | |
| addHTML ( $html) | |
| addHTMLNoFlush ( $html) | |
| addWikiTextAsInterface ( $text) | |
| flush () | |
| getCodex () | |
| getCSPNonce () | |
| Get the nonce for use with inline scripts. | |
| getCSS () | |
| Get the stylesheet of the MediaWiki skin. | |
| getHeadAttribs () | |
| getJQuery () | |
| headerDone () | |
| Get whether the header has been output. | |
| output () | |
| outputFooter () | |
| outputHeader () | |
| outputTitle () | |
| redirect ( $url) | |
Public Attributes | |
| 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 31 of file WebInstallerOutput.php.
| MediaWiki\Installer\WebInstallerOutput::__construct | ( | WebInstaller | $parent | ) |
Definition at line 57 of file WebInstallerOutput.php.
References MediaWiki\Installer\WebInstallerOutput\$parent.
| MediaWiki\Installer\WebInstallerOutput::addHTML | ( | $html | ) |
| string | $html |
Definition at line 64 of file WebInstallerOutput.php.
References MediaWiki\Installer\WebInstallerOutput\flush().
Referenced by MediaWiki\Installer\WebInstallerOutput\addWikiTextAsInterface().
| MediaWiki\Installer\WebInstallerOutput::addHTMLNoFlush | ( | $html | ) |
| string | $html |
Definition at line 80 of file WebInstallerOutput.php.
| MediaWiki\Installer\WebInstallerOutput::addWikiTextAsInterface | ( | $text | ) |
| string | $text |
Definition at line 73 of file WebInstallerOutput.php.
References MediaWiki\Installer\WebInstallerOutput\addHTML().
| MediaWiki\Installer\WebInstallerOutput::flush | ( | ) |
Definition at line 146 of file WebInstallerOutput.php.
References MediaWiki\Installer\WebInstallerOutput\flush(), MediaWiki\Installer\WebInstallerOutput\headerDone(), and MediaWiki\Installer\WebInstallerOutput\outputHeader().
Referenced by MediaWiki\Installer\WebInstallerOutput\addHTML(), MediaWiki\Installer\WebInstallerOutput\flush(), and MediaWiki\Installer\WebInstallerOutput\output().
| MediaWiki\Installer\WebInstallerOutput::getCodex | ( | ) |
Definition at line 280 of file WebInstallerOutput.php.
Referenced by MediaWiki\Installer\WebInstallerOutput\outputHeader().
| MediaWiki\Installer\WebInstallerOutput::getCSPNonce | ( | ) |
Get the nonce for use with inline scripts.
Definition at line 290 of file WebInstallerOutput.php.
Referenced by MediaWiki\Installer\WebInstallerOutput\outputHeader().
| MediaWiki\Installer\WebInstallerOutput::getCSS | ( | ) |
Get the stylesheet of the MediaWiki skin.
Definition at line 107 of file WebInstallerOutput.php.
References MediaWiki\MediaWikiServices\getInstance().
| MediaWiki\Installer\WebInstallerOutput::getHeadAttribs | ( | ) |
Definition at line 171 of file WebInstallerOutput.php.
Referenced by MediaWiki\Installer\WebInstallerOutput\outputHeader().
| MediaWiki\Installer\WebInstallerOutput::getJQuery | ( | ) |
Definition at line 273 of file WebInstallerOutput.php.
Referenced by MediaWiki\Installer\WebInstallerOutput\outputHeader().
| MediaWiki\Installer\WebInstallerOutput::headerDone | ( | ) |
Get whether the header has been output.
Definition at line 183 of file WebInstallerOutput.php.
Referenced by MediaWiki\Installer\WebInstallerOutput\flush(), MediaWiki\Installer\WebInstallerOutput\outputHeader(), and MediaWiki\Installer\WebInstallerOutput\redirect().
| MediaWiki\Installer\WebInstallerOutput::output | ( | ) |
Definition at line 94 of file WebInstallerOutput.php.
References MediaWiki\Installer\WebInstallerOutput\flush(), and MediaWiki\Installer\WebInstallerOutput\outputFooter().
| MediaWiki\Installer\WebInstallerOutput::outputFooter | ( | ) |
Definition at line 226 of file WebInstallerOutput.php.
References wfMessage().
Referenced by MediaWiki\Installer\WebInstallerOutput\output().
| MediaWiki\Installer\WebInstallerOutput::outputHeader | ( | ) |
Definition at line 187 of file WebInstallerOutput.php.
References MediaWiki\Installer\WebInstallerOutput\getCodex(), MediaWiki\Installer\WebInstallerOutput\getCSPNonce(), MediaWiki\Installer\WebInstallerOutput\getHeadAttribs(), MediaWiki\Installer\WebInstallerOutput\getJQuery(), MediaWiki\Installer\WebInstallerOutput\headerDone(), and MediaWiki\Installer\WebInstallerOutput\outputTitle().
Referenced by MediaWiki\Installer\WebInstallerOutput\flush().
| MediaWiki\Installer\WebInstallerOutput::outputTitle | ( | ) |
Definition at line 266 of file WebInstallerOutput.php.
References MW_VERSION, and wfMessage().
Referenced by MediaWiki\Installer\WebInstallerOutput\outputHeader().
| MediaWiki\Installer\WebInstallerOutput::redirect | ( | $url | ) |
| string | $url |
Definition at line 87 of file WebInstallerOutput.php.
References $url, and MediaWiki\Installer\WebInstallerOutput\headerDone().
| WebInstaller MediaWiki\Installer\WebInstallerOutput::$parent |
The WebInstaller object this WebInstallerOutput is used by.
Definition at line 38 of file WebInstallerOutput.php.
Referenced by MediaWiki\Installer\WebInstallerOutput\__construct().
| string MediaWiki\Installer\WebInstallerOutput::$redirectTarget |
Definition at line 55 of file WebInstallerOutput.php.