Page MenuHomeWickedGov Phorge

RowUpdateGenerator.php
No OneTemporary

Size
663 B
Referenced Files
None
Subscribers
None

RowUpdateGenerator.php

<?php
/**
* @license GPL-2.0-or-later
*/
/**
* Interface for generating updates to single rows in the database.
*
* @stable to implement
* @ingroup Maintenance
*/
interface RowUpdateGenerator {
/**
* Given a database row, generates an array mapping column names to
* updated value within the database row.
*
* Sample Response:
* return [
* 'some_col' => 'new value',
* 'other_col' => 99,
* ];
*
* @param stdClass $row A row from the database
* @return array Map of column names to updated value within the
* database row. When no update is required returns an empty array.
*/
public function update( $row );
}

File Metadata

Mime Type
text/x-php
Expires
Oct 4 2026, 21:01 (5 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
6e/c3/924f13bbc47a37d4f488528a5db9
Default Alt Text
RowUpdateGenerator.php (663 B)

Event Timeline