Class ilPDFGeneratorUtils.
More...
◆ getPurposeMap()
static ilPDFGeneratorUtils::getPurposeMap |
( |
| ) |
|
|
static |
◆ getRenderers()
static ilPDFGeneratorUtils::getRenderers |
( |
| ) |
|
|
static |
◆ getSelectionMap()
static ilPDFGeneratorUtils::getSelectionMap |
( |
| ) |
|
|
static |
◆ getTestPdfDir()
static ilPDFGeneratorUtils::getTestPdfDir |
( |
| ) |
|
|
static |
Definition at line 8 of file class.ilPDFGeneratorUtils.php.
10 $iliasPDFTestPath =
'data/' . CLIENT_ID .
'/pdf_service/';
11 if (!file_exists($iliasPDFTestPath)) {
12 mkdir($iliasPDFTestPath);
14 return $iliasPDFTestPath;
◆ isRendererPlugin()
static ilPDFGeneratorUtils::isRendererPlugin |
( |
|
$path | ) |
|
|
staticprotected |
◆ removePrintMediaDefinitionsFromStyleFile()
static ilPDFGeneratorUtils::removePrintMediaDefinitionsFromStyleFile |
( |
|
$path | ) |
|
|
static |
- Parameters
-
Definition at line 20 of file class.ilPDFGeneratorUtils.php.
References $filename, and $path.
23 $content = file_get_contents($filename);
24 $content = preg_replace(
'/@media[\s]* print/',
'@media nothing', $content);
25 file_put_contents($filename, $content);
◆ removeRendererConfig()
static ilPDFGeneratorUtils::removeRendererConfig |
( |
|
$service, |
|
|
|
$purpose, |
|
|
|
$renderer |
|
) |
| |
|
static |
◆ removeWrongPathFromStyleFiles()
static ilPDFGeneratorUtils::removeWrongPathFromStyleFiles |
( |
|
$path | ) |
|
|
static |
- Parameters
-
Definition at line 32 of file class.ilPDFGeneratorUtils.php.
References $filename, and $path.
35 $content = file_get_contents($filename);
36 $content = preg_replace(
'/src:\surl\([\',\"](..\/)*(\S)/',
"src: url(./$2", $content);
37 file_put_contents($filename, $content);
◆ setCheckedIfTrue()
◆ updateRendererSelection()
static ilPDFGeneratorUtils::updateRendererSelection |
( |
|
$service, |
|
|
|
$purpose, |
|
|
|
$renderer |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: