class RelationStatsPdf extends RelationStats

Relation preferences/statistics

This class fetches the table master and foreign fields positions and helps in generating the Table references and then connects master table's master field to foreign table's foreign key in PDF document.

Properties

protected $diagram from RelationStats
$xSrc Defines properties from RelationStats
$ySrc from RelationStats
$srcDir from RelationStats
$destDir from RelationStats
$xDest from RelationStats
$yDest from RelationStats
$wTick from RelationStats

Methods

__construct(object $diagram, string $master_table, string $master_field, string $foreign_table, string $foreign_field)

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

void
relationDraw(boolean $showColor, integer $i)

draws relation links and arrows shows foreign key relations

Details

at line 37
__construct(object $diagram, string $master_table, string $master_field, string $foreign_table, string $foreign_field)

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

Parameters

object $diagram The diagram
string $master_table The master table name
string $master_field The relation field in the master table
string $foreign_table The foreign table name
string $foreign_field The relation field in the foreign table

at line 66
void relationDraw(boolean $showColor, integer $i)

draws relation links and arrows shows foreign key relations

Parameters

boolean $showColor Whether to use one color per relation or not
integer $i The id of the link to draw

Return Value

void

See also