Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /data/customers/alex/htdocs/include/pc4p_table.inc
PC4P - pc4p

pc4p_table

pc4p_object
   |
  +-- pc4p_table

Table object provides table-functionality

 

private class pc4p_table extends pc4p_object

Table object provides table-functionality

AuthorsAlexander Wirtz <wirtz@web-active.com>

 

Methods inherited from pc4p_object

pc4p_object, pc4p_set_margin, pc4p_set_width, pc4p_set_alignment, pc4p_set_textleading, pc4p_draw

Public Method Summary

void

pc4p_table(object pc4p_page &$parent)

Constructor
void

pc4p_create_tablematrix(integer $colsize, [ integer $rowsize, array $colnames, array $rownames ])

Creates the table and sets the names for columns and rows
void

pc4p_add_tablerow([ string $rowname ])

Adds a row to the table
void

pc4p_set_tablecolsize(array $colsize)

Sets the width for the columns
void

pc4p_set_tableborder(string $style)

Set the style of the tableborder

Private Method Summary

void

pc4p_draw_children()

Walks through the rows and cols and calls pc4p_draw in each cell;Warning: documentation is missing.
integer

pc4p_calc_offset(object pc4p_page &$parent)

Calculates the offsets in all cells, especially the x-coordinates!!!Warning: documentation is missing.

Fields inherited from pc4p_object

$children, $pdfp, $width, $height, $margin, $act_width, $act_height, $draw_height, $alignment, $leading

Private Field Summary

array

$cell

Array for accessing the cells of the table
array

$colsize

Array containing the sizes of each column
array

$rowsize

Array containing the sizes of each row
array

$colnames

Array containing the names of each column
array

$rownames

Array containing the names of each row
integer

$draw_width

x-Pos used when calculating the positions of subobjects

Public Method Details

pc4p_table

public void pc4p_table( object pc4p_page &$parent )

  Constructor

Parameter
object pc4p_page &$parent
Returns void

Author(s) Alexander Wirtz <wirtz@web-active.com>

pc4p_create_tablematrix

public void pc4p_create_tablematrix( integer $colsize, [ integer $rowsize, array $colnames, array $rownames ] )

  Creates the table and sets the names for columns and rows
if provided, otherwise an index is used as name for each.

Parameter
integer $colsize
integer $rowsize = >>1<<
array $colnames = >>array()<<
array $rownames = >>array()<<
Returns void

Author(s) Alexander Wirtz <wirtz@web-active.com>

pc4p_add_tablerow

public void pc4p_add_tablerow( [ string $rowname ] )

  Adds a row to the table

Parameter
string $rowname = >>""<<
Returns void

Author(s) Alexander Wirtz <wirtz@web-active.com>

pc4p_set_tablecolsize

public void pc4p_set_tablecolsize( array $colsize )

  Sets the width for the columns

Parameter
array $colsize
Returns void

Author(s) Alexander Wirtz <wirtz@web-active.com>

pc4p_set_tableborder

public void pc4p_set_tableborder( string $style )

  Set the style of the tableborder

Parameter
string $style
Returns void

Author(s) Alexander Wirtz <wirtz@web-active.com>

Private Method Details

pc4p_draw_children

private void pc4p_draw_children( )

  Walks through the rows and cols and calls pc4p_draw in each cell;
draws the boxes around the cells

Warning: documentation is missing.

Returns void

Author(s) Alexander Wirtz <wirtz@web-active.com>

pc4p_calc_offset

private integer pc4p_calc_offset( object pc4p_page &$parent )

  Calculates the offsets in all cells, especially the x-coordinates!!!

Warning: documentation is missing.

Parameter
object pc4p_page &$parent
Returns integer $this

->height

Author(s) Alexander Wirtz <wirtz@web-active.com>

Private Field Details

$cell

private array $cell

>><<

Array for accessing the cells of the table


$colsize

private array $colsize

>><<

Array containing the sizes of each column


$rowsize

private array $rowsize

>><<

Array containing the sizes of each row


$colnames

private array $colnames

>>array()<<

Array containing the names of each column


$rownames

private array $rownames

>>array()<<

Array containing the names of each row


$draw_width

private integer $draw_width

>><<

x-Pos used when calculating the positions of subobjects



Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta