MediaWiki master
WikiImporterFactory Class Reference

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)
 

Detailed Description

Factory service for WikiImporter instances.

Since
1.37

Definition at line 37 of file WikiImporterFactory.php.

Constructor & Destructor Documentation

◆ __construct()

WikiImporterFactory::__construct ( Config $config,
HookContainer $hookContainer,
Language $contentLanguage,
NamespaceInfo $namespaceInfo,
TitleFactory $titleFactory,
WikiPageFactory $wikiPageFactory,
UploadRevisionImporter $uploadRevisionImporter,
IContentHandlerFactory $contentHandlerFactory,
SlotRoleRegistry $slotRoleRegistry )

Definition at line 48 of file WikiImporterFactory.php.

Member Function Documentation

◆ getWikiImporter()

WikiImporterFactory::getWikiImporter ( ImportSource $source,
Authority $performer = null )
Parameters
ImportSource$source
Authority | null$performerAuthority 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.

Returns
WikiImporter

Definition at line 81 of file WikiImporterFactory.php.

References wfDeprecated().


The documentation for this class was generated from the following file: