|
MediaWiki master
|
A simple, immutable structure to hold the title of a page on a foreign MediaWiki installation. More...
Inherits Stringable.

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? | |
A simple, immutable structure to hold the title of a page on a foreign MediaWiki installation.
Definition at line 19 of file ForeignTitle.php.
| MediaWiki\Title\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 38 of file ForeignTitle.php.
| MediaWiki\Title\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 96 of file ForeignTitle.php.
References MediaWiki\Title\ForeignTitle\isNamespaceIdKnown().
| MediaWiki\Title\ForeignTitle::getFullText | ( | ) |
Definition at line 79 of file ForeignTitle.php.
Referenced by MediaWiki\Title\NaiveImportTitleFactory\createTitleFromForeignTitle(), and MediaWiki\Title\SubpageImportTitleFactory\createTitleFromForeignTitle().
| MediaWiki\Title\ForeignTitle::getNamespaceId | ( | ) |
Definition at line 60 of file ForeignTitle.php.
Referenced by MediaWiki\Title\NaiveImportTitleFactory\createTitleFromForeignTitle().
| MediaWiki\Title\ForeignTitle::getNamespaceName | ( | ) |
Definition at line 69 of file ForeignTitle.php.
Referenced by MediaWiki\Title\NaiveImportTitleFactory\createTitleFromForeignTitle().
| MediaWiki\Title\ForeignTitle::getText | ( | ) |
Definition at line 74 of file ForeignTitle.php.
Referenced by MediaWiki\Title\NaiveImportTitleFactory\createTitleFromForeignTitle(), and MediaWiki\Title\NamespaceImportTitleFactory\createTitleFromForeignTitle().
| MediaWiki\Title\ForeignTitle::isNamespaceIdKnown | ( | ) |
Do we know the namespace ID of the page on the foreign wiki?
Definition at line 52 of file ForeignTitle.php.
Referenced by MediaWiki\Title\ForeignTitle\__toString(), and MediaWiki\Title\NaiveImportTitleFactory\createTitleFromForeignTitle().