abstract class TableStats

Table preferences/statistics

This class preserves the table co-ordinates,fields and helps in drawing/generating the tables.

Properties

protected $diagram
protected $db
protected $pageNumber
protected $tableName
protected $showKeys
protected $tableDimension
$displayfield
$fields
$primary
$x
$y
$width
$heightCell
protected $offline
protected Relation $relation
protected Font $font

Methods

__construct(Pdf|Svg|Eps|Dia|Pdf $diagram, string $db, integer $pageNumber, string $tableName, boolean $showKeys, boolean $tableDimension, boolean $offline)

Constructor

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

at line 67
__construct(Pdf|Svg|Eps|Dia|Pdf $diagram, string $db, integer $pageNumber, string $tableName, boolean $showKeys, boolean $tableDimension, boolean $offline)

Constructor

Parameters

Pdf|Svg|Eps|Dia|Pdf $diagram schema diagram
string $db current db name
integer $pageNumber current page number (from the $cfg['Servers'][$i]['table_coords'] table)
string $tableName table name
boolean $showKeys whether to display keys or not
boolean $tableDimension whether to display table position or not
boolean $offline whether the coordinates are sent from the browser

at line 105
protected void validateTableAndLoadFields()

Validate whether the table exists.

Return Value

void

at line 140
abstract protected void showMissingTableError()

Displays an error when the table cannot be found.

Return Value

void

at line 147
protected void loadCoordinates()

Loads coordinates of a table

Return Value

void

at line 167
protected void loadDisplayField()

Loads the table's display field

Return Value

void

at line 177
protected void loadPrimaryKey()

Loads the PRIMARY key.

Return Value

void

at line 199
protected string getTitle()

Returns title of the current table, title can have the dimensions/co-ordinates of the table

Return Value

string title of the current table