[ PHPXref.com ] [ Generated: Sun Jul 20 20:52:01 2008 ] [ VHCS 2.4.7.1 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/gui/tools/pma/ -> pdf_schema.php (summary)

Contributed by Maxime Delorme and merged by lem9

File Size: 1543 lines (53 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 7 files
 gui/tools/pma/libraries/relation.lib.php
 gui/tools/pma/libraries/common.lib.php
 gui/tools/pma/libraries/transformations.lib.php
 gui/tools/pma/footer.inc.php
 gui/tools/pma/libraries/fpdf/ufpdf.php
 gui/tools/pma/header.inc.php
 gui/tools/pma/libraries/fpdf/fpdf.php

Defines 6 classes

PMA_FPDF:: (0 methods):

PMA_FPDF:: (0 methods):

PMA_PDF:: (22 methods):
  PMA_PDF()
  SetAlias()
  _putpages()
  PMA_PDF_setScale()
  PMA_PDF_cellScale()
  PMA_PDF_lineScale()
  PMA_PDF_setXyScale()
  PMA_PDF_setXScale()
  PMA_PDF_setFontSizeScale()
  PMA_PDF_setLineWidthScale()
  PMA_PDF_die()
  Error()
  Header()
  Footer()
  Bookmark()
  _putbookmarks()
  _putresources()
  _putcatalog()
  SetWidths()
  Row()
  CheckPageBreak()
  NbLines()

PMA_RT_Table:: (4 methods):
  PMA_RT_Table_setWidth()
  PMA_RT_Table_setHeight()
  PMA_RT_Table_draw()
  PMA_RT_Table()

PMA_RT_Relation:: (3 methods):
  PMA_RT_Relation_getXy()
  PMA_RT_Relation_draw()
  PMA_RT_Relation()

PMA_RT:: (8 methods):
  PMA_RT_setMinMax()
  PMA_RT_addRelation()
  PMA_RT_strokeGrid()
  PMA_RT_drawRelations()
  PMA_RT_drawTables()
  PMA_RT_showRt()
  PMA_RT()
  PMA_RT_DOC()


Class: PMA_FPDF  - X-Ref

Class: PMA_FPDF  - X-Ref

Class: PMA_PDF  - X-Ref

Extends the "FPDF" class and prepares the work

PMA_PDF($orientation = 'L', $unit = 'mm', $format = 'A4')   X-Ref
The PMA_PDF constructor

This function just refers to the "FPDF" constructor: with PHP3 a class
must have a constructor

param: string  The page orientation (p, portrait, l or landscape)
param: string  The unit for sizes (pt, mm, cm or in)
param: mixed   The page format (A3, A4, A5, letter, legal or an array

SetAlias($name, $value)   X-Ref
No description

_putpages()   X-Ref
No description

PMA_PDF_setScale($scale = 1, $x_min = 0, $y_min = 0, $l_marg = -1, $t_marg = -1)   X-Ref
Sets the scaling factor, defines minimum coordinates and margins

param: double  The scaling factor
param: double  The minimum X coordinate
param: double  The minimum Y coordinate
param: double  The left margin
param: double  The top margin

PMA_PDF_cellScale($w, $h = 0, $txt = '', $border = 0, $ln = 0, $align = '', $fill = 0,$link ='')   X-Ref
Outputs a scaled cell

param: double   The cell width
param: double   The cell height
param: string   The text to output
param: mixed    Wether to add borders or not
param: integer  Where to put the cursor once the output is done
param: string   Align mode
param: integer  Whether to fill the cell with a color or not

PMA_PDF_lineScale($x1, $y1, $x2, $y2)   X-Ref
Draws a scaled line

param: double  The horizontal position of the starting point
param: double  The vertical position of the starting point
param: double  The horizontal position of the ending point
param: double  The vertical position of the ending point

PMA_PDF_setXyScale($x, $y)   X-Ref
Sets x and y scaled positions

param: double  The x position
param: double  The y position

PMA_PDF_setXScale($x)   X-Ref
Sets the X scaled positions

param: double  The x position

PMA_PDF_setFontSizeScale($size)   X-Ref
Sets the scaled font size

param: double   The font size (in points)

PMA_PDF_setLineWidthScale($width)   X-Ref
Sets the scaled line width

param: double  The line width

PMA_PDF_die($error_message = '')   X-Ref
Displays an error message

param: string   the error mesage

Error($error_message = '')   X-Ref
Aliases the "Error()" function from the FPDF class to the
"PMA_PDF_die()" one

param: string   the error mesage

Header()   X-Ref
No description

Footer()   X-Ref
No description

Bookmark($txt,$level=0,$y=0)   X-Ref
No description

_putbookmarks()   X-Ref
No description

_putresources()   X-Ref
No description

_putcatalog()   X-Ref
No description

SetWidths($w)   X-Ref
No description

Row($data,$links)   X-Ref
No description

CheckPageBreak($h)   X-Ref
No description

NbLines($w,$txt)   X-Ref
No description

Class: PMA_RT_Table  - X-Ref

Draws tables schema

PMA_RT_Table_setWidth($ff)   X-Ref
Sets the width of the table

param: integer   The font size

PMA_RT_Table_setHeight()   X-Ref
Sets the height of the table


PMA_RT_Table_draw($show_info, $ff, $setcolor=0)   X-Ref
Do draw the table

param: boolean   Whether to display table position or not
param: integer   The font size
param: boolean   Whether to display color
param: integer   The max. with among tables

PMA_RT_Table($table_name, $ff, &$same_wide_width)   X-Ref
The "PMA_RT_Table" constructor

param: string    The table name
param: integer   The font size
param: integer   The max. with among tables

Class: PMA_RT_Relation  - X-Ref

Draws relation links

PMA_RT_Relation_getXy($table, $column)   X-Ref
Gets arrows coordinates

param: string    The current table name
param: string    The relation column name
return: array     Arrows coordinates

PMA_RT_Relation_draw($change_color, $i)   X-Ref
Do draws relation links

param: boolean   Whether to use one color per relation or not
param: integer   The id of the link to draw

PMA_RT_Relation($master_table, $master_field, $foreign_table, $foreign_field)   X-Ref
The "PMA_RT_Relation" constructor

param: string   The master table name
param: string   The relation field in the master table
param: string   The foreign table name
param: string   The relation field in the foreign table

Class: PMA_RT  - X-Ref

Draws and send the database schema

PMA_RT_setMinMax($table)   X-Ref
Sets X and Y minimum and maximum for a table cell

param: string   The table name

PMA_RT_addRelation($master_table , $master_field, $foreign_table, $foreign_field)   X-Ref
Defines relation objects

param: string   The master table name
param: string   The relation field in the master table
param: string   The foreign table name
param: string   The relation field in the foreign table

PMA_RT_strokeGrid()   X-Ref
Draws the grid


PMA_RT_drawRelations($change_color)   X-Ref
Draws relation arrows

param: boolean  Whether to use one color per relation or not

PMA_RT_drawTables($show_info,$draw_color=0)   X-Ref
Draws tables

param: boolean  Whether to display table position or not

PMA_RT_showRt()   X-Ref
Ouputs the PDF document to a file


PMA_RT( $which_rel, $show_info = 0, $change_color = 0 , $show_grid = 0, $all_tab_same_wide = 0, $orientation = 'L', $paper = 'A4')   X-Ref
The "PMA_RT" constructor

param: mixed    The scaling factor
param: integer  The page number to draw (from the
param: boolean  Whether to display table position or not
param: boolean  Was originally whether to use one color per
param: boolean  Whether to draw grids or not
param: boolean  Whether all tables should have the same width or not

PMA_RT_DOC($alltables )   X-Ref
No description



[ Powered by PHPXref - Served by Debian GNU/Linux ]