MediaWiki
1.30.2
|
A parser that translates page titles into ForeignTitle objects. More...
Public Member Functions | |
createForeignTitle ( $title, $ns=null) | |
Creates a ForeignTitle object based on the page title, and optionally the namespace ID, of a page on a foreign wiki. More... | |
A parser that translates page titles into ForeignTitle objects.
Definition at line 25 of file ForeignTitleFactory.php.
ForeignTitleFactory::createForeignTitle | ( | $title, | |
$ns = null |
|||
) |
Creates a ForeignTitle object based on the page title, and optionally the namespace ID, of a page on a foreign wiki.
These values could be, for example, the <title> and <ns> attributes found in an XML dump.
string | $title | The page title |
int | null | $ns | The namespace ID, or null if this data is not available |
Implemented in NamespaceAwareForeignTitleFactory, and NaiveForeignTitleFactory.