MediaWiki  REL1_19
WebInstallerOutput Class Reference

Output class modelled on OutputPage. More...

List of all members.

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

 $allowFrames = false
 $parent
 $redirectTarget

Private Member Functions

 getCssUrl ()
 <link> to index.php?css=foobar for the <head>

Private Attributes

 $contents = ''
 $headerDone = false
 $useShortHeader = false

Detailed Description

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.

Since:
1.17

Definition at line 20 of file WebInstallerOutput.php.


Constructor & Destructor Documentation

Constructor.

Parameters:
$parentWebInstaller

Definition at line 61 of file WebInstallerOutput.php.

References $parent.


Member Function Documentation

Definition at line 65 of file WebInstallerOutput.php.

References flush().

Referenced by addWikiText().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 74 of file WebInstallerOutput.php.

Definition at line 70 of file WebInstallerOutput.php.

References addHTML().

Here is the call graph for this function:

WebInstallerOutput::allowFrames ( allow = true)

Definition at line 151 of file WebInstallerOutput.php.

Referenced by outputHeader().

Here is the caller graph for this function:

Definition at line 155 of file WebInstallerOutput.php.

References echo, headerDone(), and outputHeader().

Referenced by addHTML(), and output().

Here is the call graph for this function:

Here is the caller graph for this function:

Get the raw vector CSS, flipping if needed.

Parameters:
$dirString 'ltr' or 'rtl'
Returns:
String

Definition at line 95 of file WebInstallerOutput.php.

References $dir, CSSJanus\transform(), wfRestoreWarnings(), and wfSuppressWarnings().

Here is the call graph for this function:

<link> to index.php?css=foobar for the <head>

Returns:
String

Definition at line 143 of file WebInstallerOutput.php.

References getDir(), and Html\linkedStyle().

Referenced by outputHeader(), and outputShortHeader().

Here is the call graph for this function:

Here is the caller graph for this function:

Returns:
string

Definition at line 169 of file WebInstallerOutput.php.

References $wgLang.

Referenced by getCssUrl(), getHeadAttribs(), and outputHeader().

Here is the caller graph for this function:

Returns:
array

Definition at line 185 of file WebInstallerOutput.php.

References getDir(), and getLanguageCode().

Referenced by outputHeader(), and outputShortHeader().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 292 of file WebInstallerOutput.php.

References Html\linkedScript().

Referenced by outputHeader(), and outputShortHeader().

Here is the call graph for this function:

Here is the caller graph for this function:

Returns:
string

Definition at line 177 of file WebInstallerOutput.php.

References $wgLang.

Referenced by getHeadAttribs().

Here is the caller graph for this function:

Get whether the header has been output.

Returns:
bool

Definition at line 196 of file WebInstallerOutput.php.

Referenced by flush(), outputHeader(), and redirect().

Here is the caller graph for this function:

Definition at line 85 of file WebInstallerOutput.php.

References flush(), and outputFooter().

Here is the call graph for this function:

Definition at line 241 of file WebInstallerOutput.php.

References echo, useShortHeader(), and wfMsgNoTrans().

Referenced by output().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 271 of file WebInstallerOutput.php.

References echo, getCssUrl(), getHeadAttribs(), getJQuery(), Html\htmlHeader(), Html\linkedScript(), and outputTitle().

Referenced by outputHeader().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 287 of file WebInstallerOutput.php.

References $wgVersion, echo, and wfMsg().

Referenced by outputHeader(), and outputShortHeader().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 78 of file WebInstallerOutput.php.

References $url, and headerDone().

Here is the call graph for this function:

Definition at line 147 of file WebInstallerOutput.php.

Referenced by outputFooter(), and outputHeader().

Here is the caller graph for this function:


Member Data Documentation

WebInstallerOutput::$allowFrames = false

Definition at line 48 of file WebInstallerOutput.php.

WebInstallerOutput::$contents = '' [private]

Definition at line 32 of file WebInstallerOutput.php.

WebInstallerOutput::$headerDone = false [private]

Definition at line 38 of file WebInstallerOutput.php.

WebInstallerOutput::$parent

Definition at line 26 of file WebInstallerOutput.php.

Referenced by __construct().

WebInstallerOutput::$redirectTarget

Definition at line 40 of file WebInstallerOutput.php.

WebInstallerOutput::$useShortHeader = false [private]

Definition at line 54 of file WebInstallerOutput.php.


The documentation for this class was generated from the following file: