Packageindex Classtrees Modulegroups Elementlist Report XML Files

pc4p

pc4p::pc4p_init

private module pc4p_init

This is the file, you _must_ include. It sets the needed include path and provides wrapper functions for the objects.

AuthorsAlexander Wirtz <alex@pc4p.net>
Version$Id: pc4p_init.html,v 1.13.2.1 2002/08/12 22:47:08 eru Exp $

 

Public Method Summary

object pc4p_main &pc4p_create_pdf([ array $info ])
pc4p_create_pdf - Main wrapper function to create the PDF
object pc4p_page &pc4p_create_page(object pc4p_main &$parent, string $format, [ string $orientation, string $dimensions ])
pc4p_create_page - Wrapper function to create a page
object pc4p_object &pc4p_create_object(object pc4p_page &$parent, [ string $object_type ])
pc4p_create_object - Wrapper function to create objects

Private Constant Summary

PC4PINCLUDES >>TRUE<< Is defined, if the script has included the subclasses

Included files Summary, Type: require_once

pc4p_main.inc Include the main object
pc4p_page.inc Include the page object
pc4p_object.inc Include the generic object
pc4p_text.inc Include the object for using text
pc4p_box.inc Include the object for drawing boxes
pc4p_line.inc Include the object for drawing boxes
pc4p_table.inc Include the object for creating tables
pc4p_image.inc Include the object for images
pc4p_pagenumber.inc Include the object for pagenumbers

Public Method Details

&pc4p_create_pdf

public object pc4p_main &pc4p_create_pdf( [ array $info ] )

  This is the first function which should be called, as it acquires the PDF-Pointer for all other operations.

Parameter
array $info = >>array()<<
here go the vars for the infos of the PDF
Returns object pc4p_main $pdf

the pdf-object, used by pc4p_create_page

See Also pc4p_main::pc4p_main(), pc4p_main::pc4p_set_info()
Author(s) Alexander Wirtz <alex@pc4p.net>

&pc4p_create_page

public object pc4p_page &pc4p_create_page( object pc4p_main &$parent, string $format, [ string $orientation, string $dimensions ] )

  This function is used to create new pages. Can take a standard pagesize or user defines.

Parameter
object pc4p_main &$parent
parent of the page, can only be a PDF-Object
string $format
name of a standard pagesize or "user"
string $orientation = >>"p"<<
"portrait", "p" or "landscape", "l" - will be ignored, if format is "user"
string $dimensions = >>""<<
or the dimensions if page is "user"-defined x
Returns object pc4p_page $page

a page-object is returned, used by pc4p_create_object

See Also pc4p_page::pc4p_page()
Author(s) Alexander Wirtz <alex@pc4p.net>

&pc4p_create_object

public object pc4p_object &pc4p_create_object( object pc4p_page &$parent, [ string $object_type ] )

  Here we have the wrapper for all the other objects: Text, tables, boxes, images and a object, which is used as container.

Parameter
object pc4p_page &$parent
parent of the object, usually a page, or some container-object such as boxes and tables
string $object_type = >>"object"<<
type of object to be created, if empty a container-object is created
Returns object pc4p_object $object

the object, which was created by this function

Author(s) Alexander Wirtz <alex@pc4p.net>

Private Constant Details

PC4PINCLUDES

define( PC4PINCLUDES, >>TRUE<< )
Case: default: case sensitive


Included Files, Type: require_once

pc4p_main.inc

require_once( pc4p_main.inc )


pc4p_page.inc

require_once( pc4p_page.inc )


pc4p_object.inc

require_once( pc4p_object.inc )


pc4p_text.inc

require_once( pc4p_text.inc )


pc4p_box.inc

require_once( pc4p_box.inc )


pc4p_line.inc

require_once( pc4p_line.inc )


pc4p_table.inc

require_once( pc4p_table.inc )


pc4p_image.inc

require_once( pc4p_image.inc )


pc4p_pagenumber.inc

require_once( pc4p_pagenumber.inc )



Packageindex Classtrees Modulegroups Elementlist Report XML Files
Generated on Tue, 13 Aug 2002 00:43:10 +0200 by PHPDoc v1.5 www.phpdoc.de