Translate extension for MediaWiki
Loading...
Searching...
No Matches
TranslationStashWriter.php
1
<?php
2
declare( strict_types = 1 );
3
4
namespace
MediaWiki\Extension\Translate\TranslatorSandbox;
5
6
use User;
7
8
interface
TranslationStashWriter
{
13
public
function
addTranslation
(
StashedTranslation
$item ): void;
14
16
public
function
deleteTranslations
( User $user ): void;
17
}
MediaWiki\Extension\Translate\TranslatorSandbox\StashedTranslation
Value object for stashed translation which you can construct.
Definition
StashedTranslation.php:16
MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashWriter
Definition
TranslationStashWriter.php:8
MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashWriter\addTranslation
addTranslation(StashedTranslation $item)
Adds a new translation to the stash.
MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashWriter\deleteTranslations
deleteTranslations(User $user)
Delete all stashed translations for the given user.
src
TranslatorSandbox
TranslationStashWriter.php
Generated by
1.10.0