Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6042747
RowUpdateGenerator.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
663 B
Referenced Files
None
Subscribers
None
RowUpdateGenerator.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment