Public Method Details |
pc4p_table |
public void pc4p_table(object pc4p_page &$parent)
|
|
Calls the constructor of pc4p_object
|
Parameter |
|
object pc4p_page |
&$parent |
|
|
Parent of the table |
|
Returns |
void |
See Also |
pc4p_object::pc4p_object() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
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 |
|
|
Number of columns |
|
|
integer |
$rowsize |
= >>1<< |
|
Number of rows |
|
|
array |
$colnames |
= >>array()<< |
|
Names of the columns - if provided, size of the array has to correspond with the number of columns |
|
|
array |
$rownames |
= >>array()<< |
|
Names of the rows - if provided, size of the array has to correspond with the number of rows |
|
Returns |
void |
See Also |
pc4p_init::&pc4p_create_object() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_add_tablerow |
public void pc4p_add_tablerow([ string $rowname ])
|
|
If you have already defined a tablematrix, you can add a row with this function to every column
|
Parameter |
|
string |
$rowname |
= >>""<< |
|
Name for the new row |
|
Returns |
void |
See Also |
pc4p_init::&pc4p_create_object() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_add_tablecol |
public void pc4p_add_tablecol([ string $colname ])
|
|
If you have already defined a tablematrix, you can add a column with this function to every row
|
Parameter |
|
string |
$colname |
= >>""<< |
|
Name for the new column |
|
Returns |
void |
See Also |
pc4p_init::&pc4p_create_object() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_tablecolsize |
public void pc4p_set_tablecolsize(array $colsize)
|
|
Takes the provided widths and checks, if you used absolute or percentual sizes
|
Parameter |
|
array |
$colsize |
|
|
Width for every column. Arraysize has to correspond with the number of columns |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_cellborder |
public void pc4p_set_cellborder(object pc4p_object &$cell, [ mixed $border, mixed $style, mixed $width ])
|
|
With this function you can set the borders of a given cell for each side individually, or completely
|
Parameter |
|
object pc4p_object |
&$cell |
|
|
Cell, where you'd like to set the borders |
|
|
mixed |
$border |
= >>"all"<< |
|
"top", "bottom", "left", "right" or an array of these or "all" |
|
|
mixed |
$style |
= >>"single"<< |
|
"none", "single" or "double" or an array of these |
|
|
mixed |
$width |
= >>1<< |
|
The width of the line or an array with widths |
|
Returns |
void |
See Also |
pc4p_line::pc4p_set_linestyle(), pc4p_line::pc4p_set_linewidth() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_tableborder |
public void pc4p_set_tableborder([ mixed $border, mixed $style, mixed $width ])
|
|
With this function you can set the borders of a whole table.
|
Parameter |
|
mixed |
$border |
= >>"all"<< |
|
"top", "bottom", "left", "right" or an array of these or all |
|
|
mixed |
$style |
= >>"single"<< |
|
"none", "single" or "double" or an array of these |
|
|
mixed |
$width |
= >>1<< |
|
The width of the line or an array with widths |
|
Returns |
void |
See Also |
pc4p_table::pc4p_set_cellborder() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_cellbordercolor |
public void pc4p_set_cellbordercolor(object pc4p_object &$cell, [ mixed $border, mixed $color ])
|
|
With this function you can set the bordercolor of a given cell for each side individually, or completely
|
Parameter |
|
object pc4p_object |
&$cell |
|
|
Cell, where you'd like to set the bordercolor |
|
|
mixed |
$border |
= >>"all"<< |
|
"top", "bottom", "left", "right" or an array of these or all |
|
|
mixed |
$color |
= >>""<< |
|
Accepted values are the 16 standardcolors from HTML, the hex-notation (#rrggbb) or an array of these |
|
Returns |
void |
See Also |
pc4p_line::pc4p_set_linecolor() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_tablebordercolor |
public void pc4p_set_tablebordercolor([ mixed $border, mixed $color ])
|
|
With this function you can set the bordercolor of a whole table.
|
Parameter |
|
mixed |
$border |
= >>"all"<< |
|
"top", "bottom", "left", "right" or an array of these or all |
|
|
mixed |
$color |
= >>""<< |
|
Accepted values are the 16 standardcolors from HTML, the hex-notation (#rrggbb) or an array ( "top" => color, "bottom" => color, "left" => color, "right" => color ) where 'color' is one of the forementioned |
|
Returns |
void |
See Also |
pc4p_table::pc4p_set_cellbordercolor() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_cellfillcolor |
public void pc4p_set_cellfillcolor(object pc4p_object &$cell, mixed $color)
|
|
With this function you can set the fillcolor of a given cell
|
Parameter |
|
object pc4p_object |
&$cell |
|
|
Cell, where you'd like to set the fillcolor |
|
|
mixed |
$color |
|
|
Accepted values are the 16 standardcolors from HTML or the hex-notation (#rrggbb) |
|
Returns |
void |
See Also |
pc4p_main::pc4p_check_color() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_tablefillcolor |
public void pc4p_set_tablefillcolor(mixed $color)
|
|
With this function you can set the fillcolor of a whole table.
|
Parameter |
|
mixed |
$color |
|
|
Accepted values are the 16 standardcolors from HTML or the hex-notation (#rrggbb) |
|
Returns |
void |
See Also |
pc4p_table::pc4p_set_cellfillcolor() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_tableheader |
public void pc4p_set_tableheader(string $rowname)
|
|
If you want to use a certain row as a header, which is repeated on every new page after a pagebreak within a table, you can supply a rowname here to set it
|
Parameter |
|
string |
$rowname |
|
|
Name of the row, which shall be used as header |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_split_table |
public object pc4p_table pc4p_split_table(integer $row)
|
|
Very important function for pagebreak
|
Parameter |
|
integer |
$row |
|
|
Row, where the table shall be split |
|
Returns |
object pc4p_table $split Rest of the table, including the row you specified |
See Also |
pc4p_object::pc4p_make_objcopy() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|