MediaWiki REL1_32
RowUpdateGenerator Interface Reference

Public Member Functions

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

Detailed Description

Definition at line 23 of file RowUpdateGenerator.php.

Member Function Documentation

◆ update()

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: