MediaWiki
1.28.0
|
Helper tools for dealing with other 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. More... | |
static | getForeignURL ($wikiID, $page, $fragmentId=null) |
Convenience to get a url to a page on a foreign wiki. More... | |
static | getWiki ($wikiID) |
Get a WikiReference object for $wikiID. More... | |
static | getWikiName ($wikiID) |
Convenience to get the wiki's display name. More... | |
static | makeForeignLink ($wikiID, $page, $text=null) |
Convenience to get a link to a page on a foreign wiki. More... | |
Static Private Member Functions | |
static | getWikiReferenceFromWgConf ($wikiID) |
static | getWikiWikiReferenceFromSites ($wikiID) |
Helper tools for dealing with other wikis.
Definition at line 26 of file WikiMap.php.
|
static |
Convenience to get a link to a user page on a foreign wiki.
string | $wikiID | Wiki'd id (generally database name) |
string | $user | User name (must be normalised before calling this function!) |
string | $text | Link's text; optional, default to "User:$user" |
Definition at line 134 of file WikiMap.php.
Referenced by RightsLogFormatter\makePageLink(), and WikiMapTest\testForeignUserLink().
|
static |
Convenience to get a url to a page on a foreign wiki.
string | $wikiID | Wiki'd id (generally database name) |
string | $page | Page name (must be normalised before calling this function!) |
string | null | $fragmentId |
Definition at line 168 of file WikiMap.php.
References $page, and getWiki().
Referenced by Linker\makeCommentLink(), and WikiMapTest\testGetForeignURL().
|
static |
Get a WikiReference object for $wikiID.
string | $wikiID | Wiki'd id (generally database name) |
Definition at line 34 of file WikiMap.php.
Referenced by getForeignURL(), getWikiName(), and WikiMapTest\testGetWiki().
|
static |
Convenience to get the wiki's display name.
string | $wikiID | Wiki'd id (generally database name) |
Definition at line 117 of file WikiMap.php.
References getWiki().
Referenced by WikiMapTest\testGetWikiName().
|
staticprivate |
string | $wikiID |
Definition at line 48 of file WikiMap.php.
|
staticprivate |
string | $wikiID |
Definition at line 83 of file WikiMap.php.
References $path, and wfParseUrl().
|
static |
Convenience to get a link to a page on a foreign wiki.
string | $wikiID | Wiki'd id (generally database name) |
string | $page | Page name (must be normalised before calling this function!) |
string | $text | Link's text; optional, default to $page |
Definition at line 146 of file WikiMap.php.
References $page, and Linker\makeExternalLink().
Referenced by WikiMapTest\testMakeForeignLink().