Class PDFExport

Description

Construct a PDF from the array representation

Located in /inc/export/pdfexport.php (line 35)


	
			
Variable Summary
Method Summary
PDFExport PDFExport ( &$exportArray)
void log ( $string, [ $prio = 10])
void makePDFBuffer ()
void Output ()
void render ()
void _calcColWidths ( $widths,  $entry)
void _confSplit ( $c)
void _formatCell ( $d,  $col,  $isHeader,  $setborder)
void _formatRow ( $row, [ $isHeader = false], [ $border = NULL])
void _getColWidth ( $col,  $entry)
void _getColWidthRand ( $col)
void _parseArray ()
void _readConfig ()
void _setMetaInfo ()
void _setPageMargins ()
Variables
mixed $bottomMargin = 15 (line 49)
mixed $cols = array() (line 93)
mixed $colStart = array() (line 94)
mixed $DEBUG = 0 (line 99)
mixed $doubleLineWidth = 0.2 (line 61)
mixed $ea (line 36)
mixed $export (line 38)
mixed $filename = '/tmp/test.pdf' (line 39)
mixed $fontSubstitutionTable (line 56)
mixed $footerLineHeight = 4 (line 60)
mixed $headerLineHeight = 6 (line 59)
mixed $headerLines = 'TB' (line 54)
mixed $leftMargin = 15 (line 46)
mixed $minAutoMargin = 4 (line 51)
mixed $normalDrawColor = array( 0, 0, 0) (line 67)
mixed $normalFillColor = array(224,235,255) (line 66)
mixed $normalFont = array(PDF_FONT,'',12) (line 69)
mixed $normalLineHeight = 5 (line 58)
mixed $normalTextColor = array( 0, 0, 0) (line 68)
mixed $orientation = 'L' (line 42)
mixed $pageHeight = 210 (line 45)
mixed $pageWidth = 297 (line 44)
mixed $pdf (line 37)
mixed $rightMargin = 15 (line 47)
mixed $rowLines = '' (line 53)
mixed $sectionHeaderDrawColor = array( 0, 0, 0) (line 72)
mixed $sectionHeaderFillColor = array(255,255,255) (line 71)
mixed $sectionHeaderFont = array(PDF_FONT,'B',14) (line 74)
mixed $sectionHeaderLineHeight = 8 (line 63)
mixed $sectionHeaderTextColor = array( 0, 0, 0) (line 73)
mixed $singleCellTopMargin = 1 (line 64)
mixed $singleLineWidth = 0.3 (line 62)
mixed $size = 'A4' (line 43)
mixed $tableFooterDrawColor = array( 0, 0, 0) (line 82)
mixed $tableFooterFillColor = array( 0, 0,128) (line 81)
mixed $tableFooterFont = array(PDF_FONT,'',9) (line 84)
mixed $tableFooterTextColor = array(255,255,255) (line 83)
mixed $tableHeaderAlignment = 'L' (line 52)
mixed $tableHeaderDrawColor = array( 0, 0, 0) (line 77)
mixed $tableHeaderFillColor = array( 0, 0,128) (line 76)
mixed $tableHeaderFont = array(PDF_FONT,'B',12) (line 79)
mixed $tableHeaderTextColor = array(255,255,255) (line 78)
mixed $tableRow = 0 (line 95)
mixed $tableTotalDrawColor = array( 0, 0, 0) (line 87)
mixed $tableTotalFillColor = array(224,235,255) (line 86)
mixed $tableTotalFont = array(PDF_FONT,'',12) (line 89)
mixed $tableTotalTextColor = array( 0, 0, 0) (line 88)
mixed $topMargin = 15 (line 48)
mixed $useBigTable = true (line 97)
mixed $writeToFile = false (line 40)
Methods
Constructor PDFExport (line 101)
PDFExport PDFExport ( &$exportArray)
  • &$exportArray
log (line 376)
void log ( $string, [ $prio = 10])
  • $string
  • $prio
makePDFBuffer (line 106)
void makePDFBuffer ()
Output (line 121)
void Output ()
render (line 111)
void render ()
_calcColWidths (line 209)

calculate column widths

  • todo: //TODO: make sure PDF columns don't go over right side of page
void _calcColWidths ( $widths,  $entry)
  • $widths
  • $entry
_confSplit (line 175)
void _confSplit ( $c)
  • $c
_formatCell (line 349)
void _formatCell ( $d,  $col,  $isHeader,  $setborder)
  • $d
  • $col
  • $isHeader
  • $setborder
_formatRow (line 341)
void _formatRow ( $row, [ $isHeader = false], [ $border = NULL])
  • $row
  • $isHeader
  • $border
_getColWidth (line 240)

Calculate the width of an actual column

  • todo: //TODO: calculate width of header from actual header data (bold) rather than 1.1 * non-bold
void _getColWidth ( $col,  $entry)
  • $col
  • $entry
_getColWidthRand (line 263)
void _getColWidthRand ( $col)
  • $col
_parseArray (line 290)
void _parseArray ()
_readConfig (line 139)
void _readConfig ()
_setMetaInfo (line 129)
void _setMetaInfo ()
_setPageMargins (line 179)
void _setPageMargins ()
_setTableAttributes (line 188)
void _setTableAttributes ()

Documentation generated on Tue, 06 Mar 2007 10:01:52 +0000 by phpDocumentor 1.3.0