include/Sugarpdf/SugarpdfFactory.php

Show: inherited
Table of Contents

\SugarpdfFactory

Package:

Methods

methodpublic_buildClass( string $class, object $bean, array $sugarpdf_object_map ) : \Sugarpdf

instantiate the correct Tcpdf and call init to pass on any obejcts we need to from the controller.

Parameters
Name Type Description
$class string

class - the name of the class to instantiate

$bean object

bean = the bean to pass to the Sugarpdf

$sugarpdf_object_map array

Sugarpdf_object_map - the array which holds obejcts to pass between the controller and the tcpdf.

Returns
Type Description
\Sugarpdf
methodpublic_buildFromFile(  $file,  $bean,  $sugarpdf_object_map,  $type,  $module ) : \a

This is a private function which just helps the getSugarpdf function generate the proper Tcpdf object

Parameters
Name Type Description
$file
$bean
$sugarpdf_object_map
$type
$module
Returns
Type Description
\a valid Sugarpdf
methodpublicloadSugarpdf( string $type = 'default',  $module,  $bean = null,  $sugarpdf_object_map = array() ) : \valid

load the correct Tcpdf

Parameters
Name Type Description
$type string

Tcpdf Type

$module
$bean
$sugarpdf_object_map
Returns
Type Description
\valid Tcpdf
Documentation was generated by DocBlox 0.18.1.