MediaWiki REL1_28
|
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. | |
static | getForeignURL ( $wikiID, $page, $fragmentId=null) |
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. | |
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.
References makeForeignLink().
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(), makeForeignLink(), 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.
References getWikiReferenceFromWgConf(), and getWikiWikiReferenceFromSites().
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.
References $path, $wgConf, global, and list.
Referenced by getWiki().
|
staticprivate |
string | $wikiID |
Definition at line 83 of file WikiMap.php.
References $path, and wfParseUrl().
Referenced by getWiki().
|
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, getForeignURL(), and Linker\makeExternalLink().
Referenced by foreignUserLink(), and WikiMapTest\testMakeForeignLink().