|
MediaWiki REL1_35
|
Reporting callback. More...


Public Member Functions | |
| __construct ( $importer, $upload, $interwiki, $reason=false) | |
| close () | |
| open () | |
| reportLogItem (... $args) | |
| 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. | |
Public Member Functions inherited from 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. | |
| getConfig () | |
| getContext () | |
| Get the base IContextSource object. | |
| getLanguage () | |
| getOutput () | |
| getRequest () | |
| getSkin () | |
| getStats () | |
| getTiming () | |
| getTitle () | |
| getUser () | |
| Stable to override. | |
| getWikiPage () | |
| Get the WikiPage object. | |
| msg ( $key,... $params) | |
| Get a Message object with context set Parameters are the same as wfMessage() | |
| setContext (IContextSource $context) | |
Private Attributes | |
| $logTags = [] | |
| $mInterwiki | |
| $mIsUpload | |
| $mLogItemCount = 0 | |
| $mOriginalLogCallback = null | |
| $mOriginalPageOutCallback = null | |
| $mPageCount | |
| $reason = false | |
Reporting callback.
Definition at line 28 of file ImportReporter.php.
| ImportReporter::__construct | ( | $importer, | |
| $upload, | |||
| $interwiki, | |||
$reason = false |
|||
| ) |
| WikiImporter | $importer | |
| bool | $upload | |
| string | $interwiki | |
| string | bool | $reason |
Definition at line 46 of file ImportReporter.php.
References $reason.
| ImportReporter::close | ( | ) |
Definition at line 197 of file ImportReporter.php.
References ContextSource\getOutput(), and ContextSource\msg().
| ImportReporter::open | ( | ) |
Definition at line 68 of file ImportReporter.php.
References ContextSource\getOutput().
| ImportReporter::reportLogItem | ( | $args | ) |
Definition at line 78 of file ImportReporter.php.
References $args.
| ImportReporter::reportNotice | ( | $msg, | |
| array | $params | ||
| ) |
Definition at line 72 of file ImportReporter.php.
References ContextSource\getOutput(), and ContextSource\msg().
| ImportReporter::reportPage | ( | $title, | |
| $foreignTitle, | |||
| $revisionCount, | |||
| $successCount, | |||
| $pageInfo | |||
| ) |
| Title | $title | |
| ForeignTitle | $foreignTitle | |
| int | $revisionCount | |
| int | $successCount | |
| array | $pageInfo |
Reimplemented in ApiImportReporter.
Definition at line 93 of file ImportReporter.php.
References $mInterwiki, $reason, $revStore, $title, DB_MASTER, ContextSource\getOutput(), ContextSource\getUser(), ContextSource\msg(), and wfGetDB().
| ImportReporter::setChangeTags | ( | array | $tags | ) |
Sets change tags to apply to the import log entry and null revision.
| array | $tags |
Definition at line 64 of file ImportReporter.php.
|
private |
Definition at line 32 of file ImportReporter.php.
|
private |
Definition at line 38 of file ImportReporter.php.
Referenced by reportPage().
|
private |
Definition at line 37 of file ImportReporter.php.
|
private |
Definition at line 35 of file ImportReporter.php.
|
private |
Definition at line 33 of file ImportReporter.php.
|
private |
Definition at line 34 of file ImportReporter.php.
|
private |
Definition at line 36 of file ImportReporter.php.
|
private |
Definition at line 31 of file ImportReporter.php.
Referenced by __construct(), and reportPage().