TableStats
abstract class TableStats (View source)
Table preferences/statistics
This class preserves the table co-ordinates,fields and helps in drawing/generating the tables.
Properties
string | $displayfield | ||
list<string> | $fields | ||
list<string|null> | $primary | ||
int|float | $x | ||
int|float | $y | ||
int|float | $width | ||
int | $heightCell | ||
protected Relation | $relation | ||
protected Font | $font |
Methods
__construct(Dia $diagram, string $db, int $pageNumber, string $tableName, bool $showKeys, bool $tableDimension, bool $offline)
No description
void
validateTableAndLoadFields()
Validate whether the table exists.
void
showMissingTableError()
Displays an error when the table cannot be found.
void
loadCoordinates()
Loads coordinates of a table
void
loadDisplayField()
Loads the table's display field
void
loadPrimaryKey()
Loads the PRIMARY key.
string
getTitle()
Returns title of the current table, title can have the dimensions/co-ordinates of the table
Details
__construct(Dia $diagram, string $db, int $pageNumber, string $tableName, bool $showKeys, bool $tableDimension, bool $offline)
No description
protected void
validateTableAndLoadFields()
Validate whether the table exists.
abstract 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