TableStatsSvg
class TableStatsSvg extends TableStats (View source)
Table preferences/statistics
This class preserves the table co-ordinates,fields and helps in drawing/generating the Tables in SVG XML document.
Properties
Svg | $diagram | ||
protected string | $db | from TableStats | |
protected int | $pageNumber | from TableStats | |
protected string | $tableName | from TableStats | |
protected bool | $showKeys | from TableStats | |
protected bool | $tableDimension | from TableStats | |
mixed | $displayfield | from TableStats | |
array | $fields | from TableStats | |
array | $primary | from TableStats | |
int|float | $x | from TableStats | |
int|float | $y | from TableStats | |
int | $width | from TableStats | |
int | $heightCell | from TableStats | |
protected bool | $offline | from TableStats | |
protected Relation | $relation | from TableStats | |
protected Font | $font | from TableStats | |
int | $height | ||
int | $currentCell |
Methods
__construct(Pdf|Svg|Eps|Dia $diagram, string $db, string $tableName, string $font, int $fontSize, int $pageNumber, int $same_wide_width, bool $showKeys = false, bool $tableDimension = false, bool $offline = false)
No description
void
showMissingTableError()
Displays an error when the table cannot be found.
string
getTitle()
Returns title of the current table, title can have the dimensions/co-ordinates of the table
from
TableStats
void
tableDraw(bool $showColor)
draw the table
Details
__construct(Pdf|Svg|Eps|Dia $diagram, string $db, string $tableName, string $font, int $fontSize, int $pageNumber, int $same_wide_width, bool $showKeys = false, bool $tableDimension = 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)
draw the table