ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilAbstractHtmlToPdfTransformer.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once __DIR__ . '/../interfaces/interface.ilHtmlToPdfTransformer.php';
5
11{
15 public function getPdfTempName()
16 {
17 return $this->getTempFileName('pdf');
18 }
19
23 public function getHtmlTempName()
24 {
25 return $this->getTempFileName('html');
26 }
27
32 protected function getTempFileName($file_type)
33 {
34 return ilUtil::ilTempnam() . '.' . $file_type;
35 }
36}
An exception for terminatinating execution or to throw for unit testing.
static ilTempnam($a_temp_path=null)
Returns a unique and non existing Path for e temporary file or directory.
Interface ilHtmlToPdfTransformer.