MediaWiki
1.30.0
|
Reporting callback. More...
Public Member Functions | |
__construct ( $importer, $upload, $interwiki, $reason=false) | |
close () | |
open () | |
reportLogItem () | |
reportNotice ( $msg, array $params) | |
reportPage ( $title, $foreignTitle, $revisionCount, $successCount, $pageInfo) | |
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 | |
$logTags = [] | |
$mLogItemCount = 0 | |
$mOriginalLogCallback = null | |
$mOriginalPageOutCallback = null | |
$reason = false | |
Reporting callback.
Definition at line 27 of file ImportReporter.php.
ImportReporter::__construct | ( | $importer, | |
$upload, | |||
$interwiki, | |||
$reason = false |
|||
) |
WikiImporter | $importer | |
bool | $upload | |
string | $interwiki | |
string | bool | $reason |
Definition at line 40 of file ImportReporter.php.
ImportReporter::close | ( | ) |
Definition at line 176 of file ImportReporter.php.
References $out, ContextSource\getOutput(), ContextSource\msg(), StatusValue\newFatal(), StatusValue\newGood(), and Xml\tags().
ImportReporter::open | ( | ) |
Definition at line 62 of file ImportReporter.php.
References ContextSource\getOutput().
ImportReporter::reportLogItem | ( | ) |
Definition at line 72 of file ImportReporter.php.
ImportReporter::reportNotice | ( | $msg, | |
array | $params | ||
) |
Definition at line 66 of file ImportReporter.php.
References $params, Html\element(), ContextSource\getOutput(), ContextSource\msg(), and text.
ImportReporter::reportPage | ( | $title, | |
$foreignTitle, | |||
$revisionCount, | |||
$successCount, | |||
$pageInfo | |||
) |
Title | $title | |
ForeignTitle | $foreignTitle | |
int | $revisionCount | |
int | $successCount | |
array | $pageInfo |
Reimplemented in ApiImportReporter.
Definition at line 87 of file ImportReporter.php.
References $args, $linkRenderer, $reason, $title, captcha-old\count, DB_MASTER, WikiPage\factory(), ContextSource\getOutput(), ContextSource\getUser(), ContextSource\msg(), Revision\newNullRevision(), reason(), Hooks\run(), and wfGetDB().
ImportReporter::setChangeTags | ( | array | $tags | ) |
Sets change tags to apply to the import log entry and null revision.
array | $tags |
Definition at line 58 of file ImportReporter.php.
|
private |
Definition at line 29 of file ImportReporter.php.
|
private |
Definition at line 32 of file ImportReporter.php.
|
private |
Definition at line 30 of file ImportReporter.php.
|
private |
Definition at line 31 of file ImportReporter.php.
|
private |
Definition at line 28 of file ImportReporter.php.
Referenced by __construct(), and reportPage().