MediaWiki master
MediaWiki\Specials\Helpers\ImportReporter Class Reference

Reporting callback. More...

Inherits MediaWiki\Context\ContextSource.

Inherited by MediaWiki\Api\ApiImportReporter.

Collaboration diagram for MediaWiki\Specials\Helpers\ImportReporter:

Public Member Functions

 __construct (WikiImporter $importer, private readonly bool $mIsUpload, private readonly ?string $mInterwiki, string|bool|null $reason="", ?IContextSource $context=null,)
 
 close ()
 
 open ()
 
 reportLogItem (... $args)
 
 reportNotice ( $msg, array $params)
 
 reportPage (?PageIdentity $pageIdentity, $foreignTitle, $revisionCount, $successCount, $pageInfo)
 
 setChangeTags (array $tags)
 Sets change tags to apply to the import log entry and dummy revision.
 
- Public Member Functions inherited from MediaWiki\Context\ContextSource
 canUseWikiPage ()
 Check whether a WikiPage object can be get with getWikiPage().
 
 exportSession ()
 Export the resolved user IP, HTTP headers, user ID, and session ID.
 
 getActionName ()
 Get the action name for the current web request.
 
 getAuthority ()
 
 getConfig ()
 
 getContext ()
 Get the base IContextSource object.
 
 getCsrfTokenSet ()
 Get a repository to obtain and match CSRF tokens.
 
 getLanguage ()
 
 getLanguageCode ()
 
 getOutput ()
 
 getRequest ()
 
 getSkin ()
 
 getTiming ()
 
 getTitle ()
 
 getUser ()
 
 getWikiPage ()
 Get the WikiPage object.
 
 msg ( $key,... $params)
 Get a Message object with context set Parameters are the same as wfMessage()
 
 setContext (IContextSource $context)
 

Detailed Description

Reporting callback.

Definition at line 27 of file ImportReporter.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ close()

MediaWiki\Specials\Helpers\ImportReporter::close ( )

Definition at line 176 of file ImportReporter.php.

References MediaWiki\Context\ContextSource\msg().

◆ open()

MediaWiki\Specials\Helpers\ImportReporter::open ( )

Definition at line 73 of file ImportReporter.php.

References MediaWiki\Context\ContextSource\getOutput().

◆ reportLogItem()

MediaWiki\Specials\Helpers\ImportReporter::reportLogItem ( $args)
Parameters
mixed...$args

Definition at line 91 of file ImportReporter.php.

Referenced by MediaWiki\Specials\Helpers\ImportReporter\__construct().

◆ reportNotice()

MediaWiki\Specials\Helpers\ImportReporter::reportNotice ( $msg,
array $params )
Parameters
string | string[] | MessageSpecifier$msg
(MessageParam|MessageSpecifier|string|int|float|list<MessageParam|MessageSpecifier|string|int|float>)[]$params

Definition at line 82 of file ImportReporter.php.

References MediaWiki\Html\element(), MediaWiki\Context\ContextSource\getOutput(), and MediaWiki\Context\ContextSource\msg().

Referenced by MediaWiki\Specials\Helpers\ImportReporter\__construct().

◆ reportPage()

MediaWiki\Specials\Helpers\ImportReporter::reportPage ( ?PageIdentity $pageIdentity,
$foreignTitle,
$revisionCount,
$successCount,
$pageInfo )

◆ setChangeTags()

MediaWiki\Specials\Helpers\ImportReporter::setChangeTags ( array $tags)

Sets change tags to apply to the import log entry and dummy revision.

Parameters
string[]$tags
Since
1.29

Definition at line 69 of file ImportReporter.php.


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