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 220 of file poimport.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 238 of file poimport.php.

Member Function Documentation

◆ execute()

WikiWriter::execute ( )

Updates pages on by one.

Definition at line 260 of file poimport.php.

◆ reportProgress()

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

Definition at line 250 of file poimport.php.

◆ setProgressCallback()

WikiWriter::setProgressCallback ( $callback)

Definition at line 245 of file poimport.php.


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