MediaWiki master
MediaWiki\Api\ApiImportReporter Class Reference

Import reporter for the API. More...

Inherits ImportReporter.

Collaboration diagram for MediaWiki\Api\ApiImportReporter:

Public Member Functions

 getData ()
 
 reportPage (?PageIdentity $pageIdentity, $foreignTitle, $revisionCount, $successCount, $pageInfo)
 
- Public Member Functions inherited from ImportReporter
 __construct ( $importer, $upload, $interwiki, $reason="", ?IContextSource $context=null)
 
 close ()
 
 open ()
 
 reportLogItem (... $args)
 
 reportNotice ( $msg, array $params)
 
 setChangeTags (array $tags)
 Sets change tags to apply to the import log entry and null 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

Import reporter for the API.

Definition at line 34 of file ApiImportReporter.php.

Member Function Documentation

◆ getData()

MediaWiki\Api\ApiImportReporter::getData ( )

Definition at line 66 of file ApiImportReporter.php.

◆ reportPage()

MediaWiki\Api\ApiImportReporter::reportPage ( ?PageIdentity $pageIdentity,
$foreignTitle,
$revisionCount,
$successCount,
$pageInfo )
Parameters
?PageIdentity$pageIdentity
ForeignTitle$foreignTitle
int$revisionCount
int$successCount
array$pageInfo
Returns
void

Reimplemented from ImportReporter.

Definition at line 46 of file ApiImportReporter.php.

References MediaWiki\Api\ApiQueryBase\addTitleInfo(), and MediaWiki\MediaWikiServices\getInstance().


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