Class ilTestPDFGenerator.
More...
Class ilTestPDFGenerator.
Class that handles PDF generation for test and assessment.
- Author
- Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
- Version
- $Id$
Definition at line 13 of file class.ilTestPDFGenerator.php.
◆ buildHtmlDocument()
static ilTestPDFGenerator::buildHtmlDocument |
( |
|
$contentHtml, |
|
|
|
$styleHtml |
|
) |
| |
|
staticprivate |
◆ generatePDF()
static ilTestPDFGenerator::generatePDF |
( |
|
$pdf_output, |
|
|
|
$output_mode, |
|
|
|
$filename = null |
|
) |
| |
|
static |
Definition at line 100 of file class.ilTestPDFGenerator.php.
References $filename, and ilPDFGeneration\doJob().
Referenced by ilTestArchiveService\archiveActivesPass(), ilTestPlayerAbstractGUI\archiveParticipantSubmission(), ilObjTestGUI\createUserResults(), ilTestServiceGUI\getQuestionResultForTestUsers(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserPassDetails(), ilTestEvaluationGUI\outUserResultsOverview(), ilTestSubmissionReviewGUI\pdfDownload(), ilTestServiceGUI\populateContent(), ilObjTestGUI\printobject(), ilObjTestGUI\reviewobject(), and ilTestArchiver\updateTestArchive().
102 $pdf_output = self::preprocessHTML($pdf_output);
109 require_once
'./Services/PDFGeneration/classes/class.ilPDFGeneration.php';
112 $job->setAutoPageBreak(
true)
113 ->setCreator(
'ILIAS Test')
115 ->setMarginLeft(
'20')
116 ->setMarginRight(
'20')
118 ->setMarginBottom(
'20')
119 ->setOutputMode($output_mode)
120 ->addPage($pdf_output);
Class ilPDFGenerationJob.
static doJob(ilPDFGenerationJob $job)
◆ getCssContent()
static ilTestPDFGenerator::getCssContent |
( |
| ) |
|
|
staticprotected |
Definition at line 149 of file class.ilTestPDFGenerator.php.
151 $cssContent = file_get_contents( self::getTemplatePath(
'delos.css',
'') );
152 $cssContent .= file_get_contents( self::getTemplatePath(
'test_pdf.css') );
◆ getTemplatePath()
static ilTestPDFGenerator::getTemplatePath |
( |
|
$a_filename, |
|
|
|
$module_path = 'Modules/Test/' |
|
) |
| |
|
staticprotected |
Definition at line 132 of file class.ilTestPDFGenerator.php.
135 include_once
"Services/Style/System/classes/class.ilStyleDefinition.php";
136 if (ilStyleDefinition::getCurrentSkin() !=
"default")
138 $fname =
"./Customizing/global/skin/".
139 ilStyleDefinition::getCurrentSkin().
"/".$module_path.basename($a_filename);
142 if($fname ==
"" || !file_exists($fname))
144 $fname =
"./".$module_path.
"templates/default/".basename($a_filename);
◆ preprocessHTML()
static ilTestPDFGenerator::preprocessHTML |
( |
|
$html | ) |
|
|
static |
◆ PDF_OUTPUT_DOWNLOAD
const ilTestPDFGenerator::PDF_OUTPUT_DOWNLOAD = 'D' |
◆ PDF_OUTPUT_FILE
const ilTestPDFGenerator::PDF_OUTPUT_FILE = 'F' |
◆ PDF_OUTPUT_INLINE
const ilTestPDFGenerator::PDF_OUTPUT_INLINE = 'I' |
The documentation for this class was generated from the following file: