|
MediaWiki master
|
Reporting callback. More...
Inherits MediaWiki\Context\ContextSource.
Inherited by MediaWiki\Api\ApiImportReporter.

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) | |
Reporting callback.
Definition at line 24 of file ImportReporter.php.
| ImportReporter::__construct | ( | $importer, | |
| $upload, | |||
| $interwiki, | |||
| $reason = "", | |||
| ?IContextSource | $context = null ) |
| WikiImporter | $importer | |
| bool | $upload | |
| string | $interwiki | |
| string | bool | $reason | |
| IContextSource | null | $context |
Definition at line 51 of file ImportReporter.php.
References reportLogItem(), reportNotice(), reportPage(), MediaWiki\Context\ContextSource\setContext(), and wfDeprecated().
| ImportReporter::close | ( | ) |
Definition at line 180 of file ImportReporter.php.
References MediaWiki\Context\ContextSource\getOutput(), and MediaWiki\Context\ContextSource\msg().
| ImportReporter::open | ( | ) |
Definition at line 77 of file ImportReporter.php.
References MediaWiki\Context\ContextSource\getOutput().
| ImportReporter::reportLogItem | ( | $args | ) |
| mixed | ...$args |
Definition at line 95 of file ImportReporter.php.
Referenced by __construct().
| ImportReporter::reportNotice | ( | $msg, | |
| array | $params ) |
| string | string[] | MessageSpecifier | $msg | |
| (MessageParam|MessageSpecifier|string|int|float|list<MessageParam|MessageSpecifier|string|int|float>)[] | $params |
Definition at line 86 of file ImportReporter.php.
References MediaWiki\Context\ContextSource\getOutput(), and MediaWiki\Context\ContextSource\msg().
Referenced by __construct().
| ImportReporter::reportPage | ( | ?PageIdentity | $pageIdentity, |
| $foreignTitle, | |||
| $revisionCount, | |||
| $successCount, | |||
| $pageInfo ) |
| ?PageIdentity | $pageIdentity | |
| ForeignTitle | $foreignTitle | |
| int | $revisionCount | |
| int | $successCount | |
| array | $pageInfo |
Reimplemented in MediaWiki\Api\ApiImportReporter.
Definition at line 110 of file ImportReporter.php.
References EDIT_MINOR, EDIT_SILENT, MediaWiki\Context\ContextSource\getOutput(), MediaWiki\Context\ContextSource\getUser(), and MediaWiki\Context\ContextSource\msg().
Referenced by __construct().
| ImportReporter::setChangeTags | ( | array | $tags | ) |
Sets change tags to apply to the import log entry and null revision.
| string[] | $tags |
Definition at line 73 of file ImportReporter.php.