|
|
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
|
|
|
|
|
|
|
Private Field Summary |
array |
$cellArray for accessing the cells of the table |
array |
$colsizeArray containing the sizes of each column |
array |
$rowsizeArray containing the sizes of each row |
array |
$colnamesArray containing the names of each column |
array |
$rownamesArray containing the names of each row |
integer |
$draw_widthx-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 |
|
|
|
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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
|
|
|
|
|
PHPDoc 1.0beta |