MediaWiki  1.28.0
ForeignTitleFactory Interface Reference

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

Inheritance diagram for ForeignTitleFactory:

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

Detailed Description

A parser that translates page titles into ForeignTitle objects.

Definition at line 25 of file ForeignTitleFactory.php.

Member Function Documentation

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.

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

Implemented in NamespaceAwareForeignTitleFactory, and NaiveForeignTitleFactory.


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