MediaWiki master
MediaWiki\Utils\RowUpdateGenerator Interface Reference

Interface for generating updates to single rows in the database. More...

Public Member Functions

 update ( $row)
 Given a database row, generates an array mapping column names to updated value within the database row.
 

Detailed Description

Interface for generating updates to single rows in the database.

Stability: stable
to implement

Definition at line 14 of file RowUpdateGenerator.php.

Member Function Documentation

◆ update()

MediaWiki\Utils\RowUpdateGenerator::update ( $row)

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, ];

Parameters
\\stdClass$rowA row from the database
Returns
array Map of column names to updated value within the database row. When no update is required returns an empty array.

The documentation for this interface was generated from the following file: