class TableMover (View source)

Properties

string $sqlConstraintsQuery

A string containing the SQL query for constraints to be execute after all tables have been created.

Methods

__construct(DatabaseInterface $dbi, Relation $relation)

No description

bool
moveCopy(string $sourceDb, string $sourceTable, string $targetDb, string $targetTable, MoveScope $what, MoveMode $mode, bool $addDropIfExists)

No description

int|bool
duplicateInfo(string $work, string $table, array $getFields, array $whereFields, array $newFields)

Inserts existing entries in a PMA_* table by reading a value from an old entry

Details

__construct(DatabaseInterface $dbi, Relation $relation)

No description

Parameters

DatabaseInterface $dbi
Relation $relation

bool moveCopy(string $sourceDb, string $sourceTable, string $targetDb, string $targetTable, MoveScope $what, MoveMode $mode, bool $addDropIfExists)

No description

Parameters

string $sourceDb
string $sourceTable
string $targetDb
string $targetTable
MoveScope $what
MoveMode $mode
bool $addDropIfExists

Return Value

bool

int|bool duplicateInfo(string $work, string $table, array $getFields, array $whereFields, array $newFields)

Inserts existing entries in a PMA_* table by reading a value from an old entry

Parameters

string $work

The array index, which Relation feature to check ('relwork', 'commwork', ...)

string $table

The array index, which PMA-table to update ('bookmark', 'relation', ...)

array $getFields

Which fields will be SELECT'ed from the old entry

array $whereFields

Which fields will be used for the WHERE query (array('FIELDNAME' => 'FIELDVALUE'))

array $newFields

Which fields will be used as new VALUES. These are the important keys which differ from the old entry (array('FIELDNAME' => 'NEW FIELDVALUE'))

Return Value

int|bool