WikiWriter Class Reference

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

List of all members.

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

Detailed Description

Import changes to wiki as given user.

Definition at line 220 of file poimport.php.


Constructor & Destructor Documentation

WikiWriter::__construct ( changes,
groupId,
user,
dryrun = true 
)
Parameters:
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.

Here is the call graph for this function:


Member Function Documentation

WikiWriter::execute (  ) 

Updates pages on by one.

Definition at line 258 of file poimport.php.

Here is the call graph for this function:

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

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.

Parameters:
int $namespace
string $page
string $text

Definition at line 287 of file poimport.php.

Referenced by execute().

Here is the call graph for this function:


Member Data Documentation

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().


The documentation for this class was generated from the following file:
Generated on Tue Oct 29 00:00:57 2013 for MediaWiki Translate Extension by  doxygen 1.6.3