80 $this->
output =
function () {
88 foreach ( $this->reader as
$rows ) {
90 foreach (
$rows as $row ) {
91 $update = $this->generator->update( $row );
94 'primaryKey' => $this->reader->extractPrimaryKeys( $row ),
101 $this->
output(
"Processing " . count( $updates ) .
" rows\n" );
102 $this->
writer->write( $updates );
106 $this->
output(
"Completed\n" );
126 call_user_func( $this->
output, $text );
setOutput(callable $output)
Accepts a callable which will receive a single parameter containing string status updates.
__construct(BatchRowIterator $reader, BatchRowWriter $writer, RowUpdateGenerator $generator)
execute()
Runs the batch update process.
output( $text)
Write out a status update.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction $rows