Public Member Functions | |
__construct ($major, $minor, $server, $path) | |
getHostname () | |
getDisplayName () | |
Get the the URL in a way to de displayed to the user More or less Wikimedia specific. | |
getUrl ($page) | |
Get a URL to a page on this foreign wiki. | |
Private Member Functions | |
getLocalUrl ($page) | |
Helper function for getUrl(). | |
Private Attributes | |
$mMinor | |
'en', 'meta', 'mediawiki', etc | |
$mMajor | |
'wiki', 'wiktionary', etc | |
$mServer | |
server override, 'www.mediawiki.org' | |
$mPath | |
path override, '/wiki/$1' |
Definition at line 101 of file WikiMap.php.
WikiReference::__construct | ( | $ | major, | |
$ | minor, | |||
$ | server, | |||
$ | path | |||
) |
WikiReference::getDisplayName | ( | ) |
Get the the URL in a way to de displayed to the user More or less Wikimedia specific.
Definition at line 130 of file WikiMap.php.
WikiReference::getHostname | ( | ) |
Definition at line 114 of file WikiMap.php.
WikiReference::getLocalUrl | ( | $ | page | ) | [private] |
WikiReference::getUrl | ( | $ | page | ) |
Get a URL to a page on this foreign wiki.
$page | String: page name (must be normalised before calling this function!) |
Definition at line 156 of file WikiMap.php.
References $page, and getLocalUrl().
Referenced by getDisplayName().
WikiReference::$mMajor [private] |
WikiReference::$mMinor [private] |
WikiReference::$mPath [private] |
WikiReference::$mServer [private] |