class TableStatsEps extends TableStats (View source)

Table preferences/statistics

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

Properties

Eps $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
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(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

Parameters

Pdf|Svg|Eps|Dia $diagram

schema diagram

string $db

current db name

string $tableName

table name

string $font

The font name

int $fontSize

The font size

int $pageNumber

current page number (from the $cfg['Servers'][$i]['table_coords'] table)

int $same_wide_width

The max width among tables

bool $showKeys

whether to display keys or not

bool $tableDimension

whether to display table position or not

bool $offline

whether the coordinates are sent from the browser

See also

Eps
TableStatsEps::setWidthTable
TableStatsEps::setHeightTable

protected void validateTableAndLoadFields()

Validate whether the table exists.

Return Value

void

protected void showMissingTableError()

Displays an error when the table cannot be found.

Return Value

void

protected void loadCoordinates()

Loads coordinates of a table

Return Value

void

protected void loadDisplayField()

Loads the table's display field

Return Value

void

protected void loadPrimaryKey()

Loads the PRIMARY key.

Return Value

void

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

void tableDraw(bool $showColor)

Draw the table

Parameters

bool $showColor

Whether to display color

Return Value

void

See also

Eps
Eps::line
Eps::rect