/** * The "Table_Stats_Dia" 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 = ++PMA_Dia_Relation_Schema::$objectId; }
/** * The "Table_Stats_Dia" constructor * * @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 * * @global object $dia The current dia document * * @see PMA_DIA */ function __construct($tableName, $pageNumber, $showKeys = false, $offline = false) { global $dia; parent::__construct($dia, $GLOBALS['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 */ PMA_Dia_Relation_Schema::$objectId += 1; $this->tableId = PMA_Dia_Relation_Schema::$objectId; }
/** * The "Table_Stats_Eps" 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 * * @access private * @see PMA_EPS, Table_Stats_Eps::Table_Stats_setWidth, * Table_Stats_Eps::Table_Stats_setHeight */ 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 "Table_Stats_Pdf" 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, * Table_Stats_Pdf::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; } }
/** * The "Table_Stats_Pdf" constructor * * @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 $showInfo Whether to display table position or not * * @global object $pdf The current PDF document * @global array $cfgRelation The relations settings * @global string $db The current db name * * @see PMA_Schema_PDF, Table_Stats_Pdf::Table_Stats_setWidth, * Table_Stats_Pdf::Table_Stats_setHeight */ function __construct($tableName, $fontSize, $pageNumber, &$sameWideWidth, $showKeys = false, $showInfo = false) { global $pdf, $cfgRelation, $db; parent::__construct($pdf, $db, $pageNumber, $tableName, $showKeys, $showInfo); $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; } }
/** * The "Table_Stats_Svg" constructor * * @param string $tableName The table name * @param string $font Font face * @param integer $fontSize The font size * @param integer $pageNumber Page number * @param integer &$same_wide_width The max. with among tables * @param boolean $showKeys Whether to display keys or not * @param boolean $showInfo Whether to display table position or not * * @global object $svg The current SVG image document * @global integer The current page number (from the * $cfg['Servers'][$i]['table_coords'] table) * @global array $cfgRelation The relations settings * @global string $db The current db name * * @access private * * @see PMA_SVG, Table_Stats_Svg::Table_Stats_setWidth, * Table_Stats_Svg::Table_Stats_setHeight */ function __construct($tableName, $font, $fontSize, $pageNumber, &$same_wide_width, $showKeys = false, $showInfo = false) { global $svg, $cfgRelation, $db; parent::__construct($svg, $db, $pageNumber, $tableName, $showKeys, $showInfo); // 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; } }