|
MediaWiki
master
|
Public Member Functions | |
| __construct (BatchRowIterator $reader, BatchRowWriter $writer, RowUpdateGenerator $generator) | |
| execute () | |
| Runs the batch update process. More... | |
| setOutput ($output) | |
| Accepts a callable which will receive a single parameter containing string status updates. More... | |
Protected Member Functions | |
| output ($text) | |
| Write out a status update. More... | |
Protected Attributes | |
| $generator | |
| $output | |
| $reader | |
| $writer | |
Definition at line 42 of file BatchRowUpdate.php.
| BatchRowUpdate::__construct | ( | BatchRowIterator | $reader, |
| BatchRowWriter | $writer, | ||
| RowUpdateGenerator | $generator | ||
| ) |
| BatchRowIterator | $reader | Iterator that returns an array of database rows |
| BatchRowWriter | $writer | Writer capable of pushing row updates to the database |
| RowUpdateGenerator | $generator | Generates single row updates based on the rows content |
Definition at line 74 of file BatchRowUpdate.php.
References $generator, $reader, $writer, output(), and writer.
| BatchRowUpdate::execute | ( | ) |
Runs the batch update process.
Definition at line 87 of file BatchRowUpdate.php.
|
protected |
Write out a status update.
| string | $text | The value to print |
Definition at line 132 of file BatchRowUpdate.php.
Referenced by __construct(), execute(), and setOutput().
| BatchRowUpdate::setOutput | ( | $output | ) |
Accepts a callable which will receive a single parameter containing string status updates.
| callable | $output | A callback taking a single string parameter to output |
| MWException |
Definition at line 118 of file BatchRowUpdate.php.
|
protected |
Definition at line 59 of file BatchRowUpdate.php.
Referenced by __construct().
|
protected |
Definition at line 64 of file BatchRowUpdate.php.
Referenced by setOutput().
|
protected |
Definition at line 47 of file BatchRowUpdate.php.
Referenced by __construct().
|
protected |
Definition at line 53 of file BatchRowUpdate.php.
Referenced by __construct().