MediaWiki  REL1_24
ImportReporter Class Reference

Reporting callback. More...

Inheritance diagram for ImportReporter:
Collaboration diagram for ImportReporter:

List of all members.

Public Member Functions

 __construct ($importer, $upload, $interwiki, $reason=false)
 close ()
 open ()
 reportLogItem ()
 reportNotice ($msg, array $params)
 reportPage ($title, $origTitle, $revisionCount, $successCount, $pageInfo)

Private Attributes

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

Detailed Description

Reporting callback.

Definition at line 475 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 487 of file SpecialImport.php.

References $reason, $upload, and array().


Member Function Documentation

Definition at line 499 of file SpecialImport.php.

References ContextSource\getOutput().

Definition at line 509 of file SpecialImport.php.

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

Reimplemented in ApiImportReporter.

Definition at line 524 of file SpecialImport.php.

References $comment, $title, array(), WikiPage\factory(), ContextSource\getOutput(), ContextSource\getUser(), Linker\linkKnown(), ContextSource\msg(), Revision\newNullRevision(), wfGetDB(), and wfRunHooks().


Member Data Documentation

ImportReporter::$mLogItemCount = 0 [private]

Definition at line 479 of file SpecialImport.php.

ImportReporter::$mOriginalLogCallback = null [private]

Definition at line 477 of file SpecialImport.php.

ImportReporter::$mOriginalPageOutCallback = null [private]

Definition at line 478 of file SpecialImport.php.

ImportReporter::$reason = false [private]

Definition at line 476 of file SpecialImport.php.

Referenced by __construct().


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