Packageindex Classtrees Modulegroups Elementlist Report XML Files

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

AuthorsAlexander Wirtz <wirtz@web-active.com>

 
Direct known subclasses: pc4p_box, pc4p_image, pc4p_table, pc4p_text

Public Method Summary

void

pc4p_object(object pc4p_page &$parent)

Constructor
void

pc4p_set_margin(array $margin)

Sets the margins for the object
void

pc4p_set_width(mixed $width)

Sets the width for the object
void

pc4p_set_alignment([ string $alignment ])

Sets the alignment for this object.
void

pc4p_set_textleading(integer $leading)

Sets the textleading for text-subobjects.

Private Method Summary

void

pc4p_draw()

Calls the pc4p_draw_children
void

pc4p_draw_children()

Calls the draw function for each child in the children-array
integer

pc4p_calc_offset(object pc4p_page &$parent)

Calls the calc_offset function in all children, sets its own offsets

Private Field Summary

array

$children

Array of all children of this object
integer

$pdfp

PDF-Pointer used for all pdf_*
integer

$width

Width of the object
integer

$height

Height of the object
array

$margin

Margins for the object
integer

$act_width

x-Pos where the object is placed
integer

$act_height

y-Pos where the object is placed
integer

$draw_height

y-Pos used when calculating the positions of subobjects
string

$alignment

Alignment for the object
integer

$leading

Text-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
array $margin
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
mixed $width
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
integer $leading
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



Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta