MediaWiki master
|
Import reporter for the API. More...
Inherits ImportReporter.
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) | |
Import reporter for the API.
Definition at line 34 of file ApiImportReporter.php.
MediaWiki\Api\ApiImportReporter::getData | ( | ) |
Definition at line 66 of file ApiImportReporter.php.
MediaWiki\Api\ApiImportReporter::reportPage | ( | ?PageIdentity | $pageIdentity, |
$foreignTitle, | |||
$revisionCount, | |||
$successCount, | |||
$pageInfo ) |
?PageIdentity | $pageIdentity | |
ForeignTitle | $foreignTitle | |
int | $revisionCount | |
int | $successCount | |
array | $pageInfo |
Reimplemented from ImportReporter.
Definition at line 46 of file ApiImportReporter.php.
References MediaWiki\Api\ApiQueryBase\addTitleInfo(), and MediaWiki\MediaWikiServices\getInstance().