Public Method Details |
pc4p_object |
public void pc4p_object(object pc4p_page &$parent)
|
|
Checks, if we have a valid parent
|
Parameter |
|
object pc4p_page |
&$parent |
|
|
Valid values are pc4p_page, pc4p_box, pc4p_table and pc4p_object |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_rot |
public void pc4p_set_rot(float $phi)
|
|
Accepts an angle, so that the object can be rotated
|
Parameter |
|
float |
$phi |
|
|
Angle for the rotation |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_margin |
public void pc4p_set_margin(mixed $margin)
|
|
As opposed to a page, here the margins are on the _inside_ the object. The array should look like array( "top" => top, "bottom" => bottom, "left" => left, "right" => right )
|
Parameter |
|
mixed |
$margin |
|
|
Array containing the margins for the object or an integer to set all margins |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_width |
public void pc4p_set_width(mixed $width)
|
|
You can set a default width for an object
|
Parameter |
|
mixed |
$width |
|
|
Width for the object |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_alignment |
public void pc4p_set_alignment([ string $alignment ])
|
|
The same functionality as in every other document-software
|
Parameter |
|
string |
$alignment |
= >>"left"<< |
|
Valid values are "left", "center" and "right" |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_textleading |
public void pc4p_set_textleading(integer $leading)
|
|
You can define a spacing between each line of text
|
Parameter |
|
integer |
$leading |
|
|
Please use reasonable values, according to the fontsize |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_linecolor |
public void pc4p_set_linecolor(string $linecolor)
|
|
You can define a linecolor here or reset the linecolor to default, if you don't give a parameter
|
Parameter |
|
string |
$linecolor |
|
|
You can use one of 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_fillcolor |
public void pc4p_set_fillcolor(string $fillcolor)
|
|
You can define a fillcolor here or reset the fillcolor to default, if you don't give a parameter
|
Parameter |
|
string |
$fillcolor |
|
|
You can use one of 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> |
|