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.
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add in any and then calling output() to send it all. It could be easily changed to send incrementally if that becomes useful
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