MediaWiki REL1_37
|
A simple, immutable structure to hold the title of a page on a foreign MediaWiki installation. More...
Public Member Functions | |
__construct ( $namespaceId, $namespaceName, $pageName) | |
Creates a new ForeignTitle object. | |
__toString () | |
Returns a string representation of the title, for logging. | |
getFullText () | |
getNamespaceId () | |
getNamespaceName () | |
getText () | |
isNamespaceIdKnown () | |
Do we know the namespace ID of the page on the foreign wiki? | |
Private Attributes | |
int null | $namespaceId |
Null if we don't know the namespace ID (e.g. | |
string | $namespaceName |
string | $pageName |
A simple, immutable structure to hold the title of a page on a foreign MediaWiki installation.
Definition at line 28 of file ForeignTitle.php.
ForeignTitle::__construct | ( | $namespaceId, | |
$namespaceName, | |||
$pageName | |||
) |
Creates a new ForeignTitle object.
int | null | $namespaceId | Null if the namespace ID is unknown (e.g. interwiki links) |
string | $namespaceName | |
string | $pageName |
Definition at line 47 of file ForeignTitle.php.
References $namespaceId.
ForeignTitle::__toString | ( | ) |
Returns a string representation of the title, for logging.
This is purely informative and must not be used programmatically. Use the appropriate ImportTitleFactory to generate the correct string representation for a given use.
Definition at line 106 of file ForeignTitle.php.
References isNamespaceIdKnown().
ForeignTitle::getFullText | ( | ) |
Definition at line 89 of file ForeignTitle.php.
Referenced by NaiveImportTitleFactory\createTitleFromForeignTitle(), and SubpageImportTitleFactory\createTitleFromForeignTitle().
ForeignTitle::getNamespaceId | ( | ) |
MWException | If isNamespaceIdKnown() is false, it does not make sense to call this function. |
Definition at line 70 of file ForeignTitle.php.
Referenced by NaiveImportTitleFactory\createTitleFromForeignTitle().
ForeignTitle::getNamespaceName | ( | ) |
Definition at line 79 of file ForeignTitle.php.
Referenced by NaiveImportTitleFactory\createTitleFromForeignTitle().
ForeignTitle::getText | ( | ) |
Definition at line 84 of file ForeignTitle.php.
Referenced by NaiveImportTitleFactory\createTitleFromForeignTitle(), and NamespaceImportTitleFactory\createTitleFromForeignTitle().
ForeignTitle::isNamespaceIdKnown | ( | ) |
Do we know the namespace ID of the page on the foreign wiki?
Definition at line 61 of file ForeignTitle.php.
Referenced by __toString(), and NaiveImportTitleFactory\createTitleFromForeignTitle().
|
private |
Null if we don't know the namespace ID (e.g.
interwiki links)
Definition at line 33 of file ForeignTitle.php.
Referenced by __construct().
|
private |
Definition at line 35 of file ForeignTitle.php.
|
private |
Definition at line 37 of file ForeignTitle.php.