MediaWiki  1.28.0
ImportReporter Class Reference

Reporting callback. More...

Inheritance diagram for ImportReporter:
Collaboration diagram for ImportReporter:

Public Member Functions

 __construct ($importer, $upload, $interwiki, $reason=false)
 
 close ()
 
 open ()
 
 reportLogItem ()
 
 reportNotice ($msg, array $params)
 
 reportPage ($title, $foreignTitle, $revisionCount, $successCount, $pageInfo)
 
- 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 ()
 Get a Message object with context set Parameters are the same as wfMessage() More...
 
 setContext (IContextSource $context)
 Set the IContextSource object. More...
 

Private Attributes

 $mLogItemCount = 0
 
 $mOriginalLogCallback = null
 
 $mOriginalPageOutCallback = null
 
 $reason = false
 

Detailed Description

Reporting callback.

Definition at line 535 of file SpecialImport.php.

Constructor & Destructor Documentation

ImportReporter::__construct (   $importer,
  $upload,
  $interwiki,
  $reason = false 
)
Parameters
WikiImporter$importer
bool$upload
string$interwiki
string | bool$reason

Definition at line 547 of file SpecialImport.php.

References $reason.

Member Function Documentation

ImportReporter::close ( )
ImportReporter::open ( )

Definition at line 559 of file SpecialImport.php.

References ContextSource\getOutput().

ImportReporter::reportLogItem ( )

Definition at line 569 of file SpecialImport.php.

ImportReporter::reportNotice (   $msg,
array  $params 
)
ImportReporter::reportPage (   $title,
  $foreignTitle,
  $revisionCount,
  $successCount,
  $pageInfo 
)
Parameters
Title$title
ForeignTitle$foreignTitle
int$revisionCount
int$successCount
array$pageInfo
Returns
void

Definition at line 584 of file SpecialImport.php.

References $args, $comment, $page, $reason, $title, DB_MASTER, WikiPage\factory(), ContextSource\getOutput(), ContextSource\getUser(), Linker\linkKnown(), ContextSource\msg(), Revision\newNullRevision(), Hooks\run(), and wfGetDB().

Member Data Documentation

ImportReporter::$mLogItemCount = 0
private

Definition at line 539 of file SpecialImport.php.

ImportReporter::$mOriginalLogCallback = null
private

Definition at line 537 of file SpecialImport.php.

ImportReporter::$mOriginalPageOutCallback = null
private

Definition at line 538 of file SpecialImport.php.

ImportReporter::$reason = false
private

Definition at line 536 of file SpecialImport.php.

Referenced by __construct(), and reportPage().


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