MediaWiki REL1_37
|
Public Member Functions | |
__construct (BatchRowIterator $reader, BatchRowWriter $writer, RowUpdateGenerator $generator) | |
execute () | |
Runs the batch update process. | |
setOutput (callable $output) | |
Accepts a callable which will receive a single parameter containing string status updates. | |
Protected Member Functions | |
output ( $text) | |
Write out a status update. | |
Protected Attributes | |
RowUpdateGenerator | $generator |
Generates single row updates based on the rows content. | |
callable | $output |
Output callback. | |
BatchRowIterator | $reader |
Iterator that returns an array of database rows. | |
BatchRowWriter | $writer |
Writer capable of pushing row updates to the database. | |
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, and output().
BatchRowUpdate::execute | ( | ) |
Runs the batch update process.
Definition at line 87 of file BatchRowUpdate.php.
References output().
|
protected |
Write out a status update.
string | $text | The value to print |
Definition at line 125 of file BatchRowUpdate.php.
References output().
Referenced by __construct(), execute(), output(), and setOutput().
BatchRowUpdate::setOutput | ( | callable | $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 |
Definition at line 116 of file BatchRowUpdate.php.
|
protected |
Generates single row updates based on the rows content.
Definition at line 59 of file BatchRowUpdate.php.
Referenced by __construct().
|
protected |
|
protected |
Iterator that returns an array of database rows.
Definition at line 47 of file BatchRowUpdate.php.
Referenced by __construct().
|
protected |
Writer capable of pushing row updates to the database.
Definition at line 53 of file BatchRowUpdate.php.
Referenced by __construct().