MediaWiki REL1_40
|
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 39 of file TitleFactory.php.
MediaWiki\Title\TitleFactory::castFromLinkTarget | ( | ?LinkTarget | $linkTarget | ) |
LinkTarget | null | $linkTarget |
Definition at line 65 of file TitleFactory.php.
Referenced by MediaWiki\Linker\Linker\getUploadUrl(), MediaWiki\Linker\Linker\makeBrokenImageLinkObj(), and MediaWiki\Linker\Linker\makeMediaLinkFile().
MediaWiki\Title\TitleFactory::castFromPageIdentity | ( | ?PageIdentity | $pageIdentity | ) |
PageIdentity | null | $pageIdentity |
Definition at line 75 of file TitleFactory.php.
Referenced by MediaWiki\Category\CategoryViewer\__construct(), MediaWiki\Deferred\LinksUpdate\LinksUpdate\__construct(), MediaWiki\Parser\Parsoid\LanguageVariantConverter\__construct(), MediaWiki\EditPage\TextboxBuilder\buildTextboxAttribs(), MediaWiki\Deferred\LinksUpdate\LinksUpdate\queueRecursiveJobsForTable(), and MediaWiki\Deferred\LinksUpdate\CategoryLinksTable\setParserOutput().
MediaWiki\Title\TitleFactory::castFromPageReference | ( | ?PageReference | $pageReference | ) |
PageReference | null | $pageReference |
Definition at line 85 of file TitleFactory.php.
Referenced by MediaWiki\Parser\ParserObserver\notifyParse().
MediaWiki\Title\TitleFactory::makeTitle | ( | $ns, | |
$title, | |||
$fragment = '', | |||
$interwiki = '' ) |
int | $ns | |
string | $title | |
string | $fragment | |
string | $interwiki |
Definition at line 158 of file TitleFactory.php.
Referenced by MediaWiki\Specials\SpecialUserRights\addLogEntry(), MediaWiki\Search\SearchWidgets\InterwikiSearchResultSetWidget\footerHtml(), MediaWiki\Feed\FeedUtils\formatDiff(), MediaWiki\Category\CategoriesRdf\getDumpURI(), MediaWiki\Search\TitleMatcher\getNearMatchInternal(), MediaWiki\Search\ParserOutputSearchDataExtractor\getOutgoingLinks(), MediaWiki\Search\ParserOutputSearchDataExtractor\getTemplates(), MediaWiki\Search\SearchWidgets\SimpleSearchResultSetWidget\headerHtml(), MediaWiki\Search\SearchWidgets\InterwikiSearchResultSetWidget\headerHtml(), MediaWiki\Category\CategoriesRdf\labelToUrl(), MediaWiki\Rest\EntryPoint\main(), MediaWiki\Deferred\LinksUpdate\CategoryLinksTable\setParserOutput(), MediaWiki\Specials\SpecialUserRights\showLogFragment(), MediaWiki\Category\CategoriesRdf\writeCategoryData(), and MediaWiki\Category\CategoriesRdf\writeCategoryLinkData().
MediaWiki\Title\TitleFactory::makeTitleSafe | ( | $ns, | |
$title, | |||
$fragment = '', | |||
$interwiki = '' ) |
int | $ns | |
string | $title | |
string | $fragment | |
string | $interwiki |
Definition at line 170 of file TitleFactory.php.
Referenced by MediaWiki\Specials\SpecialMovePage\execute(), MediaWiki\Preferences\DefaultPreferencesFactory\generateSkinOptions(), MediaWiki\Specials\SpecialWantedFiles\getPageHeader(), MediaWiki\Linker\Linker\makeThumbLink2(), MediaWiki\Category\Category\newFromName(), and MediaWiki\Preferences\DefaultPreferencesFactory\skinPreferences().
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 126 of file TitleFactory.php.
Referenced by MediaWiki\Block\Restriction\PageRestriction\getTitle().
MediaWiki\Title\TitleFactory::newFromIDs | ( | $ids | ) |
int[] | $ids |
Definition at line 136 of file TitleFactory.php.
MediaWiki\Title\TitleFactory::newFromLinkTarget | ( | LinkTarget | $linkTarget, |
$forceClone = '' ) |
LinkTarget | $linkTarget | |
string | $forceClone |
Definition at line 56 of file TitleFactory.php.
Referenced by MediaWiki\Linker\Linker\getImageLinkMTOParams(), MediaWiki\Category\TrackingCategories\getTrackingCategories(), MediaWiki\Linker\Linker\makeImageLink(), MediaWiki\Linker\Linker\makeSelfLinkObj(), and MediaWiki\Linker\Linker\makeThumbLink2().
MediaWiki\Title\TitleFactory::newFromRow | ( | $row | ) |
\\stdClass | $row |
Definition at line 146 of file TitleFactory.php.
Referenced by MediaWiki\Block\Restriction\PageRestriction\newFromRow().
MediaWiki\Title\TitleFactory::newFromText | ( | $text, | |
$defaultNamespace = NS_MAIN ) |
string | int | null | $text | |
int | $defaultNamespace |
\InvalidArgumentException
Definition at line 96 of file TitleFactory.php.
Referenced by MediaWiki\Specials\SpecialMovePage\execute(), MediaWiki\Parser\Parsoid\Config\DataAccess\getFileInfo(), MediaWiki\Search\TitleMatcher\getNearMatchInternal(), MediaWiki\Parser\Parsoid\Config\DataAccess\getPageInfo(), MediaWiki\Block\Restriction\PageRestriction\newFromTitle(), and MediaWiki\ResourceLoader\WikiModule\shouldEmbedModule().
MediaWiki\Title\TitleFactory::newFromTextThrow | ( | $text, | |
$defaultNamespace = NS_MAIN ) |
string | $text | |
int | $defaultNamespace |
MalformedTitleException |
Definition at line 107 of file TitleFactory.php.
MediaWiki\Title\TitleFactory::newFromURL | ( | $url | ) |
string | $url |
Definition at line 116 of file TitleFactory.php.
MediaWiki\Title\TitleFactory::newMainPage | ( | MessageLocalizer | $localizer = null | ) |
MessageLocalizer | null | $localizer |
Definition at line 179 of file TitleFactory.php.
Referenced by MediaWiki\Preferences\DefaultPreferencesFactory\generateSkinOptions(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\sendNewAccountEmail(), and MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\sendPasswordResetEmail().