MediaWiki  1.30.0
ApiImportReporter Class Reference

Import reporter for the API. More...

Inheritance diagram for ApiImportReporter:
Collaboration diagram for ApiImportReporter:

Public Member Functions

 getData ()
 
 reportPage ( $title, $origTitle, $revisionCount, $successCount, $pageInfo)
 
- Public Member Functions inherited from ImportReporter
 __construct ( $importer, $upload, $interwiki, $reason=false)
 
 close ()
 
 open ()
 
 reportLogItem ()
 
 reportNotice ( $msg, array $params)
 
 setChangeTags (array $tags)
 Sets change tags to apply to the import log entry and null revision. More...
 
- Public Member Functions inherited from ContextSource
 canUseWikiPage ()
 Check whether a WikiPage object can be get with getWikiPage(). More...
 
 exportSession ()
 Export the resolved user IP, HTTP headers, user ID, and session ID. More...
 
 getConfig ()
 Get the Config object. More...
 
 getContext ()
 Get the base IContextSource object. More...
 
 getLanguage ()
 Get the Language object. More...
 
 getOutput ()
 Get the OutputPage object. More...
 
 getRequest ()
 Get the WebRequest object. More...
 
 getSkin ()
 Get the Skin object. More...
 
 getStats ()
 Get the Stats object. More...
 
 getTiming ()
 Get the Timing object. More...
 
 getTitle ()
 Get the Title object. More...
 
 getUser ()
 Get the User object. More...
 
 getWikiPage ()
 Get the WikiPage object. More...
 
 msg ( $key)
 Get a Message object with context set Parameters are the same as wfMessage() More...
 
 setContext (IContextSource $context)
 Set the IContextSource object. More...
 

Private Attributes

 $mResultArr = []
 

Detailed Description

Import reporter for the API.

Definition at line 182 of file ApiImport.php.

Member Function Documentation

◆ getData()

ApiImportReporter::getData ( )

Definition at line 212 of file ApiImport.php.

References $mResultArr.

◆ reportPage()

ApiImportReporter::reportPage (   $title,
  $origTitle,
  $revisionCount,
  $successCount,
  $pageInfo 
)
Parameters
Title$title
Title$origTitle
int$revisionCount
int$successCount
array$pageInfo
Returns
void

Reimplemented from ImportReporter.

Definition at line 193 of file ApiImport.php.

References $title, and ApiQueryBase\addTitleInfo().

Member Data Documentation

◆ $mResultArr

ApiImportReporter::$mResultArr = []
private

Definition at line 183 of file ApiImport.php.

Referenced by getData().


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