ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilHTMLToPDF Class Reference

Create PDF files from HTML content. More...

+ Collaboration diagram for ilHTMLToPDF:

Public Member Functions

 __construct ($transformer)
 ilHTMLToPDF constructor
 deliverPDFFromHTMLString ($a_string)
 deliverPDFFromHTMLFile ($a_path)
 createPDFFileFromHTMLFile ($a_source, $a_target)
 createPDFFileFromHTMLString ($input, $a_target)

Protected Attributes

 $ctrl
 $tree
 $ilias
 $tpl
 $lng
 $transformer

Detailed Description

Create PDF files from HTML content.

Author
Helmut Schottmüller ilias.nosp@m.@aur.nosp@m.ealis.nosp@m..de
Version
$Id$

Definition at line 31 of file class.ilHTMLToPDF.php.

Constructor & Destructor Documentation

ilHTMLToPDF::__construct (   $transformer)

ilHTMLToPDF constructor

Parameters
object$transformerThe transformer used for the actual transformation

Definition at line 80 of file class.ilHTMLToPDF.php.

References $ilCtrl, $ilias, $lng, $tpl, $transformer, and $tree.

{
$this->lng =& $lng;
$this->tpl =& $tpl;
$this->ctrl =& $ilCtrl;
$this->ilias =& $ilias;
$this->tree =& $tree;
if (is_object($transformer))
{
$this->transformer =& $transformer;
}
else
{
$this->transformer = null;
}
}

Member Function Documentation

ilHTMLToPDF::createPDFFileFromHTMLFile (   $a_source,
  $a_target 
)

Definition at line 113 of file class.ilHTMLToPDF.php.

{
if (is_object($this->transformer))
$this->transformer->createPDFFileFromHTMLFile($a_source, $a_target);
}
ilHTMLToPDF::createPDFFileFromHTMLString (   $input,
  $a_target 
)

Definition at line 119 of file class.ilHTMLToPDF.php.

{
if (is_object($this->transformer))
$this->transformer->createPDFFileFromHTMLString($input, $a_target);
}
ilHTMLToPDF::deliverPDFFromHTMLFile (   $a_path)

Definition at line 107 of file class.ilHTMLToPDF.php.

{
if (is_object($this->transformer))
$this->transformer->deliverPDFFromHTMLFile($a_path);
}
ilHTMLToPDF::deliverPDFFromHTMLString (   $a_string)

Definition at line 99 of file class.ilHTMLToPDF.php.

{
if (is_object($this->transformer))
{
$this->transformer->deliverPDFFromHTMLString($a_string);
}
}

Field Documentation

ilHTMLToPDF::$ctrl
protected

Definition at line 38 of file class.ilHTMLToPDF.php.

ilHTMLToPDF::$ilias
protected

Definition at line 52 of file class.ilHTMLToPDF.php.

Referenced by __construct().

ilHTMLToPDF::$lng
protected

Definition at line 66 of file class.ilHTMLToPDF.php.

Referenced by __construct().

ilHTMLToPDF::$tpl
protected

Definition at line 59 of file class.ilHTMLToPDF.php.

Referenced by __construct().

ilHTMLToPDF::$transformer
protected

Definition at line 73 of file class.ilHTMLToPDF.php.

Referenced by __construct().

ilHTMLToPDF::$tree
protected

Definition at line 45 of file class.ilHTMLToPDF.php.

Referenced by __construct().


The documentation for this class was generated from the following file: