44 throw new MWException(
"Namespace $ns doesn't exist on this wiki" );
59 return $this->titleFactory->makeTitleSafe( $this->ns, $foreignTitle->
getText() );
A simple, immutable structure to hold the title of a page on a foreign MediaWiki installation.
A class to convert page titles on a foreign wiki (ForeignTitle objects) into page titles on the local...
TitleFactory $titleFactory
__construct(NamespaceInfo $namespaceInfo, TitleFactory $titleFactory, int $ns)
createTitleFromForeignTitle(ForeignTitle $foreignTitle)
Determines which local title best corresponds to the given foreign title.
This is a utility class for dealing with namespaces that encodes all the "magic" behaviors of them ba...
exists( $index)
Returns whether the specified namespace exists.
Represents an object that can convert page titles on a foreign wiki (ForeignTitle objects) into page ...