MediaWiki REL1_39
|
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) | |
newFromIDs ( $ids) | |
newFromLinkTarget (LinkTarget $linkTarget, $forceClone='') | |
newFromRow ( $row) | |
newFromText ( $text, $defaultNamespace=NS_MAIN) | |
newFromTextThrow ( $text, $defaultNamespace=NS_MAIN) | |
newFromURL ( $url) | |
newMainPage (MessageLocalizer $localizer=null) | |
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 35 of file TitleFactory.php.
TitleFactory::castFromLinkTarget | ( | ?LinkTarget | $linkTarget | ) |
LinkTarget | null | $linkTarget |
Definition at line 61 of file TitleFactory.php.
TitleFactory::castFromPageIdentity | ( | ?PageIdentity | $pageIdentity | ) |
PageIdentity | null | $pageIdentity |
Definition at line 71 of file TitleFactory.php.
TitleFactory::castFromPageReference | ( | ?PageReference | $pageReference | ) |
PageReference | null | $pageReference |
Definition at line 81 of file TitleFactory.php.
TitleFactory::makeTitle | ( | $ns, | |
$title, | |||
$fragment = '', | |||
$interwiki = '' ) |
int | $ns | |
string | $title | |
string | $fragment | |
string | $interwiki |
Definition at line 154 of file TitleFactory.php.
TitleFactory::makeTitleSafe | ( | $ns, | |
$title, | |||
$fragment = '', | |||
$interwiki = '' ) |
int | $ns | |
string | $title | |
string | $fragment | |
string | $interwiki |
Definition at line 166 of file TitleFactory.php.
TitleFactory::newFromDBkey | ( | $key | ) |
string | $key |
Definition at line 42 of file TitleFactory.php.
References newFromDBkey().
Referenced by newFromDBkey().
TitleFactory::newFromID | ( | $id, | |
$flags = 0 ) |
int | $id | |
int | $flags |
Definition at line 122 of file TitleFactory.php.
TitleFactory::newFromIDs | ( | $ids | ) |
int[] | $ids |
Definition at line 132 of file TitleFactory.php.
TitleFactory::newFromLinkTarget | ( | LinkTarget | $linkTarget, |
$forceClone = '' ) |
LinkTarget | $linkTarget | |
string | $forceClone |
Definition at line 52 of file TitleFactory.php.
TitleFactory::newFromRow | ( | $row | ) |
stdClass | $row |
Definition at line 142 of file TitleFactory.php.
TitleFactory::newFromText | ( | $text, | |
$defaultNamespace = NS_MAIN ) |
string | int | null | $text | |
int | $defaultNamespace |
InvalidArgumentException |
Definition at line 92 of file TitleFactory.php.
TitleFactory::newFromTextThrow | ( | $text, | |
$defaultNamespace = NS_MAIN ) |
string | $text | |
int | $defaultNamespace |
MalformedTitleException |
Definition at line 103 of file TitleFactory.php.
TitleFactory::newFromURL | ( | $url | ) |
string | $url |
Definition at line 112 of file TitleFactory.php.
TitleFactory::newMainPage | ( | MessageLocalizer | $localizer = null | ) |
MessageLocalizer | null | $localizer |
Definition at line 175 of file TitleFactory.php.