MediaWiki REL1_40
|
Reference to a locally-hosted wiki. More...
Public Member Functions | |
__construct ( $canonicalServer, $path, $server=null) | |
getCanonicalServer () | |
Get a canonical server URL. | |
getCanonicalUrl ( $page, $fragmentId=null) | |
Get a canonical (i.e. | |
getDisplayName () | |
Get the URL in a way to be displayed to the user More or less Wikimedia specific. | |
getFullUrl ( $page, $fragmentId=null) | |
Get a URL based on $wgServer, like Title::getFullURL() would produce when called locally on the wiki. | |
getUrl ( $page, $fragmentId=null) | |
Alias for getCanonicalUrl(), for backwards compatibility. | |
Reference to a locally-hosted wiki.
Definition at line 28 of file WikiReference.php.
MediaWiki\WikiMap\WikiReference::__construct | ( | $canonicalServer, | |
$path, | |||
$server = null ) |
string | $canonicalServer | |
string | $path | |
null | string | $server |
Definition at line 38 of file WikiReference.php.
References $path.
MediaWiki\WikiMap\WikiReference::getCanonicalServer | ( | ) |
MediaWiki\WikiMap\WikiReference::getCanonicalUrl | ( | $page, | |
$fragmentId = null ) |
Get a canonical (i.e.
based on $wgCanonicalServer) URL to a page on this foreign wiki
string | $page | Page name (must be normalised before calling this function!) |
string | null | $fragmentId |
Definition at line 90 of file WikiReference.php.
Referenced by MediaWiki\WikiMap\WikiReference\getUrl().
MediaWiki\WikiMap\WikiReference::getDisplayName | ( | ) |
Get the URL in a way to be displayed to the user More or less Wikimedia specific.
Definition at line 50 of file WikiReference.php.
References wfParseUrl().
MediaWiki\WikiMap\WikiReference::getFullUrl | ( | $page, | |
$fragmentId = null ) |
Get a URL based on $wgServer, like Title::getFullURL() would produce when called locally on the wiki.
string | $page | Page name (must be normalized before calling this function!) |
string | null | $fragmentId |
Definition at line 122 of file WikiReference.php.
MediaWiki\WikiMap\WikiReference::getUrl | ( | $page, | |
$fragmentId = null ) |
Alias for getCanonicalUrl(), for backwards compatibility.
string | $page | |
string | null | $fragmentId |
Definition at line 109 of file WikiReference.php.
References MediaWiki\WikiMap\WikiReference\getCanonicalUrl().