class TableStatsDia extends TableStats

Table preferences/statistics

This class preserves the table co-ordinates,fields and helps in drawing/generating the Tables in dia XML document.

Properties

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

Methods

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

The "PhpMyAdmin\Plugins\Schema\Dia\TableStatsDia" 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

void
tableDraw(boolean $showColor)

Do draw the table

Details

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

The "PhpMyAdmin\Plugins\Schema\Dia\TableStatsDia" constructor

Parameters

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

in TableStats at line 105
protected void validateTableAndLoadFields()

Validate whether the table exists.

Return Value

void

at line 70
protected void showMissingTableError()

Displays an error when the table cannot be found.

Return Value

void

in TableStats at line 147
protected void loadCoordinates()

Loads coordinates of a table

Return Value

void

in TableStats at line 167
protected void loadDisplayField()

Loads the table's display field

Return Value

void

in TableStats at line 177
protected void loadPrimaryKey()

Loads the PRIMARY key.

Return Value

void

in TableStats 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

at line 98
void tableDraw(boolean $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.

Parameters

boolean $showColor Whether to show color for tables text or not if showColor is true then an array of $listOfColors will be used to choose the random colors for tables text we can change/add more colors to this array

Return Value

void

See also