MediaWiki REL1_35
|
A class to convert page titles on a foreign wiki (ForeignTitle objects) into page titles on the local wiki (Title objects), placing all pages as subpages of a given root page. More...
Public Member Functions | |
__construct (Title $rootPage) | |
createTitleFromForeignTitle (ForeignTitle $foreignTitle) | |
Determines which local title best corresponds to the given foreign title. | |
Protected Attributes | |
Title | $rootPage |
A class to convert page titles on a foreign wiki (ForeignTitle objects) into page titles on the local wiki (Title objects), placing all pages as subpages of a given root page.
Definition at line 28 of file SubpageImportTitleFactory.php.
SubpageImportTitleFactory::__construct | ( | Title | $rootPage | ) |
Title | $rootPage | The root page under which all pages should be created |
Definition at line 36 of file SubpageImportTitleFactory.php.
References $rootPage, and Title\getNamespace().
SubpageImportTitleFactory::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 |
Implements ImportTitleFactory.
Definition at line 55 of file SubpageImportTitleFactory.php.
References ForeignTitle\getFullText().
|
protected |
Definition at line 30 of file SubpageImportTitleFactory.php.
Referenced by __construct().