MediaWiki fundraising/REL1_35
|
Creates Title objects. More...
Public Member Functions | |
castFromLinkTarget (?LinkTarget $linkTarget) | |
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 33 of file TitleFactory.php.
TitleFactory::castFromLinkTarget | ( | ?LinkTarget | $linkTarget | ) |
LinkTarget | null | $linkTarget |
Definition at line 59 of file TitleFactory.php.
TitleFactory::makeTitle | ( | $ns, | |
$title, | |||
$fragment = '', | |||
$interwiki = '' ) |
int | $ns | |
string | $title | |
string | $fragment | |
string | $interwiki |
Definition at line 130 of file TitleFactory.php.
TitleFactory::makeTitleSafe | ( | $ns, | |
$title, | |||
$fragment = '', | |||
$interwiki = '' ) |
int | $ns | |
string | $title | |
string | $fragment | |
string | $interwiki |
Definition at line 142 of file TitleFactory.php.
TitleFactory::newFromDBkey | ( | $key | ) |
string | $key |
Definition at line 40 of file TitleFactory.php.
References newFromDBkey().
Referenced by newFromDBkey().
TitleFactory::newFromID | ( | $id, | |
$flags = 0 ) |
int | $id | |
int | $flags |
Definition at line 100 of file TitleFactory.php.
TitleFactory::newFromIDs | ( | $ids | ) |
int[] | $ids |
Definition at line 109 of file TitleFactory.php.
TitleFactory::newFromLinkTarget | ( | LinkTarget | $linkTarget, |
$forceClone = '' ) |
LinkTarget | $linkTarget | |
string | $forceClone |
Definition at line 50 of file TitleFactory.php.
TitleFactory::newFromRow | ( | $row | ) |
stdClass | $row |
Definition at line 118 of file TitleFactory.php.
TitleFactory::newFromText | ( | $text, | |
$defaultNamespace = NS_MAIN ) |
string | int | null | $text | |
int | $defaultNamespace |
InvalidArgumentException |
Definition at line 70 of file TitleFactory.php.
TitleFactory::newFromTextThrow | ( | $text, | |
$defaultNamespace = NS_MAIN ) |
string | $text | |
int | $defaultNamespace |
MalformedTitleException |
Definition at line 81 of file TitleFactory.php.
TitleFactory::newFromURL | ( | $url | ) |
string | $url |
Definition at line 90 of file TitleFactory.php.
TitleFactory::newMainPage | ( | MessageLocalizer | $localizer = null | ) |
MessageLocalizer | null | $localizer |
Definition at line 151 of file TitleFactory.php.