Import changes to wiki as given user. More...
Public Member Functions | |
__construct ($changes, $groupId, $user, $dryrun=true) | |
setProgressCallback ($callback) | |
execute () | |
Updates pages on by one. | |
Protected Member Functions | |
reportProgress ($text, $channel, $severity= 'status') | |
Protected Attributes | |
$progressCallback | |
$user | |
Private Member Functions | |
updateMessage ($namespace, $page, $text) | |
Actually adds the new translation. | |
Private Attributes | |
$changes = array() | |
$dryrun = true | |
$allclear = false | |
$group = null |
Import changes to wiki as given user.
Definition at line 220 of file poimport.php.
WikiWriter::__construct | ( | $ | changes, | |
$ | groupId, | |||
$ | user, | |||
$ | dryrun = true | |||
) |
array | $changes Array of key/langcode => translation. | |
string | $groupId Group ID. | |
string | $user User who makes the edits in wiki. | |
bool | $dryrun Do not do anything that affects the database. |
Definition at line 236 of file poimport.php.
WikiWriter::execute | ( | ) |
Updates pages on by one.
Definition at line 258 of file poimport.php.
WikiWriter::reportProgress | ( | $ | text, | |
$ | channel, | |||
$ | severity = 'status' | |||
) | [protected] |
Definition at line 248 of file poimport.php.
Referenced by execute(), and updateMessage().
WikiWriter::setProgressCallback | ( | $ | callback | ) |
Definition at line 243 of file poimport.php.
WikiWriter::updateMessage | ( | $ | namespace, | |
$ | page, | |||
$ | text | |||
) | [private] |
Actually adds the new translation.
int | $namespace | |
string | $page | |
string | $text |
Definition at line 287 of file poimport.php.
Referenced by execute().
WikiWriter::$allclear = false [private] |
Definition at line 226 of file poimport.php.
WikiWriter::$changes = array() [private] |
Definition at line 224 of file poimport.php.
Referenced by __construct().
WikiWriter::$dryrun = true [private] |
Definition at line 225 of file poimport.php.
Referenced by __construct().
WikiWriter::$group = null [private] |
Definition at line 227 of file poimport.php.
WikiWriter::$progressCallback [protected] |
Definition at line 222 of file poimport.php.
WikiWriter::$user [protected] |
Definition at line 228 of file poimport.php.
Referenced by __construct().