category OSS
package OSS_Pdf
copyright Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland
license New BSD License

 Methods

Constructor

__construct(object $view, string $viewscript) 

Parameters

$view

object

Object for rendering HTMLs.

$viewscript

string

Path to template.

Gets as file.

getAsFile(string $fileName) 

Sets headers and prints out contents. This function is usable then you want to export in browser.

returns string

Parameters

$fileName

string

Name of file.

Get contents it's the same as render().

getContents() 
returns string

Renders the view script

render() 
returns string

Sets view script for rendering

setViewScript(string $viewscript) : \OSS_Pdf

Parameters

$viewscript

string

Path to template.

Returns

Creates PDF and returns path.

_processPDF() : string

First it renders and creates HTML file and then it creates pdf file. It removes new HTML file and returns path to new pdf file.

PDF file removing is added in all other methods where _processPDF are called.

Returns

string

 Properties

 

OSS_Html object.

$_html