* @since 1.17
*/
class WebInstallerOutput {
+
/**
* The WebInstaller object this WebInstallerOutput is used by.
*
/**
* Buffered contents that haven't been output yet
- * @var String
+ * @var string
*/
private $contents = '';
*/
private $headerDone = false;
+ /**
+ * @var string
+ */
public $redirectTarget;
/**
private $useShortHeader = false;
/**
- * Constructor.
- *
- * @param $parent WebInstaller
+ * @param WebInstaller $parent
*/
public function __construct( WebInstaller $parent ) {
$this->parent = $parent;
}
+ /**
+ * @param string $html
+ */
public function addHTML( $html ) {
$this->contents .= $html;
$this->flush();
}
+ /**
+ * @param string $text
+ */
public function addWikiText( $text ) {
$this->addHTML( $this->parent->parse( $text ) );
}
+ /**
+ * @param string $html
+ */
public function addHTMLNoFlush( $html ) {
$this->contents .= $html;
}
+ /**
+ * @param string $url
+ *
+ * @throws MWException
+ */
public function redirect( $url ) {
if ( $this->headerDone ) {
throw new MWException( __METHOD__ . ' called after sending headers' );
* and not properly handling such details as media types in module definitions.
*
* @param string $dir 'ltr' or 'rtl'
- * @return String
+ *
+ * @return string
*/
public function getCSS( $dir ) {
// All CSS files these modules reference will be concatenated in sequence
/**
* "<link>" to index.php?css=foobar for the "<head>"
- * @return String
+ *
+ * @return string
*/
private function getCssUrl() {
return Html::linkedStyle( $_SERVER['PHP_SELF'] . '?css=' . $this->getDir() );
}
/**
- * @return array
+ * @return string[]
*/
public function getHeadAttribs() {
return array(
/**
* Get whether the header has been output
+ *
* @return bool
*/
public function headerDone() {
<div id="mw-panel">
<div class="portal" id="p-logo">
<a style="background-image: url(../skins/common/images/mediawiki.png);"
- href="http://www.mediawiki.org/"
+ href="https://www.mediawiki.org/"
title="Main Page"></a>
</div>
<div class="portal"><div class="body">
echo wfMessage( 'config-title', $wgVersion )->escaped();
}
+ /**
+ * @return string
+ */
public function getJQuery() {
- return Html::linkedScript( "../resources/jquery/jquery.js" );
+ return Html::linkedScript( "../resources/lib/jquery/jquery.js" );
}
+
}