Class ilHtmlToPdfTransformerFactory.
More...
◆ __construct()
ilHtmlToPdfTransformerFactory::__construct |
( |
|
$component = '' | ) |
|
◆ createOneFileFromArray()
ilHtmlToPdfTransformerFactory::createOneFileFromArray |
( |
array |
$src | ) |
|
|
protected |
- Parameters
-
- Returns
- string
Definition at line 100 of file class.ilHtmlToPdfTransformerFactory.php.
References $filename.
102 $tmp_file = dirname(reset($src)) .
'/complete_pages_overview.html';
105 if (file_exists($filename)) {
106 $html_content .= file_get_contents($filename);
109 file_put_contents($tmp_file, $html_content);
◆ deliverPDF()
ilHtmlToPdfTransformerFactory::deliverPDF |
( |
|
$file, |
|
|
|
$delivery_type |
|
) |
| |
|
protected |
- Parameters
-
- Returns
- mixed
Definition at line 82 of file class.ilHtmlToPdfTransformerFactory.php.
References ilUtil\deliverFile().
Referenced by generateTempPath().
84 if (file_exists($file)) {
85 if (strtoupper($delivery_type) === self::PDF_OUTPUT_DOWNLOAD) {
87 } elseif (strtoupper($delivery_type) === self::PDF_OUTPUT_INLINE) {
89 } elseif (strtoupper($delivery_type) === self::PDF_OUTPUT_FILE) {
static deliverFile( $a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
◆ generateTempPath()
ilHtmlToPdfTransformerFactory::generateTempPath |
( |
|
$output | ) |
|
|
protected |
◆ $lng
◆ PDF_OUTPUT_DOWNLOAD
const ilHtmlToPdfTransformerFactory::PDF_OUTPUT_DOWNLOAD = 'D' |
◆ PDF_OUTPUT_FILE
const ilHtmlToPdfTransformerFactory::PDF_OUTPUT_FILE = 'F' |
◆ PDF_OUTPUT_INLINE
const ilHtmlToPdfTransformerFactory::PDF_OUTPUT_INLINE = 'I' |
The documentation for this class was generated from the following file: