MediaWiki REL1_40
ForeignTitleFactory Interface Reference

A parser that translates page titles into ForeignTitle objects. More...

Inherited by NaiveForeignTitleFactory, and NamespaceAwareForeignTitleFactory.

Public Member Functions

 createForeignTitle ( $title, $ns=null)
 Create a ForeignTitle object.
 

Detailed Description

A parser that translates page titles into ForeignTitle objects.

Definition at line 24 of file ForeignTitleFactory.php.

Member Function Documentation

◆ createForeignTitle()

ForeignTitleFactory::createForeignTitle ( $title,
$ns = null )

Create 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.

Parameters
string$titleThe page title
int | null$nsThe namespace ID, or null if this data is not available
Returns
ForeignTitle

Implemented in NaiveForeignTitleFactory, and NamespaceAwareForeignTitleFactory.


The documentation for this interface was generated from the following file: