[ Index ]
 

Code source de phpMyAdmin 2.10.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/ -> pdf_schema.php (sommaire)

Contributed by Maxime Delorme and merged by lem9

Poids: 1382 lignes (53 kb)
Inclus ou requis:0 fois
Référencé: 2 fois
Nécessite: 6 fichiers
 libraries/header.inc.php
 libraries/transformations.lib.php
 libraries/footer.inc.php
 libraries/tcpdf/tcpdf.php
 libraries/relation.lib.php
 libraries/common.lib.php

Définit 4 classes

PMA_PDF:: (22 méthodes):
  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 méthodes):
  PMA_RT_Table_setWidth()
  PMA_RT_Table_setHeight()
  PMA_RT_Table_draw()
  PMA_RT_Table()

PMA_RT_Relation:: (3 méthodes):
  PMA_RT_Relation_getXy()
  PMA_RT_Relation_draw()
  PMA_RT_Relation()

PMA_RT:: (8 méthodes):
  PMA_RT_setMinMax()
  PMA_RT_addRelation()
  PMA_RT_strokeGrid()
  PMA_RT_drawRelations()
  PMA_RT_drawTables()
  PMA_RT_showRt()
  PMA_RT()
  PMA_RT_DOC()


Classe: 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
Pas de description

_putpages()   X-Ref
Pas de 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
Pas de description

Footer()   X-Ref
Pas de description

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

_putbookmarks()   X-Ref
Pas de description

_putresources()   X-Ref
Pas de description

_putcatalog()   X-Ref
Pas de description

SetWidths($w)   X-Ref
Pas de description

Row($data, $links)   X-Ref
Pas de description

CheckPageBreak($h)   X-Ref
Pas de description

NbLines($w, $txt)   X-Ref
Pas de description

Classe: 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

Classe: 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

Classe: 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
Pas de description



Généré le : Mon Nov 26 15:18:20 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics