|
| fieldsDiffer (array $dst_field, array $src_field) |
|
| keysDiffer (string $dst_name, array $dst_fields, string $src_name, array $src_fields) |
|
| indexesDiffer (string $dst_name, array $dst_idx, string $src_name, array $src_idc) |
|
| referencesDiffer (string $dst_name, array $dst_ref, string $src_name, array $src_ref) |
|
Constructs a new instance.
- Parameters
-
ConnectionInterface | $con | The DB handle |
string | $prefix | The DB table prefix |
Gets the specified table (create it if necessary).
- Parameters
-
string | $name | The table name |
- Returns
- Table The database structure table.
References Structure\table().
tableExists |
( |
string |
$name | ) |
|
Determines if table exists.
- Parameters
-
- Returns
- bool True if table exists, False otherwise.
Referenced by Structure\synchronize().
fieldsDiffer |
( |
array |
$dst_field, |
|
|
array |
$src_field |
|
) |
| |
|
private |
Check if two fields are the same
- Parameters
-
array<string,mixed> | $dst_field The destination field |
array<string,mixed> | $src_field The source field |
- Returns
- bool
Referenced by Structure\synchronize().
keysDiffer |
( |
string |
$dst_name, |
|
|
array |
$dst_fields, |
|
|
string |
$src_name, |
|
|
array |
$src_fields |
|
) |
| |
|
private |
Check if two keys are the same
- Parameters
-
string | $dst_name | The destination name |
| array<string> | $dst_fields The destination fields |
string | $src_name | The source name |
| array<string> | $src_fields The source fields |
- Returns
- bool
Referenced by Structure\synchronize().
indexesDiffer |
( |
string |
$dst_name, |
|
|
array |
$dst_idx, |
|
|
string |
$src_name, |
|
|
array |
$src_idc |
|
) |
| |
|
private |
Check if two indexes are the same
- Parameters
-
string | $dst_name | The destination name |
| array<string,mixed> | $dst_idx The destination index |
string | $src_name | The source name |
| array<string,mixed> | $src_idc The source idc |
- Returns
- bool
Referenced by Structure\synchronize().
referencesDiffer |
( |
string |
$dst_name, |
|
|
array |
$dst_ref, |
|
|
string |
$src_name, |
|
|
array |
$src_ref |
|
) |
| |
|
private |
Check if two references are the same
- Parameters
-
string | $dst_name | The destination name |
| array<string,mixed> | $dst_ref The destination reference |
string | $src_name | The source name |
| array<string,mixed> | $src_ref The source reference |
- Returns
- bool
Referenced by Structure\synchronize().
The documentation for this class was generated from the following file: