Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
WikiWriter Class Reference

Import changes to wiki as given user. More...

Public Member Functions

 __construct (array $changes, $groupId, $user, $dryrun=true)
 
 setProgressCallback ( $callback)
 
 execute ()
 Updates pages on by one.
 

Protected Member Functions

 reportProgress ( $text, $channel, $severity='status')
 

Detailed Description

Import changes to wiki as given user.

Definition at line 222 of file poimport.php.

Constructor & Destructor Documentation

◆ __construct()

WikiWriter::__construct ( array $changes,
$groupId,
$user,
$dryrun = true )
Parameters
string[]$changesArray of key/langcode => translation.
string$groupId
string$userUser who makes the edits in wiki.
bool$dryrunDo not do anything that affects the database.

Definition at line 240 of file poimport.php.

Member Function Documentation

◆ execute()

WikiWriter::execute ( )

Updates pages on by one.

Definition at line 262 of file poimport.php.

◆ reportProgress()

WikiWriter::reportProgress ( $text,
$channel,
$severity = 'status' )
protected
See also
Maintenance::output for param docs

Definition at line 252 of file poimport.php.

◆ setProgressCallback()

WikiWriter::setProgressCallback ( $callback)

Definition at line 247 of file poimport.php.


The documentation for this class was generated from the following file: