MediaWiki fundraising/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 in a fixed local namespace. More...
Public Member Functions | |
__construct ( $ns) | |
createTitleFromForeignTitle (ForeignTitle $foreignTitle) | |
Determines which local title best corresponds to the given foreign title. | |
Protected Attributes | |
int | $ns |
A class to convert page titles on a foreign wiki (ForeignTitle objects) into page titles on the local wiki (Title objects), placing all pages in a fixed local namespace.
Definition at line 28 of file NamespaceImportTitleFactory.php.
NamespaceImportTitleFactory::__construct | ( | $ns | ) |
int | $ns | The namespace to use for all pages |
Definition at line 35 of file NamespaceImportTitleFactory.php.
References $ns.
NamespaceImportTitleFactory::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 50 of file NamespaceImportTitleFactory.php.
References ForeignTitle\getText().
|
protected |
Definition at line 30 of file NamespaceImportTitleFactory.php.
Referenced by __construct().