Inserts existing entries in a PMA_* table by reading a value from an old
entry
public static duplicateInfo ( string $work, string $pma_table, array $get_fields, array $where_fields, array $new_fields ) : integer | boolean | ||
$work | string | The array index, which Relation feature to check ('relwork', 'commwork', ...) |
$pma_table | string | The array index, which PMA-table to update ('bookmark', 'relation', ...) |
$get_fields | array | Which fields will be SELECT'ed from the old entry |
$where_fields | array | Which fields will be used for the WHERE query (array('FIELDNAME' => 'FIELDVALUE')) |
$new_fields | array | Which fields will be used as new VALUES. These are the important keys which differ from the old entry (array('FIELDNAME' => 'NEW FIELDVALUE')) |
return | integer | boolean |