SpecialVersion Class Reference
[SpecialPage]

Give information about the version of MediaWiki, PHP, the DB and extensions. More...

Inherits SpecialPage.

List of all members.

Public Member Functions

 __construct ()
 execute ($par)
 main()
 extensionCredits ()
 Generate wikitext showing extensions name, URL, author and description.
 compare ($a, $b)
 Callback to sort extensions by type.
 formatCredits ($name, $version=null, $author=null, $url=null, $description=null, $descriptionMsg=null)
 wgHooks ()
 IPInfo ()
 listToText ($list)

Static Public Member Functions

static MediaWikiCredits ()
 #@+
static softwareInformation ()
static getVersion ()
 Return a string of the MediaWiki version with SVN revision if available.
static getVersionLinked ()
 Return a string of the MediaWiki version with a link to SVN revision if available.
static arrayToString ($list)
static getSvnRevision ($dir)
 Retrieve the revision number of a Subversion working directory.

Private Member Functions

 openExtType ($text, $name=null)

Private Attributes

 $firstExtOpened = true


Detailed Description

Give information about the version of MediaWiki, PHP, the DB and extensions.

Author:
Ævar Arnfjörð Bjarmason <avarab@gmail.com> Copyright © 2005, Ævar Arnfjörð Bjarmason http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later

Definition at line 12 of file SpecialVersion.php.


Constructor & Destructor Documentation

SpecialVersion::__construct (  ) 

Definition at line 15 of file SpecialVersion.php.


Member Function Documentation

static SpecialVersion::arrayToString ( list  )  [static]

Parameters:
mixed $list Will convert an array to string if given and return the paramater unaltered otherwise
Returns:
mixed

Definition at line 323 of file SpecialVersion.php.

Referenced by listToText().

SpecialVersion::compare ( a,
b 
)

Callback to sort extensions by type.

Definition at line 215 of file SpecialVersion.php.

References $wgLang.

SpecialVersion::execute ( par  ) 

SpecialVersion::extensionCredits (  ) 

Generate wikitext showing extensions name, URL, author and description.

Definition at line 135 of file SpecialVersion.php.

References $i, $out, $text, $type, $version, $wgExtensionCredits, $wgExtensionFunctions, $wgParser, $wgSkinExtensionFunctions, Xml::closeElement(), Xml::element(), formatCredits(), listToText(), Xml::openElement(), openExtType(), wfMsg(), and wfRunHooks().

Referenced by execute().

SpecialVersion::formatCredits ( name,
version = null,
author = null,
url = null,
description = null,
descriptionMsg = null 
)

Definition at line 226 of file SpecialVersion.php.

References $msg, $name, $url, $version, listToText(), wfEmptyMsg(), and wfMsg().

Referenced by extensionCredits().

static SpecialVersion::getSvnRevision ( dir  )  [static]

Retrieve the revision number of a Subversion working directory.

Parameters:
string $dir
Returns:
mixed revision number as int, or false if not a SVN checkout

Definition at line 346 of file SpecialVersion.php.

References SpecialPage::file(), wfRestoreWarnings(), and wfSuppressWarnings().

Referenced by getVersion(), and getVersionLinked().

static SpecialVersion::getVersion (  )  [static]

Return a string of the MediaWiki version with SVN revision if available.

Returns:
mixed

Definition at line 109 of file SpecialVersion.php.

References $IP, $version, $wgVersion, getSvnRevision(), wfProfileIn(), and wfProfileOut().

Referenced by Parser::getVariableValue(), wikiStatsOutput::heading(), and DbTestRecorder::start().

static SpecialVersion::getVersionLinked (  )  [static]

Return a string of the MediaWiki version with a link to SVN revision if available.

Returns:
mixed

Definition at line 124 of file SpecialVersion.php.

References $IP, $version, $wgVersion, getSvnRevision(), wfProfileIn(), and wfProfileOut().

Referenced by softwareInformation().

SpecialVersion::IPInfo (  ) 

Returns:
string

Definition at line 293 of file SpecialVersion.php.

References wfGetIP().

Referenced by execute().

SpecialVersion::listToText ( list  ) 

Parameters:
array $list
Returns:
string

Definition at line 303 of file SpecialVersion.php.

References $wgLang, arrayToString(), and sort.

Referenced by extensionCredits(), formatCredits(), and wgHooks().

static SpecialVersion::MediaWikiCredits (  )  [static]

#@+

Access:
private
Returns:
wiki text showing the license information

Definition at line 49 of file SpecialVersion.php.

References Xml::element(), and wfMsg().

Referenced by execute().

SpecialVersion::openExtType ( text,
name = null 
) [private]

Definition at line 274 of file SpecialVersion.php.

References $name, $out, $text, and Xml::element().

Referenced by extensionCredits().

static SpecialVersion::softwareInformation (  )  [static]

Returns:
wiki text showing the third party software versions (apache, php, mysql).

Definition at line 80 of file SpecialVersion.php.

References $dbr, Xml::closeElement(), Xml::element(), getVersionLinked(), Xml::openElement(), wfGetDB(), and wfMsg().

Referenced by execute().

SpecialVersion::wgHooks (  ) 

Returns:
string

Definition at line 248 of file SpecialVersion.php.

References $wgHooks, Xml::closeElement(), Xml::element(), listToText(), Xml::openElement(), and wfMsg().

Referenced by execute().


Member Data Documentation

SpecialVersion::$firstExtOpened = true [private]

Definition at line 13 of file SpecialVersion.php.


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

Generated on Sat Sep 5 02:08:47 2009 for MediaWiki by  doxygen 1.5.9