| 1 |
<?php |
| 2 |
|
| 3 |
namespace WPSynchro\Database; |
| 4 |
|
| 5 |
use WPSynchro\Database\TableColumns; |
| 6 |
|
| 7 |
/** |
| 8 |
* Class for a database table returned by masterdata |
| 9 |
*/ |
| 10 |
class Table |
| 11 |
{ |
| 12 |
public $name = ""; |
| 13 |
public $rows = 0; |
| 14 |
public $completed_rows = 0; |
| 15 |
public $row_avg_bytes = 0; |
| 16 |
public $data_total_bytes = 0; |
| 17 |
public $create_table = ""; |
| 18 |
public $is_view = false; |
| 19 |
// Primary key |
| 20 |
public $primary_key_column = ""; |
| 21 |
public $last_primary_key = 0; |
| 22 |
public $column_types; |
| 23 |
// State |
| 24 |
public $is_completed = false; |
| 25 |
public $temp_name = ''; |
| 26 |
|
| 27 |
public function __construct() |
| 28 |
{ |
| 29 |
$this->column_types = new TableColumns(); |
| 30 |
} |
| 31 |
|
| 32 |
public function getColumnNames() |
| 33 |
{ |
| 34 |
return $this->column_types->getAllColumnNames(); |
| 35 |
} |
| 36 |
} |
| 37 |
|