MediaWiki master
|
An interwiki record value object. More...
Public Member Functions | |
__construct ( $prefix=null, $url='', $api='', $wikiId='', $local=0, $trans=0) | |
getAPI () | |
Get the API URL for this wiki. | |
getDescription () | |
Get a description for this interwiki. | |
getName () | |
Get the name for the interwiki site. | |
getURL ( $title=null) | |
Get the URL for a particular title (or with $1 if no title given) | |
getWikiID () | |
Get the DB name for this wiki. | |
isLocal () | |
Is this a local link from a sister project, or is it something outside, like Google. | |
isTranscludable () | |
Can pages from this wiki be transcluded? Still requires $wgEnableScaryTransclusion. | |
Protected Attributes | |
string | $mAPI |
The URL to the api.php entry point of the wiki. | |
bool | $mLocal |
Whether the wiki is in this project. | |
string | $mPrefix |
The interwiki prefix, (e.g. | |
bool | $mTrans |
Whether interwiki transclusions are allowed. | |
string | $mURL |
The article path URL of the wiki, with "$1" as a placeholder for an article name. | |
string | $mWikiID |
The name of the database (for a connection to be established with LBFactory::getMainLB( 'domainId' )) | |
An interwiki record value object.
By default, these represent a row in the interwiki
database table. See \MediaWiki\Interwiki\ClassicInterwikiLookup for where this is used.
Definition at line 27 of file Interwiki.php.
Interwiki::__construct | ( | $prefix = null, | |
$url = '', | |||
$api = '', | |||
$wikiId = '', | |||
$local = 0, | |||
$trans = 0 ) |
Definition at line 49 of file Interwiki.php.
References $url.
Interwiki::getAPI | ( | ) |
Get the API URL for this wiki.
Definition at line 83 of file Interwiki.php.
References $mAPI.
Interwiki::getDescription | ( | ) |
Get a description for this interwiki.
Definition at line 132 of file Interwiki.php.
References wfMessage().
Interwiki::getName | ( | ) |
Get the name for the interwiki site.
Definition at line 121 of file Interwiki.php.
References wfMessage().
Interwiki::getURL | ( | $title = null | ) |
Get the URL for a particular title (or with $1 if no title given)
string | null | $title | What text to put for the article name |
Definition at line 69 of file Interwiki.php.
References $mURL, $url, and wfUrlencode().
Interwiki::getWikiID | ( | ) |
Get the DB name for this wiki.
Definition at line 92 of file Interwiki.php.
References $mWikiID.
Interwiki::isLocal | ( | ) |
Is this a local link from a sister project, or is it something outside, like Google.
Definition at line 102 of file Interwiki.php.
References $mLocal.
Interwiki::isTranscludable | ( | ) |
Can pages from this wiki be transcluded? Still requires $wgEnableScaryTransclusion.
Definition at line 112 of file Interwiki.php.
References $mTrans.
|
protected |
The URL to the api.php entry point of the wiki.
Definition at line 36 of file Interwiki.php.
Referenced by getAPI().
|
protected |
Whether the wiki is in this project.
Definition at line 44 of file Interwiki.php.
Referenced by isLocal().
|
protected |
The interwiki prefix, (e.g.
"Meatball", or the language prefix "de")
Definition at line 30 of file Interwiki.php.
|
protected |
Whether interwiki transclusions are allowed.
Definition at line 47 of file Interwiki.php.
Referenced by isTranscludable().
|
protected |
The article path URL of the wiki, with "$1" as a placeholder for an article name.
Definition at line 33 of file Interwiki.php.
Referenced by getURL().
|
protected |
The name of the database (for a connection to be established with LBFactory::getMainLB( 'domainId' ))
Definition at line 41 of file Interwiki.php.
Referenced by getWikiID().