MediaWiki master
|
Factory service for WikiImporter instances. More...
Public Member Functions | |
__construct (Config $config, HookContainer $hookContainer, Language $contentLanguage, NamespaceInfo $namespaceInfo, TitleFactory $titleFactory, WikiPageFactory $wikiPageFactory, UploadRevisionImporter $uploadRevisionImporter, IContentHandlerFactory $contentHandlerFactory, SlotRoleRegistry $slotRoleRegistry) | |
getWikiImporter (ImportSource $source, ?Authority $performer=null) | |
Factory service for WikiImporter instances.
Definition at line 38 of file WikiImporterFactory.php.
WikiImporterFactory::__construct | ( | Config | $config, |
HookContainer | $hookContainer, | ||
Language | $contentLanguage, | ||
NamespaceInfo | $namespaceInfo, | ||
TitleFactory | $titleFactory, | ||
WikiPageFactory | $wikiPageFactory, | ||
UploadRevisionImporter | $uploadRevisionImporter, | ||
IContentHandlerFactory | $contentHandlerFactory, | ||
SlotRoleRegistry | $slotRoleRegistry ) |
Definition at line 49 of file WikiImporterFactory.php.
WikiImporterFactory::getWikiImporter | ( | ImportSource | $source, |
?Authority | $performer = null ) |
ImportSource | $source | |
Authority | null | $performer | Authority used for permission checks only (to ensure that the user performing the import is allowed to edit the pages they're importing). To skip the checks, use UltimateAuthority. |
When omitted, defaults to the current global user. This behavior is deprecated since 1.42.
If you want to also log the import actions, see ImportReporter.
Definition at line 82 of file WikiImporterFactory.php.
References wfDeprecated().