|
|
File: /data/customers/alex/htdocs/include/pc4p_object.inc
PC4P - pc4p
pc4p_object
pc4p_object
The master object for content-objects
|
private class pc4p_object
The master object for content-objects
|
|
Direct known subclasses: pc4p_box, pc4p_image, pc4p_table, pc4p_text
|
|
|
|
Private Field Summary |
array |
$childrenArray of all children of this object |
integer |
$pdfpPDF-Pointer used for all pdf_* |
integer |
$widthWidth of the object |
integer |
$heightHeight of the object |
array |
$marginMargins for the object |
integer |
$act_widthx-Pos where the object is placed |
integer |
$act_heighty-Pos where the object is placed |
integer |
$draw_heighty-Pos used when calculating the positions of subobjects |
string |
$alignmentAlignment for the object |
integer |
$leadingText-Leading |
|
Public Method Details |
pc4p_object |
public void pc4p_object( object pc4p_page &$parent )
|
|
Constructor
|
Parameter |
|
object pc4p_page |
&$parent |
|
|
|
|
Returns |
void |
Author(s) |
Alexander Wirtz <wirtz@web-active.com> |
|
pc4p_set_margin |
public void pc4p_set_margin( array $margin )
|
|
Sets the margins for the object
|
Parameter |
|
|
Returns |
void |
Author(s) |
Alexander Wirtz <wirtz@web-active.com> |
|
pc4p_set_width |
public void pc4p_set_width( mixed $width )
|
|
Sets the width for the object
|
Parameter |
|
|
Returns |
void |
Author(s) |
Alexander Wirtz <wirtz@web-active.com> |
|
pc4p_set_alignment |
public void pc4p_set_alignment( [ string $alignment ] )
|
|
Sets the alignment for this object.
|
Parameter |
|
string |
$alignment |
= >>"left"<< |
|
|
|
Returns |
void |
Author(s) |
Alexander Wirtz <wirtz@web-active.com> |
|
pc4p_set_textleading |
public void pc4p_set_textleading( integer $leading )
|
|
Sets the textleading for text-subobjects.
|
Parameter |
|
|
Returns |
void |
Author(s) |
Alexander Wirtz <wirtz@web-active.com> |
|
|
Private Method Details |
pc4p_draw |
private void pc4p_draw( )
|
|
Calls the pc4p_draw_children
|
Returns |
void |
Author(s) |
Alexander Wirtz <wirtz@web-active.com> |
|
pc4p_draw_children |
private void pc4p_draw_children( )
|
|
Calls the draw function for each child in the children-array
|
Returns |
void |
Author(s) |
Alexander Wirtz <wirtz@web-active.com> |
|
pc4p_calc_offset |
private integer pc4p_calc_offset( object pc4p_page &$parent )
|
|
Calls the calc_offset function in all children, sets its own offsets
|
Parameter |
|
object pc4p_page |
&$parent |
|
|
|
|
Returns |
integer $this ->height |
Author(s) |
Alexander Wirtz <wirtz@web-active.com> |
|
|
Private Field Details |
$children |
private array $children
>>array() <<
Array of all children of this object
|
|
$pdfp |
private integer $pdfp
>> <<
PDF-Pointer used for all pdf_*
|
|
$width |
private integer $width
>> <<
Width of the object
|
|
$height |
private integer $height
>> <<
Height of the object
|
|
$margin |
private array $margin
>>array( "top" => 0, "bottom" => 0, "left" => 0, "right" => 0 ) <<
Margins for the object
|
|
$act_width |
private integer $act_width
>> <<
x-Pos where the object is placed
|
|
$act_height |
private integer $act_height
>> <<
y-Pos where the object is placed
|
|
$draw_height |
private integer $draw_height
>> <<
y-Pos used when calculating the positions of subobjects
|
|
$alignment |
private string $alignment
>>"left" <<
Alignment for the object
|
|
$leading |
private integer $leading
>> <<
Text-Leading
|
|
|
|
|
PHPDoc 1.0beta |