MediaWiki master
ImportReporter Class Reference

Reporting callback. More...

Inherits MediaWiki\Context\ContextSource.

Inherited by ApiImportReporter.

Collaboration diagram for ImportReporter:

Public Member Functions

 __construct ( $importer, $upload, $interwiki, $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 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

Reporting callback.

Definition at line 36 of file ImportReporter.php.

Constructor & Destructor Documentation

◆ __construct()

ImportReporter::__construct ( $importer,
$upload,
$interwiki,
$reason = "",
IContextSource $context = null )
Parameters
WikiImporter$importer
bool$upload
string$interwiki
string | bool$reason
IContextSource | null$context

Definition at line 55 of file ImportReporter.php.

References MediaWiki\Context\ContextSource\setContext(), and wfDeprecated().

Member Function Documentation

◆ close()

ImportReporter::close ( )

◆ open()

ImportReporter::open ( )

Definition at line 81 of file ImportReporter.php.

References MediaWiki\Context\ContextSource\getOutput().

◆ reportLogItem()

ImportReporter::reportLogItem ( $args)

Definition at line 91 of file ImportReporter.php.

◆ reportNotice()

ImportReporter::reportNotice ( $msg,
array $params )

◆ reportPage()

ImportReporter::reportPage ( ?PageIdentity $pageIdentity,
$foreignTitle,
$revisionCount,
$successCount,
$pageInfo )
Parameters
?PageIdentity$pageIdentity
ForeignTitle$foreignTitle
int$revisionCount
int$successCount
array$pageInfo
Returns
void

Reimplemented in ApiImportReporter.

Definition at line 106 of file ImportReporter.php.

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

◆ setChangeTags()

ImportReporter::setChangeTags ( array $tags)

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

Parameters
string[]$tags
Since
1.29

Definition at line 77 of file ImportReporter.php.


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