class Update extends EditAction

A request to update an object

Methods

__construct(string $data)

Construct new database update request

perform(PDO $pdo, string $table, string $column, int $id)

Perform the action on the database

Details

at line line 25
__construct(string $data)

Construct new database update request

Parameters

string $data The new data to set

at line line 33
perform(PDO $pdo, string $table, string $column, int $id)

Perform the action on the database

Parameters

PDO $pdo The database connection
string $table The name of the affected table
string $column The name of the affected column
int $id The ID of the affected entry