MediaWiki  master
ImportTitleFactory Interface Reference

Represents an object that can convert page titles on a foreign wiki (ForeignTitle objects) into page titles on the local wiki (Title objects). More...

Inheritance diagram for ImportTitleFactory:

Public Member Functions

 createTitleFromForeignTitle (ForeignTitle $foreignTitle)
 Determines which local title best corresponds to the given foreign title. More...
 

Detailed Description

Represents an object that can convert page titles on a foreign wiki (ForeignTitle objects) into page titles on the local wiki (Title objects).

Definition at line 25 of file ImportTitleFactory.php.

Member Function Documentation

◆ createTitleFromForeignTitle()

ImportTitleFactory::createTitleFromForeignTitle ( ForeignTitle  $foreignTitle)

Determines which local title best corresponds to the given foreign title.

If such a title can't be found or would be locally invalid, null is returned.

Parameters
ForeignTitle$foreignTitleThe ForeignTitle to convert
Returns
Title|null

Implemented in SubpageImportTitleFactory, NamespaceImportTitleFactory, and NaiveImportTitleFactory.


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