MediaWiki
REL1_19
|
Helper tools for dealing with other locally-hosted wikis. More...
Static Public Member Functions | |
static | foreignUserLink ($wikiID, $user, $text=null) |
Convenience to get a link to a user page on a foreign wiki. | |
static | getForeignURL ($wikiID, $page) |
Convenience to get a url to a page on a foreign wiki. | |
static | getWiki ($wikiID) |
Get a WikiReference object for $wikiID. | |
static | getWikiName ($wikiID) |
Convenience to get the wiki's display name. | |
static | makeForeignLink ($wikiID, $page, $text=null) |
Convenience to get a link to a page on a foreign wiki. |
Helper tools for dealing with other locally-hosted wikis.
Definition at line 6 of file WikiMap.php.
static WikiMap::foreignUserLink | ( | $ | wikiID, |
$ | user, | ||
$ | text = null |
||
) | [static] |
Convenience to get a link to a user page on a foreign wiki.
$wikiID | String: wiki'd id (generally database name) |
$user | String: user name (must be normalised before calling this function!) |
$text | String: link's text; optional, default to "User:$user" |
Definition at line 56 of file WikiMap.php.
References makeForeignLink().
Referenced by LogPage\getTitleLink().
static WikiMap::getForeignURL | ( | $ | wikiID, |
$ | page | ||
) | [static] |
Convenience to get a url to a page on a foreign wiki.
$wikiID | String: wiki'd id (generally database name) |
$page | String: page name (must be normalised before calling this function!) |
Definition at line 88 of file WikiMap.php.
References $page, and getWiki().
Referenced by makeForeignLink().
static WikiMap::getWiki | ( | $ | wikiID | ) | [static] |
Get a WikiReference object for $wikiID.
$wikiID | String: wiki'd id (generally database name) |
Definition at line 14 of file WikiMap.php.
References $path.
Referenced by getForeignURL(), and getWikiName().
static WikiMap::getWikiName | ( | $ | wikiID | ) | [static] |
Convenience to get the wiki's display name.
$wikiID | String: wiki'd id (generally database name) |
Definition at line 39 of file WikiMap.php.
References getWiki().
static WikiMap::makeForeignLink | ( | $ | wikiID, |
$ | page, | ||
$ | text = null |
||
) | [static] |
Convenience to get a link to a page on a foreign wiki.
$wikiID | String: wiki'd id (generally database name) |
$page | String: page name (must be normalised before calling this function!) |
$text | String: link's text; optional, default to $page |
Definition at line 68 of file WikiMap.php.
References $page, $url, getForeignURL(), and Linker\makeExternalLink().
Referenced by foreignUserLink().