/** * The "PMA\libraries\plugins\schema\dia\TableStatsDia" constructor * * @param object $diagram The current dia document * @param string $db The database name * @param string $tableName The table name * @param integer $pageNumber The current page number (from the * $cfg['Servers'][$i]['table_coords'] table) * @param boolean $showKeys Whether to display ONLY keys or not * @param boolean $offline Whether the coordinates are sent from the browser */ public function __construct($diagram, $db, $tableName, $pageNumber, $showKeys = false, $offline = false) { parent::__construct($diagram, $db, $pageNumber, $tableName, $showKeys, false, $offline); /** * Every object in Dia document needs an ID to identify * so, we used a static variable to keep the things unique */ $this->tableId = ++DiaRelationSchema::$objectId; }
/** * The "PMA\libraries\plugins\schema\eps\TableStatsEps" constructor * * @param object $diagram The EPS diagram * @param string $db The database name * @param string $tableName The table name * @param string $font The font name * @param integer $fontSize The font size * @param integer $pageNumber Page number * @param integer &$same_wide_width The max width among tables * @param boolean $showKeys Whether to display keys or not * @param boolean $tableDimension Whether to display table position or not * @param boolean $offline Whether the coordinates are sent * from the browser * * @see PMA_EPS, Table_Stats_Eps::Table_Stats_setWidth, * PMA\libraries\plugins\schema\eps\TableStatsEps::Table_Stats_setHeight */ public function __construct($diagram, $db, $tableName, $font, $fontSize, $pageNumber, &$same_wide_width, $showKeys = false, $tableDimension = false, $offline = false) { parent::__construct($diagram, $db, $pageNumber, $tableName, $showKeys, $tableDimension, $offline); // height and width $this->_setHeightTable($fontSize); // setWidth must me after setHeight, because title // can include table height which changes table width $this->_setWidthTable($font, $fontSize); if ($same_wide_width < $this->width) { $same_wide_width = $this->width; } }
/** * The "PMA\libraries\plugins\schema\pdf\TableStatsPdf" constructor * * @param object $diagram The PDF diagram * @param string $db The database name * @param string $tableName The table name * @param integer $fontSize The font size * @param integer $pageNumber The current page number (from the * $cfg['Servers'][$i]['table_coords'] table) * @param integer &$sameWideWidth The max. with among tables * @param boolean $showKeys Whether to display keys or not * @param boolean $tableDimension Whether to display table position or not * @param boolean $offline Whether the coordinates are sent * from the browser * * @see PMA_Schema_PDF, Table_Stats_Pdf::Table_Stats_setWidth, * PMA\libraries\plugins\schema\pdf\TableStatsPdf::Table_Stats_setHeight */ public function __construct($diagram, $db, $tableName, $fontSize, $pageNumber, &$sameWideWidth, $showKeys = false, $tableDimension = false, $offline = false) { parent::__construct($diagram, $db, $pageNumber, $tableName, $showKeys, $tableDimension, $offline); $this->heightCell = 6; $this->_setHeight(); /* * setWidth must me after setHeight, because title * can include table height which changes table width */ $this->_setWidth($fontSize); if ($sameWideWidth < $this->width) { $sameWideWidth = $this->width; } }