MediaWiki REL1_40
|
Represents an object that can convert page titles on a foreign wiki (ForeignTitle objects) into page titles on the local wiki (Title objects). More...
Inherited by NaiveImportTitleFactory, NamespaceImportTitleFactory, and SubpageImportTitleFactory.
Public Member Functions | |
createTitleFromForeignTitle (ForeignTitle $foreignTitle) | |
Determines which local title best corresponds to the given foreign title. | |
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 27 of file ImportTitleFactory.php.
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.
ForeignTitle | $foreignTitle | The ForeignTitle to convert |
Implemented in NaiveImportTitleFactory, NamespaceImportTitleFactory, and SubpageImportTitleFactory.