MediaWiki master
|
Creates Title objects. More...
Public Member Functions | |
castFromLinkTarget (?LinkTarget $linkTarget) | |
castFromPageIdentity (?PageIdentity $pageIdentity) | |
castFromPageReference (?PageReference $pageReference) | |
makeTitle ( $ns, $title, $fragment='', $interwiki='') | |
makeTitleSafe ( $ns, $title, $fragment='', $interwiki='') | |
newFromDBkey ( $key) | |
newFromID ( $id, $flags=0) | |
newFromLinkTarget (LinkTarget $linkTarget, $forceClone='') | |
newFromPageIdentity (PageIdentity $pageIdentity) | |
newFromPageReference (PageReference $pageReference) | |
newFromRow ( $row) | |
newFromText ( $text, $defaultNamespace=NS_MAIN) | |
newFromTextThrow ( $text, $defaultNamespace=NS_MAIN) | |
newFromURL ( $url) | |
newMainPage (MessageLocalizer $localizer=null) | |
newTitleArrayFromResult (IResultWrapper $result) | |
Creates Title objects.
For now, there is nothing interesting in this class. It is meant for preventing static Title methods causing problems in unit tests.
Definition at line 39 of file TitleFactory.php.
MediaWiki\Title\TitleFactory::castFromLinkTarget | ( | ?LinkTarget | $linkTarget | ) |
LinkTarget | null | $linkTarget |
Definition at line 65 of file TitleFactory.php.
MediaWiki\Title\TitleFactory::castFromPageIdentity | ( | ?PageIdentity | $pageIdentity | ) |
PageIdentity | null | $pageIdentity |
Definition at line 85 of file TitleFactory.php.
MediaWiki\Title\TitleFactory::castFromPageReference | ( | ?PageReference | $pageReference | ) |
PageReference | null | $pageReference |
Definition at line 105 of file TitleFactory.php.
MediaWiki\Title\TitleFactory::makeTitle | ( | $ns, | |
$title, | |||
$fragment = '', | |||
$interwiki = '' ) |
int | $ns | |
string | $title | |
string | $fragment | |
string | $interwiki |
Definition at line 167 of file TitleFactory.php.
MediaWiki\Title\TitleFactory::makeTitleSafe | ( | $ns, | |
$title, | |||
$fragment = '', | |||
$interwiki = '' ) |
int | $ns | |
string | $title | |
string | $fragment | |
string | $interwiki |
Definition at line 179 of file TitleFactory.php.
MediaWiki\Title\TitleFactory::newFromDBkey | ( | $key | ) |
string | $key |
Definition at line 46 of file TitleFactory.php.
MediaWiki\Title\TitleFactory::newFromID | ( | $id, | |
$flags = 0 ) |
int | $id | |
int | $flags |
Definition at line 146 of file TitleFactory.php.
MediaWiki\Title\TitleFactory::newFromLinkTarget | ( | LinkTarget | $linkTarget, |
$forceClone = '' ) |
LinkTarget | $linkTarget | |
string | $forceClone |
Definition at line 56 of file TitleFactory.php.
MediaWiki\Title\TitleFactory::newFromPageIdentity | ( | PageIdentity | $pageIdentity | ) |
PageIdentity | $pageIdentity |
Definition at line 75 of file TitleFactory.php.
Referenced by MediaWiki\Parser\Parsoid\LanguageVariantConverter\__construct().
MediaWiki\Title\TitleFactory::newFromPageReference | ( | PageReference | $pageReference | ) |
PageReference | $pageReference |
Definition at line 95 of file TitleFactory.php.
MediaWiki\Title\TitleFactory::newFromRow | ( | $row | ) |
\\stdClass | $row |
Definition at line 155 of file TitleFactory.php.
MediaWiki\Title\TitleFactory::newFromText | ( | $text, | |
$defaultNamespace = NS_MAIN ) |
string | int | null | $text | |
int | $defaultNamespace |
\InvalidArgumentException
Definition at line 116 of file TitleFactory.php.
MediaWiki\Title\TitleFactory::newFromTextThrow | ( | $text, | |
$defaultNamespace = NS_MAIN ) |
string | $text | |
int | $defaultNamespace |
MalformedTitleException |
Definition at line 127 of file TitleFactory.php.
MediaWiki\Title\TitleFactory::newFromURL | ( | $url | ) |
string | $url |
Definition at line 136 of file TitleFactory.php.
MediaWiki\Title\TitleFactory::newMainPage | ( | MessageLocalizer | $localizer = null | ) |
MessageLocalizer | null | $localizer |
Definition at line 188 of file TitleFactory.php.
MediaWiki\Title\TitleFactory::newTitleArrayFromResult | ( | IResultWrapper | $result | ) |
IResultWrapper | $result |
Definition at line 197 of file TitleFactory.php.