include/Sugarpdf/SugarpdfFactory.php
\SugarpdfFactory
Package:
Methods

_buildClass(
string $class, object $bean, array $sugarpdf_object_map
)
:
\Sugarpdfinstantiate the correct Tcpdf and call init to pass on any obejcts we need to from the controller.
Parameters
Returns
| 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. |
| Type | Description |
|---|---|
| \Sugarpdf |

_buildFromFile(
$file, $bean, $sugarpdf_object_map, $type, $module
)
:
\aThis is a private function which just helps the getSugarpdf function generate the proper Tcpdf object
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $file | ||
| $bean | ||
| $sugarpdf_object_map | ||
| $type | ||
| $module |
| Type | Description |
|---|---|
| \a | valid Sugarpdf |