MediaWiki
REL1_19
|
Reference to a locally-hosted wiki. More...
Public Member Functions | |
__construct ($major, $minor, $canonicalServer, $path, $server=null) | |
getCanonicalUrl ($page) | |
Get a canonical (i.e. | |
getDisplayName () | |
Get the the URL in a way to de displayed to the user More or less Wikimedia specific. | |
getFullUrl ($page) | |
Get a URL based on $wgServer, like Title::getFullUrl() would produce when called locally on the wiki. | |
getHostname () | |
getUrl ($page) | |
Alias for getCanonicalUrl(), for backwards compatibility. | |
Private Member Functions | |
getLocalUrl ($page) | |
Helper function for getUrl() | |
Private Attributes | |
$mCanonicalServer | |
canonical server URL, e.g. 'http://www.mediawiki.org' | |
$mMajor | |
'wiki', 'wiktionary', etc | |
$mMinor | |
'en', 'meta', 'mediawiki', etc | |
$mPath | |
path, '/wiki/$1' | |
$mServer | |
server URL, may be protocol-relative, e.g. '//www.mediawiki.org' |
Reference to a locally-hosted wiki.
Definition at line 102 of file WikiMap.php.
WikiReference::__construct | ( | $ | major, |
$ | minor, | ||
$ | canonicalServer, | ||
$ | path, | ||
$ | server = null |
||
) |
Definition at line 109 of file WikiMap.php.
References $path.
WikiReference::getCanonicalUrl | ( | $ | page | ) |
Get a canonical (i.e.
based on $wgCanonicalServer) URL to a page on this foreign wiki
$page | String: page name (must be normalised before calling this function!) |
Definition at line 165 of file WikiMap.php.
References $page, and getLocalUrl().
Referenced by getUrl().
Get the the URL in a way to de displayed to the user More or less Wikimedia specific.
Definition at line 137 of file WikiMap.php.
References $url, getUrl(), and wfParseUrl().
WikiReference::getFullUrl | ( | $ | page | ) |
Get a URL based on $wgServer, like Title::getFullUrl() would produce when called locally on the wiki.
$page | String: page name (must be normalized before calling this function!) |
Definition at line 184 of file WikiMap.php.
References $page, and getLocalUrl().
WikiReference::getLocalUrl | ( | $ | page | ) | [private] |
Helper function for getUrl()
$page | String: page name (must be normalised before calling this function!) |
Definition at line 155 of file WikiMap.php.
References $page.
Referenced by getCanonicalUrl(), and getFullUrl().
WikiReference::getUrl | ( | $ | page | ) |
Alias for getCanonicalUrl(), for backwards compatibility.
Definition at line 173 of file WikiMap.php.
References $page, and getCanonicalUrl().
Referenced by getDisplayName().
WikiReference::$mCanonicalServer [private] |
canonical server URL, e.g. 'http://www.mediawiki.org'
Definition at line 105 of file WikiMap.php.
WikiReference::$mMajor [private] |
'wiki', 'wiktionary', etc
Definition at line 104 of file WikiMap.php.
WikiReference::$mMinor [private] |
'en', 'meta', 'mediawiki', etc
Definition at line 103 of file WikiMap.php.
WikiReference::$mPath [private] |
path, '/wiki/$1'
Definition at line 107 of file WikiMap.php.
WikiReference::$mServer [private] |
server URL, may be protocol-relative, e.g. '//www.mediawiki.org'
Definition at line 106 of file WikiMap.php.