class TableStatsPdf extends TableStats

Table preferences/statistics

This class preserves the table co-ordinates,fields and helps in drawing/generating the Tables in PDF 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
$nb_fiels Defines properties
$height

Methods

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

The "PhpMyAdmin\Plugins\Schema\Pdf\TableStatsPdf" 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 of the table

void
tableDraw(integer $fontSize, boolean $withDoc, boolean|integer $setColor = 0)

Do draw the table

Details

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

The "PhpMyAdmin\Plugins\Schema\Pdf\TableStatsPdf" constructor

Parameters

Pdf|Svg|Eps|Dia|Pdf $diagram schema diagram
string $db current db name
string $tableName table name
integer $fontSize The font size
integer $pageNumber current page number (from the $cfg['Servers'][$i]['table_coords'] table)
integer $sameWideWidth The max. width among tables
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

See also

in TableStats at line 105
protected void validateTableAndLoadFields()

Validate whether the table exists.

Return Value

void

at line 90
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

at line 105
protected string getTitle()

Returns title of the current table, title can have the dimensions of the table

Return Value

string title of the current table

at line 168
void tableDraw(integer $fontSize, boolean $withDoc, boolean|integer $setColor = 0)

Do draw the table

Parameters

integer $fontSize The font size
boolean $withDoc Whether to include links to documentation
boolean|integer $setColor Whether to display color

Return Value

void

See also