Class which encapsulates message importing. More...
Public Member Functions | |
| __construct (Title $title, private readonly IContextSource $context, $group=null, string $code='en') | |
| getTitle () | |
| Wrapper for consistency with SpecialPage. | |
| setTitle (Title $title) | |
| getGroup () | |
| setGroup ( $group) | |
| getCode () | |
| setCode (string $code='en') | |
| execute (array $messages) | |
Static Public Member Functions | |
| static | makeSectionElement (string $legend, string $type, string $content, ?Language $lang=null, array $extraContainerClasses=[]) |
| Make section elements. | |
Protected Member Functions | |
| getAction () | |
| doHeader () | |
| doFooter () | |
| allowProcess () | |
| getActions () | |
| checkProcessTime () | |
Class which encapsulates message importing.
It scans for changes (new, changed, deleted), displays them in pretty way with diffs and finally executes the actions the user choices.
Definition at line 34 of file MessageWebImporter.php.
| MediaWiki\Extension\Translate\Synchronization\MessageWebImporter::__construct | ( | Title | $title, |
| private readonly IContextSource | $context, | ||
| $group = null, | |||
| string | $code = 'en' ) |
| Title | $title | The title to send the user to when they submit the form; this may or may not be the title of $context (e.g. the special page subpage may be removed from it) |
| IContextSource | $context | |
| MessageGroup | string | null | $group | |
| string | $code |
Definition at line 51 of file MessageWebImporter.php.
|
protected |
Definition at line 116 of file MessageWebImporter.php.
|
protected |
Definition at line 416 of file MessageWebImporter.php.
|
protected |
Definition at line 112 of file MessageWebImporter.php.
|
protected |
Definition at line 98 of file MessageWebImporter.php.
| MediaWiki\Extension\Translate\Synchronization\MessageWebImporter::execute | ( | array | $messages | ) |
Definition at line 133 of file MessageWebImporter.php.
|
protected |
Definition at line 94 of file MessageWebImporter.php.
|
protected |
Definition at line 125 of file MessageWebImporter.php.
| MediaWiki\Extension\Translate\Synchronization\MessageWebImporter::getCode | ( | ) |
Definition at line 86 of file MessageWebImporter.php.
| MediaWiki\Extension\Translate\Synchronization\MessageWebImporter::getGroup | ( | ) |
Definition at line 71 of file MessageWebImporter.php.
| MediaWiki\Extension\Translate\Synchronization\MessageWebImporter::getTitle | ( | ) |
Wrapper for consistency with SpecialPage.
Definition at line 63 of file MessageWebImporter.php.
|
static |
Make section elements.
| string | $legend | Legend as raw html. |
| string | $type | Contents of type class. |
| string | $content | Contents as raw html. |
| Language | null | $lang | The language in which the text is written. |
| string[] | $extraContainerClasses | Additional classes to add to the section container |
Definition at line 537 of file MessageWebImporter.php.
| MediaWiki\Extension\Translate\Synchronization\MessageWebImporter::setCode | ( | string | $code = 'en' | ) |
Definition at line 90 of file MessageWebImporter.php.
| MediaWiki\Extension\Translate\Synchronization\MessageWebImporter::setGroup | ( | $group | ) |
| MessageGroup | string | $group | MessageGroup object or group ID |
Definition at line 76 of file MessageWebImporter.php.
| MediaWiki\Extension\Translate\Synchronization\MessageWebImporter::setTitle | ( | Title | $title | ) |
Definition at line 67 of file MessageWebImporter.php.