ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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)
Create a temporary file in an ILIAS writable directory.
Interface ilHtmlToPdfTransformer.