TableStatsDia
class TableStatsDia extends TableStats (View source)
Table preferences/statistics
This class preserves the table co-ordinates,fields and helps in drawing/generating the Tables in dia XML document.
Properties
string | $displayfield | from TableStats | |
list<string> | $fields | from TableStats | |
list<string|null> | $primary | from TableStats | |
int|float | $x | from TableStats | |
int|float | $y | from TableStats | |
int|float | $width | from TableStats | |
int | $heightCell | from TableStats | |
protected Relation | $relation | from TableStats | |
protected Font | $font | from TableStats | |
int | $tableId | ||
string | $tableColor | ||
Dia | $diagram |
Methods
No description
Displays an error when the table cannot be found.
Returns title of the current table, title can have the dimensions/co-ordinates of the table
Do draw the table
Details
__construct(Dia $diagram, string $db, string $tableName, int $pageNumber, bool $showKeys = false, bool $offline = false)
No description
protected void
validateTableAndLoadFields()
Validate whether the table exists.
protected void
showMissingTableError()
Displays an error when the table cannot be found.
protected void
loadCoordinates()
Loads coordinates of a table
protected void
loadDisplayField()
Loads the table's display field
protected void
loadPrimaryKey()
Loads the PRIMARY key.
protected string
getTitle()
Returns title of the current table, title can have the dimensions/co-ordinates of the table
void
tableDraw(bool $showColor)
Do draw the table
Tables are generated using object type Database - Table primary fields are underlined in tables. Dia object is used to generate the XML of Dia Document. Database Table Object and their attributes are involved in the combination of displaying Database - Table on Dia Document.