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 16 of file class.ilTestPDFGenerator.php.
◆ buildHtmlDocument()
static ilTestPDFGenerator::buildHtmlDocument |
( |
|
$contentHtml, |
|
|
|
$styleHtml |
|
) |
| |
|
staticprivate |
◆ generatePDF()
static ilTestPDFGenerator::generatePDF |
( |
|
$pdf_output, |
|
|
|
$output_mode, |
|
|
|
$filename = null , |
|
|
|
$purpose = null |
|
) |
| |
|
static |
Definition at line 97 of file class.ilTestPDFGenerator.php.
References $filename.
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().
99 $pdf_output = self::preprocessHTML($pdf_output);
105 return $pdf_factory->deliverPDFFromHTMLString($pdf_output,
$filename, $output_mode, self::service, $purpose);
◆ getCssContent()
static ilTestPDFGenerator::getCssContent |
( |
| ) |
|
|
staticprotected |
Definition at line 130 of file class.ilTestPDFGenerator.php.
132 $cssContent = file_get_contents(self::getTemplatePath(
'delos.css',
''));
133 $cssContent .= file_get_contents(self::getTemplatePath(
'test_pdf.css'));
◆ getTemplatePath()
static ilTestPDFGenerator::getTemplatePath |
( |
|
$a_filename, |
|
|
|
$module_path = 'Modules/Test/' |
|
) |
| |
|
staticprotected |
Definition at line 115 of file class.ilTestPDFGenerator.php.
118 include_once
"Services/Style/System/classes/class.ilStyleDefinition.php";
119 if (ilStyleDefinition::getCurrentSkin() !=
"default") {
120 $fname =
"./Customizing/global/skin/" .
121 ilStyleDefinition::getCurrentSkin() .
"/" . $module_path . basename($a_filename);
124 if ($fname ==
"" || !file_exists($fname)) {
125 $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' |
◆ service
const ilTestPDFGenerator::service = "Test" |
The documentation for this class was generated from the following file: