ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilWkhtmlToPdfConfig Class Reference
+ Collaboration diagram for ilWkhtmlToPdfConfig:

Public Member Functions

 __construct ($config=null)
 
 getZoom ()
 
 setZoom (float $zoom)
 
 getEnabledForms ()
 
 setEnabledForms (?bool $enabled_forms)
 
 getExternalLinks ()
 
 setExternalLinks (bool $external_links)
 
 getLowQuality ()
 
 setLowQuality (bool $low_quality)
 
 getGreyscale ()
 
 setGreyscale (bool $greyscale)
 
 getOrientation ()
 
 setOrientation (string $orientation)
 
 getPageSize ()
 
 setPageSize (string $page_size)
 
 getMarginLeft ()
 
 setMarginLeft (string $margin_left)
 
 getMarginRight ()
 
 setMarginRight (string $margin_right)
 
 getFooterHtmlSpacing ()
 
 setFooterHtmlSpacing (int $footer_html_spacing)
 
 getFooterHtml ()
 
 setFooterHtml (string $footer_html)
 
 isFooterTextLine ()
 
 setFooterTextLine (bool $footer_text_line)
 
 getFooterTextCenter ()
 
 setFooterTextCenter (string $footer_text_center)
 
 getFooterTextSpacing ()
 
 setFooterTextSpacing (int $footer_text_spacing)
 
 getFooterTextRight ()
 
 setFooterTextRight (string $footer_text_right)
 
 getFooterTextLeft ()
 
 setFooterTextLeft (string $footer_text_left)
 
 getFooterType ()
 
 setFooterType (int $footer_type)
 
 isFooterHtmlLine ()
 
 setFooterHtmlLine (bool $footer_html_line)
 
 isHeaderTextLine ()
 
 setHeaderTextLine (bool $header_text_line)
 
 getHeaderTextSpacing ()
 
 setHeaderTextSpacing (int $header_text_spacing)
 
 getHeaderTextRight ()
 
 setHeaderTextRight (string $header_text_right)
 
 getHeaderTextCenter ()
 
 setHeaderTextCenter (string $header_text_center)
 
 getHeaderTextLeft ()
 
 setHeaderTextLeft (string $header_text_left)
 
 getHeaderType ()
 
 setHeaderType (int $header_type)
 
 getRadioButtonCheckedSvg ()
 
 setRadioButtonCheckedSvg (string $radio_button_checked_svg)
 
 getRadioButtonSvg ()
 
 setRadioButtonSvg (string $radio_button_svg)
 
 getCheckboxCheckedSvg ()
 
 setCheckboxCheckedSvg (string $checkbox_checked_svg)
 
 getCheckboxSvg ()
 
 setCheckboxSvg (string $checkbox_svg)
 
 getJavascriptDelay ()
 
 setJavascriptDelay (int $javascript_delay)
 
 getPrintMediaType ()
 
 setPrintMediaType (bool $print_media_type)
 
 getMarginTop ()
 
 setMarginTop (string $margin_top)
 
 getMarginBottom ()
 
 setMarginBottom (string $margin_bottom)
 
 getOverwriteDefaultFont (bool $renderStyle=false)
 
 setOverwriteDefaultFont (string $overwrite_default_font)
 
 getPath ()
 
 setPath (string $path)
 
 getWKHTMLToPdfDefaultPath ()
 
 getConfig ()
 
 getCommandLineConfig ()
 
 getHeaderHtml ()
 
 setHeaderHtml (string $header_html)
 
 getHeaderHtmlSpacing ()
 
 setHeaderHtmlSpacing (int $header_html_spacing)
 
 isHeaderHtmlLine ()
 
 setHeaderHtmlLine (bool $header_html_line)
 

Static Public Member Functions

static supportMultiSourcesFiles ()
 

Protected Member Functions

 readConfigFromArray (array $config)
 
 setKeyIfExists (string $function, string $key, array $config)
 
 readConfigFromObject (ilWkhtmlToPdfConfig $config)
 
 useDefaultConfig ()
 
 generateCommandLineConfig ()
 
 getZoomArgument ()
 
 getExternalLinksArgument ()
 
 getEnabledFormsArgument ()
 
 getGreyscaleArgument ()
 
 getLowQualityArgument ()
 
 getOrientationArgument ()
 
 getPrintMediaTypeArgument ()
 
 getPageSizeArgument ()
 
 getJavascriptDelayArgument ()
 
 getCheckboxSvgArgument ()
 
 getCheckboxCheckedSvgArgument ()
 
 getRadioButtonSvgArgument ()
 
 getRadioButtonCheckedSvgArgument ()
 
 getMarginArgument ()
 
 getHeaderArgument ()
 
 getFooterArgument ()
 
 getDebugArgument ()
 
 getSessionObject ()
 
 getSavedDefaultBinaryPath ()
 

Protected Attributes

bool $phpunit = false
 
array $config = []
 
float $zoom = 1.0
 
bool $external_links = false
 
bool $enabled_forms = false
 
bool $greyscale = false
 
bool $low_quality = false
 
string $orientation = 'Portrait'
 
bool $print_media_type = false
 
string $page_size = 'A4'
 
int $javascript_delay = 100
 
string $margin_left = ''
 
string $margin_right = ''
 
string $margin_top = ''
 
string $margin_bottom = ''
 
int $header_type = 0
 
string $header_text_left = ''
 
string $header_text_center = ''
 
string $header_text_right = ''
 
int $header_text_spacing = 0
 
bool $header_text_line = false
 
string $header_html = ''
 
int $header_html_spacing = 0
 
bool $header_html_line = false
 
int $footer_type = 0
 
string $footer_text_left = ''
 
string $footer_text_center = ''
 
string $footer_text_right = ''
 
int $footer_text_spacing = 0
 
bool $footer_text_line = false
 
string $footer_html = ''
 
int $footer_html_spacing = 0
 
bool $footer_html_line = false
 
string $checkbox_svg = ''
 
string $checkbox_checked_svg = ''
 
string $radio_button_svg = ''
 
string $radio_button_checked_svg = ''
 
string $path = ''
 
string $overwrite_default_font = 'arial'
 

Private Attributes

const ENABLE_QUIET = true
 

Detailed Description

Deprecated:

Definition at line 24 of file class.ilWkhtmlToPdfConfig.php.

Constructor & Destructor Documentation

◆ __construct()

ilWkhtmlToPdfConfig::__construct (   $config = null)
Parameters
array | null | self$config

Definition at line 71 of file class.ilWkhtmlToPdfConfig.php.

References readConfigFromArray(), readConfigFromObject(), and useDefaultConfig().

72  {
73  if (is_array($config)) {
75  } elseif ($config instanceof self) {
77  } else {
78  $this->useDefaultConfig();
79  }
80  }
readConfigFromObject(ilWkhtmlToPdfConfig $config)
+ Here is the call graph for this function:

Member Function Documentation

◆ generateCommandLineConfig()

ilWkhtmlToPdfConfig::generateCommandLineConfig ( )
protected

Definition at line 584 of file class.ilWkhtmlToPdfConfig.php.

References getCheckboxCheckedSvgArgument(), getCheckboxSvgArgument(), getDebugArgument(), getEnabledFormsArgument(), getExternalLinksArgument(), getFooterArgument(), getGreyscaleArgument(), getHeaderArgument(), getJavascriptDelayArgument(), getLowQualityArgument(), getMarginArgument(), getOrientationArgument(), getPageSizeArgument(), getPrintMediaTypeArgument(), getRadioButtonCheckedSvgArgument(), getRadioButtonSvgArgument(), getSessionObject(), and getZoomArgument().

Referenced by getCommandLineConfig().

584  : void
585  {
586  $this->getZoomArgument();
587  $this->getExternalLinksArgument();
588  $this->getEnabledFormsArgument();
589  $this->getGreyscaleArgument();
590  $this->getLowQualityArgument();
591  $this->getOrientationArgument();
592  $this->getPrintMediaTypeArgument();
593  $this->getPageSizeArgument();
595  $this->getCheckboxSvgArgument();
597  $this->getRadioButtonSvgArgument();
599  $this->getMarginArgument();
600  $this->getHeaderArgument();
601  $this->getFooterArgument();
602  $this->getDebugArgument();
603  $this->getSessionObject();
604  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCheckboxCheckedSvg()

ilWkhtmlToPdfConfig::getCheckboxCheckedSvg ( )

Definition at line 447 of file class.ilWkhtmlToPdfConfig.php.

References $checkbox_checked_svg.

Referenced by getCheckboxCheckedSvgArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

447  : string
448  {
450  }
+ Here is the caller graph for this function:

◆ getCheckboxCheckedSvgArgument()

ilWkhtmlToPdfConfig::getCheckboxCheckedSvgArgument ( )
protected

Definition at line 684 of file class.ilWkhtmlToPdfConfig.php.

References ilShellUtil\escapeShellArg(), and getCheckboxCheckedSvg().

Referenced by generateCommandLineConfig().

684  : void
685  {
687  if ($checkbox_svg !== '') {
688  $this->config[] = 'checkbox-checked-svg ' . ilShellUtil::escapeShellArg($checkbox_svg);
689  }
690  }
static escapeShellArg(string $a_arg)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCheckboxSvg()

ilWkhtmlToPdfConfig::getCheckboxSvg ( )

Definition at line 457 of file class.ilWkhtmlToPdfConfig.php.

References $checkbox_svg.

Referenced by getCheckboxSvgArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

457  : string
458  {
459  return $this->checkbox_svg;
460  }
+ Here is the caller graph for this function:

◆ getCheckboxSvgArgument()

ilWkhtmlToPdfConfig::getCheckboxSvgArgument ( )
protected

Definition at line 676 of file class.ilWkhtmlToPdfConfig.php.

References ilShellUtil\escapeShellArg(), and getCheckboxSvg().

Referenced by generateCommandLineConfig().

676  : void
677  {
678  $checkbox_svg = $this->getCheckboxSvg();
679  if ($checkbox_svg !== '') {
680  $this->config[] = 'checkbox-svg ' . ilShellUtil::escapeShellArg($checkbox_svg);
681  }
682  }
static escapeShellArg(string $a_arg)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCommandLineConfig()

ilWkhtmlToPdfConfig::getCommandLineConfig ( )

Definition at line 572 of file class.ilWkhtmlToPdfConfig.php.

References ILIAS\LTI\ToolProvider\$settings, and generateCommandLineConfig().

572  : string
573  {
574  $this->generateCommandLineConfig();
575 
576  $settings = ' ';
577  foreach ($this->config as $value) {
578  $settings .= '--' . $value . ' ';
579  }
580 
581  return $settings;
582  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
+ Here is the call graph for this function:

◆ getConfig()

ilWkhtmlToPdfConfig::getConfig ( )

Definition at line 567 of file class.ilWkhtmlToPdfConfig.php.

References $config.

567  : array
568  {
569  return $this->config;
570  }

◆ getDebugArgument()

ilWkhtmlToPdfConfig::getDebugArgument ( )
protected

Definition at line 806 of file class.ilWkhtmlToPdfConfig.php.

Referenced by generateCommandLineConfig().

806  : void
807  {
808  if (self::ENABLE_QUIET) {
809  $this->config[] = 'quiet';
810  }
811  }
+ Here is the caller graph for this function:

◆ getEnabledForms()

ilWkhtmlToPdfConfig::getEnabledForms ( )

Definition at line 197 of file class.ilWkhtmlToPdfConfig.php.

References $enabled_forms.

Referenced by getEnabledFormsArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

197  : bool
198  {
199  return $this->enabled_forms;
200  }
+ Here is the caller graph for this function:

◆ getEnabledFormsArgument()

ilWkhtmlToPdfConfig::getEnabledFormsArgument ( )
protected

Definition at line 622 of file class.ilWkhtmlToPdfConfig.php.

References getEnabledForms().

Referenced by generateCommandLineConfig().

622  : void
623  {
624  if ($this->getEnabledForms()) {
625  $this->config[] = 'enable-forms';
626  } else {
627  $this->config[] = 'disable-forms';
628  }
629  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getExternalLinks()

ilWkhtmlToPdfConfig::getExternalLinks ( )

Definition at line 207 of file class.ilWkhtmlToPdfConfig.php.

References $external_links.

Referenced by getExternalLinksArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

207  : bool
208  {
209  return $this->external_links;
210  }
+ Here is the caller graph for this function:

◆ getExternalLinksArgument()

ilWkhtmlToPdfConfig::getExternalLinksArgument ( )
protected

Definition at line 613 of file class.ilWkhtmlToPdfConfig.php.

References getExternalLinks().

Referenced by generateCommandLineConfig().

613  : void
614  {
615  if ($this->getExternalLinks()) {
616  $this->config[] = 'enable-external-links';
617  } else {
618  $this->config[] = 'disable-external-links';
619  }
620  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getFooterArgument()

ilWkhtmlToPdfConfig::getFooterArgument ( )
protected

Definition at line 780 of file class.ilWkhtmlToPdfConfig.php.

References ilShellUtil\escapeShellArg(), ilPDFGenerationConstants\FOOTER_HTML, ilPDFGenerationConstants\FOOTER_TEXT, getFooterHtml(), getFooterHtmlSpacing(), getFooterTextCenter(), getFooterTextLeft(), getFooterTextRight(), getFooterTextSpacing(), getFooterType(), isFooterHtmlLine(), and isFooterTextLine().

Referenced by generateCommandLineConfig().

780  : void
781  {
782  $footer_value = $this->getFooterType();
783  if ($footer_value === ilPDFGenerationConstants::FOOTER_TEXT) {
784  $this->config[] = 'footer-left ' . ilShellUtil::escapeShellArg($this->getFooterTextLeft());
785  $this->config[] = 'footer-center ' . ilShellUtil::escapeShellArg($this->getFooterTextCenter());
786  $this->config[] = 'footer-right ' . ilShellUtil::escapeShellArg($this->getFooterTextRight());
787  if ($this->getFooterTextSpacing() > 0) {
788  $this->config[] = 'footer-spacing ' . $this->getFooterTextSpacing();
789  }
790 
791  if ($this->isFooterTextLine()) {
792  $this->config[] = 'footer-line';
793  }
794  } elseif ($footer_value === ilPDFGenerationConstants::FOOTER_HTML) {
795  $this->config[] = 'footer-html ' . ilShellUtil::escapeShellArg($this->getFooterHtml());
796 
797  if ($this->getFooterHtmlSpacing() > 0) {
798  $this->config[] = 'footer-spacing ' . $this->getFooterHtmlSpacing();
799  }
800  if ($this->isFooterHtmlLine()) {
801  $this->config[] = 'footer-line';
802  }
803  }
804  }
static escapeShellArg(string $a_arg)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getFooterHtml()

ilWkhtmlToPdfConfig::getFooterHtml ( )

Definition at line 287 of file class.ilWkhtmlToPdfConfig.php.

References $footer_html.

Referenced by getFooterArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

287  : string
288  {
289  return $this->footer_html;
290  }
+ Here is the caller graph for this function:

◆ getFooterHtmlSpacing()

ilWkhtmlToPdfConfig::getFooterHtmlSpacing ( )

Definition at line 277 of file class.ilWkhtmlToPdfConfig.php.

References $footer_html_spacing.

Referenced by getFooterArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

277  : int
278  {
280  }
+ Here is the caller graph for this function:

◆ getFooterTextCenter()

ilWkhtmlToPdfConfig::getFooterTextCenter ( )

Definition at line 307 of file class.ilWkhtmlToPdfConfig.php.

References $footer_text_center.

Referenced by getFooterArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

307  : string
308  {
310  }
+ Here is the caller graph for this function:

◆ getFooterTextLeft()

ilWkhtmlToPdfConfig::getFooterTextLeft ( )

Definition at line 337 of file class.ilWkhtmlToPdfConfig.php.

References $footer_text_left.

Referenced by getFooterArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

337  : string
338  {
340  }
+ Here is the caller graph for this function:

◆ getFooterTextRight()

ilWkhtmlToPdfConfig::getFooterTextRight ( )

Definition at line 327 of file class.ilWkhtmlToPdfConfig.php.

References $footer_text_right.

Referenced by getFooterArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

327  : string
328  {
330  }
+ Here is the caller graph for this function:

◆ getFooterTextSpacing()

ilWkhtmlToPdfConfig::getFooterTextSpacing ( )

Definition at line 317 of file class.ilWkhtmlToPdfConfig.php.

References $footer_text_spacing.

Referenced by getFooterArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

317  : int
318  {
320  }
+ Here is the caller graph for this function:

◆ getFooterType()

ilWkhtmlToPdfConfig::getFooterType ( )

Definition at line 347 of file class.ilWkhtmlToPdfConfig.php.

References $footer_type.

Referenced by getFooterArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

347  : int
348  {
349  return $this->footer_type;
350  }
+ Here is the caller graph for this function:

◆ getGreyscale()

ilWkhtmlToPdfConfig::getGreyscale ( )

Definition at line 227 of file class.ilWkhtmlToPdfConfig.php.

References $greyscale.

Referenced by getGreyscaleArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

227  : bool
228  {
229  return $this->greyscale;
230  }
+ Here is the caller graph for this function:

◆ getGreyscaleArgument()

ilWkhtmlToPdfConfig::getGreyscaleArgument ( )
protected

Definition at line 631 of file class.ilWkhtmlToPdfConfig.php.

References getGreyscale().

Referenced by generateCommandLineConfig().

631  : void
632  {
633  if ($this->getGreyscale()) {
634  $this->config[] = 'grayscale';
635  }
636  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getHeaderArgument()

ilWkhtmlToPdfConfig::getHeaderArgument ( )
protected

Definition at line 724 of file class.ilWkhtmlToPdfConfig.php.

References ilShellUtil\escapeShellArg(), getHeaderHtml(), getHeaderHtmlSpacing(), getHeaderTextCenter(), getHeaderTextLeft(), getHeaderTextRight(), getHeaderTextSpacing(), getHeaderType(), ilPDFGenerationConstants\HEADER_HTML, ilPDFGenerationConstants\HEADER_TEXT, isHeaderHtmlLine(), and isHeaderTextLine().

Referenced by generateCommandLineConfig().

724  : void
725  {
726  $header_value = $this->getHeaderType();
727  if ($header_value === ilPDFGenerationConstants::HEADER_TEXT) {
728  $this->config[] = 'header-left ' . ilShellUtil::escapeShellArg($this->getHeaderTextLeft());
729  $this->config[] = 'header-center ' . ilShellUtil::escapeShellArg($this->getHeaderTextCenter());
730  $this->config[] = 'header-right ' . ilShellUtil::escapeShellArg($this->getHeaderTextRight());
731  if ($this->getHeaderTextSpacing() > 0) {
732  $this->config[] = 'header-spacing ' . $this->getHeaderTextSpacing();
733  }
734 
735  if ($this->isHeaderTextLine()) {
736  $this->config[] = 'header-line';
737  }
738  } elseif ($header_value === ilPDFGenerationConstants::HEADER_HTML) {
739  $this->config[] = 'header-html ' . ilShellUtil::escapeShellArg($this->getHeaderHtml());
740 
741  if ($this->getHeaderHtmlSpacing() > 0) {
742  $this->config[] = 'header-spacing ' . $this->getHeaderHtmlSpacing();
743  }
744  if ($this->isHeaderHtmlLine()) {
745  $this->config[] = 'header-line';
746  }
747  }
748  }
static escapeShellArg(string $a_arg)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getHeaderHtml()

ilWkhtmlToPdfConfig::getHeaderHtml ( )

Definition at line 750 of file class.ilWkhtmlToPdfConfig.php.

References $header_html.

Referenced by getHeaderArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

750  : string
751  {
752  return $this->header_html;
753  }
+ Here is the caller graph for this function:

◆ getHeaderHtmlSpacing()

ilWkhtmlToPdfConfig::getHeaderHtmlSpacing ( )

Definition at line 760 of file class.ilWkhtmlToPdfConfig.php.

References $header_html_spacing.

Referenced by getHeaderArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

760  : int
761  {
763  }
+ Here is the caller graph for this function:

◆ getHeaderTextCenter()

ilWkhtmlToPdfConfig::getHeaderTextCenter ( )

Definition at line 397 of file class.ilWkhtmlToPdfConfig.php.

References $header_text_center.

Referenced by getHeaderArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

397  : string
398  {
400  }
+ Here is the caller graph for this function:

◆ getHeaderTextLeft()

ilWkhtmlToPdfConfig::getHeaderTextLeft ( )

Definition at line 407 of file class.ilWkhtmlToPdfConfig.php.

References $header_text_left.

Referenced by getHeaderArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

407  : string
408  {
410  }
+ Here is the caller graph for this function:

◆ getHeaderTextRight()

ilWkhtmlToPdfConfig::getHeaderTextRight ( )

Definition at line 387 of file class.ilWkhtmlToPdfConfig.php.

References $header_text_right.

Referenced by getHeaderArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

387  : string
388  {
390  }
+ Here is the caller graph for this function:

◆ getHeaderTextSpacing()

ilWkhtmlToPdfConfig::getHeaderTextSpacing ( )

Definition at line 377 of file class.ilWkhtmlToPdfConfig.php.

References $header_text_spacing.

Referenced by getHeaderArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

377  : int
378  {
380  }
+ Here is the caller graph for this function:

◆ getHeaderType()

ilWkhtmlToPdfConfig::getHeaderType ( )

Definition at line 417 of file class.ilWkhtmlToPdfConfig.php.

References $header_type.

Referenced by getHeaderArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

417  : int
418  {
419  return $this->header_type;
420  }
+ Here is the caller graph for this function:

◆ getJavascriptDelay()

ilWkhtmlToPdfConfig::getJavascriptDelay ( )

Definition at line 467 of file class.ilWkhtmlToPdfConfig.php.

References $javascript_delay.

Referenced by getJavascriptDelayArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

467  : int
468  {
470  }
+ Here is the caller graph for this function:

◆ getJavascriptDelayArgument()

ilWkhtmlToPdfConfig::getJavascriptDelayArgument ( )
protected

Definition at line 669 of file class.ilWkhtmlToPdfConfig.php.

References getJavascriptDelay().

Referenced by generateCommandLineConfig().

669  : void
670  {
671  if ($this->getJavascriptDelay() > 0) {
672  $this->config[] = 'javascript-delay ' . $this->getJavascriptDelay();
673  }
674  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLowQuality()

ilWkhtmlToPdfConfig::getLowQuality ( )

Definition at line 217 of file class.ilWkhtmlToPdfConfig.php.

References $low_quality.

Referenced by getLowQualityArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

217  : bool
218  {
219  return $this->low_quality;
220  }
+ Here is the caller graph for this function:

◆ getLowQualityArgument()

ilWkhtmlToPdfConfig::getLowQualityArgument ( )
protected

Definition at line 638 of file class.ilWkhtmlToPdfConfig.php.

References getLowQuality().

Referenced by generateCommandLineConfig().

638  : void
639  {
640  if ($this->getLowQuality()) {
641  $this->config[] = 'lowquality';
642  }
643  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMarginArgument()

ilWkhtmlToPdfConfig::getMarginArgument ( )
protected

Definition at line 708 of file class.ilWkhtmlToPdfConfig.php.

References ilShellUtil\escapeShellArg(), getMarginBottom(), getMarginLeft(), getMarginRight(), and getMarginTop().

Referenced by generateCommandLineConfig().

708  : void
709  {
710  if ($this->getMarginBottom() !== '') {
711  $this->config[] = 'margin-bottom ' . ilShellUtil::escapeShellArg($this->getMarginBottom());
712  }
713  if ($this->getMarginLeft() !== '') {
714  $this->config[] = 'margin-left ' . ilShellUtil::escapeShellArg($this->getMarginLeft());
715  }
716  if ($this->getMarginRight() !== '') {
717  $this->config[] = 'margin-right ' . ilShellUtil::escapeShellArg($this->getMarginRight());
718  }
719  if ($this->getMarginTop() !== '') {
720  $this->config[] = 'margin-top ' . ilShellUtil::escapeShellArg($this->getMarginTop());
721  }
722  }
static escapeShellArg(string $a_arg)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMarginBottom()

ilWkhtmlToPdfConfig::getMarginBottom ( )

Definition at line 497 of file class.ilWkhtmlToPdfConfig.php.

References $margin_bottom.

Referenced by getMarginArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

497  : string
498  {
499  return $this->margin_bottom;
500  }
+ Here is the caller graph for this function:

◆ getMarginLeft()

ilWkhtmlToPdfConfig::getMarginLeft ( )

Definition at line 257 of file class.ilWkhtmlToPdfConfig.php.

References $margin_left.

Referenced by getMarginArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

257  : string
258  {
259  return $this->margin_left;
260  }
+ Here is the caller graph for this function:

◆ getMarginRight()

ilWkhtmlToPdfConfig::getMarginRight ( )

Definition at line 267 of file class.ilWkhtmlToPdfConfig.php.

References $margin_right.

Referenced by getMarginArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

267  : string
268  {
269  return $this->margin_right;
270  }
+ Here is the caller graph for this function:

◆ getMarginTop()

ilWkhtmlToPdfConfig::getMarginTop ( )

Definition at line 487 of file class.ilWkhtmlToPdfConfig.php.

References $margin_top.

Referenced by getMarginArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

487  : string
488  {
489  return $this->margin_top;
490  }
+ Here is the caller graph for this function:

◆ getOrientation()

ilWkhtmlToPdfConfig::getOrientation ( )

Definition at line 237 of file class.ilWkhtmlToPdfConfig.php.

References $orientation.

Referenced by getOrientationArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

237  : string
238  {
239  return $this->orientation;
240  }
+ Here is the caller graph for this function:

◆ getOrientationArgument()

ilWkhtmlToPdfConfig::getOrientationArgument ( )
protected

Definition at line 645 of file class.ilWkhtmlToPdfConfig.php.

References getOrientation().

Referenced by generateCommandLineConfig().

645  : void
646  {
647  $orientation = $this->getOrientation();
648  if ($orientation === '' || $orientation === 'Portrait') {
649  $this->config[] = 'orientation Portrait';
650  } else {
651  $this->config[] = 'orientation Landscape';
652  }
653  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOverwriteDefaultFont()

ilWkhtmlToPdfConfig::getOverwriteDefaultFont ( bool  $renderStyle = false)

Definition at line 507 of file class.ilWkhtmlToPdfConfig.php.

References $overwrite_default_font.

Referenced by ilWkhtmlToPdfRenderer\appendDefaultFontStyle(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

507  : string
508  {
509  if ($renderStyle) {
510  if ($this->overwrite_default_font !== '') {
511  return '<style>body{font-family: ' . $this->overwrite_default_font . ';}</style>';
512  }
513 
514  return '';
515  }
516  if ($this->overwrite_default_font === '') {
517  return 'arial';
518  }
519 
521  }
+ Here is the caller graph for this function:

◆ getPageSize()

ilWkhtmlToPdfConfig::getPageSize ( )

Definition at line 247 of file class.ilWkhtmlToPdfConfig.php.

References $page_size.

Referenced by getPageSizeArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

247  : string
248  {
249  return $this->page_size;
250  }
+ Here is the caller graph for this function:

◆ getPageSizeArgument()

ilWkhtmlToPdfConfig::getPageSizeArgument ( )
protected

Definition at line 662 of file class.ilWkhtmlToPdfConfig.php.

References ilShellUtil\escapeShellArg(), and getPageSize().

Referenced by generateCommandLineConfig().

662  : void
663  {
664  if ($this->getPageSize() !== '') {
665  $this->config[] = 'page-size ' . ilShellUtil::escapeShellArg($this->getPageSize());
666  }
667  }
static escapeShellArg(string $a_arg)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPath()

ilWkhtmlToPdfConfig::getPath ( )

Definition at line 547 of file class.ilWkhtmlToPdfConfig.php.

References $path.

547  : string
548  {
549  return $this->path;
550  }

◆ getPrintMediaType()

ilWkhtmlToPdfConfig::getPrintMediaType ( )

Definition at line 477 of file class.ilWkhtmlToPdfConfig.php.

References $print_media_type.

Referenced by getPrintMediaTypeArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

477  : bool
478  {
480  }
+ Here is the caller graph for this function:

◆ getPrintMediaTypeArgument()

ilWkhtmlToPdfConfig::getPrintMediaTypeArgument ( )
protected

Definition at line 655 of file class.ilWkhtmlToPdfConfig.php.

References getPrintMediaType().

Referenced by generateCommandLineConfig().

655  : void
656  {
657  if ($this->getPrintMediaType()) {
658  $this->config[] = 'print-media-type';
659  }
660  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRadioButtonCheckedSvg()

ilWkhtmlToPdfConfig::getRadioButtonCheckedSvg ( )

Definition at line 427 of file class.ilWkhtmlToPdfConfig.php.

References $radio_button_checked_svg.

Referenced by getRadioButtonCheckedSvgArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

427  : string
428  {
430  }
+ Here is the caller graph for this function:

◆ getRadioButtonCheckedSvgArgument()

ilWkhtmlToPdfConfig::getRadioButtonCheckedSvgArgument ( )
protected

Definition at line 700 of file class.ilWkhtmlToPdfConfig.php.

References ilShellUtil\escapeShellArg(), and getRadioButtonCheckedSvg().

Referenced by generateCommandLineConfig().

700  : void
701  {
703  if ($radio_button_svg !== '') {
704  $this->config[] = 'radiobutton-checked-svg ' . ilShellUtil::escapeShellArg($radio_button_svg);
705  }
706  }
static escapeShellArg(string $a_arg)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRadioButtonSvg()

ilWkhtmlToPdfConfig::getRadioButtonSvg ( )

Definition at line 437 of file class.ilWkhtmlToPdfConfig.php.

References $radio_button_svg.

Referenced by getRadioButtonSvgArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

437  : string
438  {
440  }
+ Here is the caller graph for this function:

◆ getRadioButtonSvgArgument()

ilWkhtmlToPdfConfig::getRadioButtonSvgArgument ( )
protected

Definition at line 692 of file class.ilWkhtmlToPdfConfig.php.

References ilShellUtil\escapeShellArg(), and getRadioButtonSvg().

Referenced by generateCommandLineConfig().

692  : void
693  {
695  if ($radio_button_svg !== '') {
696  $this->config[] = 'radiobutton-svg ' . ilShellUtil::escapeShellArg($radio_button_svg);
697  }
698  }
static escapeShellArg(string $a_arg)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSavedDefaultBinaryPath()

ilWkhtmlToPdfConfig::getSavedDefaultBinaryPath ( )
protected

Definition at line 821 of file class.ilWkhtmlToPdfConfig.php.

References $path, and ILIAS\LTI\ToolProvider\$settings.

Referenced by getWKHTMLToPdfDefaultPath().

821  : string
822  {
823  $settings = new ilSetting('wkhtmltopdfrenderer');
824  $path = $settings->get('path');
825  if ($path !== null && $path !== '') {
826  return $path;
827  }
828 
829  return '';
830  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
+ Here is the caller graph for this function:

◆ getSessionObject()

ilWkhtmlToPdfConfig::getSessionObject ( )
protected

Definition at line 813 of file class.ilWkhtmlToPdfConfig.php.

References CLIENT_ID.

Referenced by generateCommandLineConfig().

813  : void
814  {
815  $this->config[] = 'cookie "PHPSESSID" "' . session_id() . '"';
816  if (defined('CLIENT_ID')) {
817  $this->config[] = 'cookie "ilClientId" "' . CLIENT_ID . '"';
818  }
819  }
const CLIENT_ID
Definition: constants.php:41
+ Here is the caller graph for this function:

◆ getWKHTMLToPdfDefaultPath()

ilWkhtmlToPdfConfig::getWKHTMLToPdfDefaultPath ( )

Definition at line 557 of file class.ilWkhtmlToPdfConfig.php.

References $path, and getSavedDefaultBinaryPath().

Referenced by ilWkhtmlToPdfConfigFormGUI\populateForm().

557  : string
558  {
559  $path = $this->getSavedDefaultBinaryPath();
560  if ($path !== '') {
561  return $path;
562  }
563 
564  return '/usr/local/bin/wkhtmltopdf';
565  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getZoom()

ilWkhtmlToPdfConfig::getZoom ( )

Definition at line 187 of file class.ilWkhtmlToPdfConfig.php.

References $zoom.

Referenced by getZoomArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

187  : float
188  {
189  return $this->zoom;
190  }
+ Here is the caller graph for this function:

◆ getZoomArgument()

ilWkhtmlToPdfConfig::getZoomArgument ( )
protected

Definition at line 606 of file class.ilWkhtmlToPdfConfig.php.

References getZoom().

Referenced by generateCommandLineConfig().

606  : void
607  {
608  if ($this->getZoom()) {
609  $this->config[] = 'zoom ' . $this->getZoom();
610  }
611  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isFooterHtmlLine()

ilWkhtmlToPdfConfig::isFooterHtmlLine ( )

Definition at line 357 of file class.ilWkhtmlToPdfConfig.php.

References $footer_html_line.

Referenced by getFooterArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

357  : bool
358  {
360  }
+ Here is the caller graph for this function:

◆ isFooterTextLine()

ilWkhtmlToPdfConfig::isFooterTextLine ( )

Definition at line 297 of file class.ilWkhtmlToPdfConfig.php.

References $footer_text_line.

Referenced by getFooterArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

297  : bool
298  {
300  }
+ Here is the caller graph for this function:

◆ isHeaderHtmlLine()

ilWkhtmlToPdfConfig::isHeaderHtmlLine ( )

Definition at line 770 of file class.ilWkhtmlToPdfConfig.php.

References $header_html_line.

Referenced by getHeaderArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

770  : bool
771  {
773  }
+ Here is the caller graph for this function:

◆ isHeaderTextLine()

ilWkhtmlToPdfConfig::isHeaderTextLine ( )

Definition at line 367 of file class.ilWkhtmlToPdfConfig.php.

References $header_text_line.

Referenced by getHeaderArgument(), ilWkhtmlToPdfConfigFormGUI\populateForm(), and readConfigFromObject().

367  : bool
368  {
370  }
+ Here is the caller graph for this function:

◆ readConfigFromArray()

ilWkhtmlToPdfConfig::readConfigFromArray ( array  $config)
protected

Definition at line 82 of file class.ilWkhtmlToPdfConfig.php.

References setKeyIfExists().

Referenced by __construct().

82  : void
83  {
84  $this->setKeyIfExists('setZoom', 'zoom', $config);
85  $this->setKeyIfExists('setEnabledForms', 'enable_forms', $config);
86  $this->setKeyIfExists('setExternalLinks', 'external_links', $config);
87  $this->setKeyIfExists('setLowQuality', 'low_quality', $config);
88  $this->setKeyIfExists('setGreyscale', 'greyscale', $config);
89  $this->setKeyIfExists('setOrientation', 'orientation', $config);
90  $this->setKeyIfExists('setPageSize', 'page_size', $config);
91  $this->setKeyIfExists('setMarginLeft', 'margin_left', $config);
92  $this->setKeyIfExists('setMarginRight', 'margin_right', $config);
93  $this->setKeyIfExists('setFooterHtmlSpacing', 'footer_html_spacing', $config);
94  $this->setKeyIfExists('setFooterHtml', 'footer_html', $config);
95  $this->setKeyIfExists('setFooterTextLine', 'footer_text_line', $config);
96  $this->setKeyIfExists('setFooterTextCenter', 'footer_text_center', $config);
97  $this->setKeyIfExists('setFooterTextCenter', 'footer_text_center', $config);
98  $this->setKeyIfExists('setFooterTextSpacing', 'footer_text_spacing', $config);
99  $this->setKeyIfExists('setFooterTextRight', 'footer_text_right', $config);
100  $this->setKeyIfExists('setFooterTextLeft', 'footer_text_left', $config);
101  $this->setKeyIfExists('setFooterType', 'footer_select', $config);
102  $this->setKeyIfExists('setHeaderHtmlSpacing', 'head_html_spacing', $config);
103  $this->setKeyIfExists('setHeaderHtmlLine', 'head_html_line', $config);
104  $this->setKeyIfExists('setHeaderHtml', 'head_html', $config);
105  $this->setKeyIfExists('setHeaderTextLine', 'head_text_line', $config);
106  $this->setKeyIfExists('setHeaderTextSpacing', 'head_text_spacing', $config);
107  $this->setKeyIfExists('setHeaderTextRight', 'head_text_right', $config);
108  $this->setKeyIfExists('setHeaderTextCenter', 'head_text_center', $config);
109  $this->setKeyIfExists('setHeaderTextLeft', 'head_text_left', $config);
110  $this->setKeyIfExists('setHeaderType', 'header_select', $config);
111  $this->setKeyIfExists('setRadioButtonCheckedSvg', 'radio_button_checked_svg', $config);
112  $this->setKeyIfExists('setRadioButtonSvg', 'radio_button_svg', $config);
113  $this->setKeyIfExists('setCheckboxCheckedSvg', 'checkbox_checked_svg', $config);
114  $this->setKeyIfExists('setCheckboxSvg', 'checkbox_svg', $config);
115  $this->setKeyIfExists('setJavascriptDelay', 'javascript_delay', $config);
116  $this->setKeyIfExists('setPrintMediaType', 'print_media_type', $config);
117  $this->setKeyIfExists('setMarginTop', 'margin_top', $config);
118  $this->setKeyIfExists('setMarginBottom', 'margin_bottom', $config);
119  $this->setKeyIfExists('setOverwriteDefaultFont', 'overwrite_font', $config);
120  }
setKeyIfExists(string $function, string $key, array $config)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readConfigFromObject()

ilWkhtmlToPdfConfig::readConfigFromObject ( ilWkhtmlToPdfConfig  $config)
protected

Definition at line 146 of file class.ilWkhtmlToPdfConfig.php.

References getCheckboxCheckedSvg(), getCheckboxSvg(), getEnabledForms(), getExternalLinks(), getFooterHtml(), getFooterHtmlSpacing(), getFooterTextCenter(), getFooterTextLeft(), getFooterTextRight(), getFooterTextSpacing(), getFooterType(), getGreyscale(), getHeaderHtml(), getHeaderHtmlSpacing(), getHeaderTextCenter(), getHeaderTextLeft(), getHeaderTextRight(), getHeaderTextSpacing(), getHeaderType(), getJavascriptDelay(), getLowQuality(), getMarginBottom(), getMarginLeft(), getMarginRight(), getMarginTop(), getOrientation(), getOverwriteDefaultFont(), getPageSize(), getPrintMediaType(), getRadioButtonCheckedSvg(), getRadioButtonSvg(), getZoom(), isFooterHtmlLine(), isFooterTextLine(), isHeaderHtmlLine(), isHeaderTextLine(), setCheckboxCheckedSvg(), setCheckboxSvg(), setEnabledForms(), setExternalLinks(), setFooterHtml(), setFooterHtmlLine(), setFooterHtmlSpacing(), setFooterTextCenter(), setFooterTextLeft(), setFooterTextLine(), setFooterTextRight(), setFooterTextSpacing(), setFooterType(), setGreyscale(), setHeaderHtml(), setHeaderHtmlLine(), setHeaderHtmlSpacing(), setHeaderTextCenter(), setHeaderTextLeft(), setHeaderTextLine(), setHeaderTextRight(), setHeaderTextSpacing(), setHeaderType(), setJavascriptDelay(), setLowQuality(), setMarginBottom(), setMarginLeft(), setMarginRight(), setMarginTop(), setOrientation(), setOverwriteDefaultFont(), setPageSize(), setPrintMediaType(), setRadioButtonCheckedSvg(), setRadioButtonSvg(), and setZoom().

Referenced by __construct().

146  : void
147  {
148  $this->setZoom($config->getZoom());
149  $this->setEnabledForms($config->getEnabledForms());
150  $this->setExternalLinks($config->getExternalLinks());
151  $this->setLowQuality($config->getLowQuality());
152  $this->setGreyscale($config->getGreyscale());
153  $this->setOrientation($config->getOrientation());
154  $this->setPageSize($config->getPageSize());
155  $this->setMarginLeft($config->getMarginLeft());
156  $this->setMarginRight($config->getMarginRight());
157  $this->setFooterTextLine($config->isFooterTextLine());
158  $this->setFooterTextCenter($config->getFooterTextCenter());
159  $this->setFooterTextSpacing($config->getFooterTextSpacing());
160  $this->setFooterTextRight($config->getFooterTextRight());
161  $this->setFooterTextLeft($config->getFooterTextLeft());
162  $this->setFooterType($config->getFooterType());
163 
164  $this->setFooterHtmlSpacing($config->getFooterHtmlSpacing());
165  $this->setFooterHtml($config->getFooterHtml());
166  $this->setFooterHtmlLine($config->isFooterHtmlLine());
167  $this->setHeaderHtmlSpacing($config->getHeaderHtmlSpacing());
168  $this->setHeaderHtml($config->getHeaderHtml());
169  $this->setHeaderHtmlLine($config->isHeaderHtmlLine());
170  $this->setHeaderTextLine($config->isHeaderTextLine());
171  $this->setHeaderTextSpacing($config->getHeaderTextSpacing());
172  $this->setHeaderTextRight($config->getHeaderTextRight());
173  $this->setHeaderTextCenter($config->getHeaderTextCenter());
174  $this->setHeaderTextLeft($config->getHeaderTextLeft());
175  $this->setHeaderType($config->getHeaderType());
177  $this->setRadioButtonSvg($config->getRadioButtonSvg());
178  $this->setCheckboxCheckedSvg($config->getCheckboxCheckedSvg());
179  $this->setCheckboxSvg($config->getCheckboxSvg());
180  $this->setJavascriptDelay($config->getJavascriptDelay());
181  $this->setPrintMediaType($config->getPrintMediaType());
182  $this->setMarginTop($config->getMarginTop());
183  $this->setMarginBottom($config->getMarginBottom());
185  }
setFooterHtmlLine(bool $footer_html_line)
setMarginBottom(string $margin_bottom)
setHeaderTextSpacing(int $header_text_spacing)
setFooterTextCenter(string $footer_text_center)
setFooterHtmlSpacing(int $footer_html_spacing)
setHeaderTextCenter(string $header_text_center)
setMarginRight(string $margin_right)
setFooterTextRight(string $footer_text_right)
setJavascriptDelay(int $javascript_delay)
setCheckboxCheckedSvg(string $checkbox_checked_svg)
getOverwriteDefaultFont(bool $renderStyle=false)
setRadioButtonCheckedSvg(string $radio_button_checked_svg)
setOverwriteDefaultFont(string $overwrite_default_font)
setFooterHtml(string $footer_html)
setFooterTextLine(bool $footer_text_line)
setHeaderHtmlSpacing(int $header_html_spacing)
setOrientation(string $orientation)
setHeaderTextRight(string $header_text_right)
setFooterTextSpacing(int $footer_text_spacing)
setRadioButtonSvg(string $radio_button_svg)
setMarginLeft(string $margin_left)
setPrintMediaType(bool $print_media_type)
setHeaderTextLine(bool $header_text_line)
setCheckboxSvg(string $checkbox_svg)
setHeaderHtml(string $header_html)
setHeaderTextLeft(string $header_text_left)
setEnabledForms(?bool $enabled_forms)
setLowQuality(bool $low_quality)
setMarginTop(string $margin_top)
setExternalLinks(bool $external_links)
setHeaderHtmlLine(bool $header_html_line)
setFooterTextLeft(string $footer_text_left)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setCheckboxCheckedSvg()

ilWkhtmlToPdfConfig::setCheckboxCheckedSvg ( string  $checkbox_checked_svg)

Definition at line 452 of file class.ilWkhtmlToPdfConfig.php.

References $checkbox_checked_svg.

Referenced by readConfigFromObject().

452  : void
453  {
454  $this->checkbox_checked_svg = $checkbox_checked_svg;
455  }
+ Here is the caller graph for this function:

◆ setCheckboxSvg()

ilWkhtmlToPdfConfig::setCheckboxSvg ( string  $checkbox_svg)

Definition at line 462 of file class.ilWkhtmlToPdfConfig.php.

References $checkbox_svg.

Referenced by readConfigFromObject().

462  : void
463  {
464  $this->checkbox_svg = $checkbox_svg;
465  }
+ Here is the caller graph for this function:

◆ setEnabledForms()

ilWkhtmlToPdfConfig::setEnabledForms ( ?bool  $enabled_forms)

Definition at line 202 of file class.ilWkhtmlToPdfConfig.php.

References $enabled_forms.

Referenced by readConfigFromObject(), and useDefaultConfig().

202  : void
203  {
204  $this->enabled_forms = $enabled_forms;
205  }
+ Here is the caller graph for this function:

◆ setExternalLinks()

ilWkhtmlToPdfConfig::setExternalLinks ( bool  $external_links)

Definition at line 212 of file class.ilWkhtmlToPdfConfig.php.

References $external_links.

Referenced by readConfigFromObject(), and useDefaultConfig().

212  : void
213  {
214  $this->external_links = $external_links;
215  }
+ Here is the caller graph for this function:

◆ setFooterHtml()

ilWkhtmlToPdfConfig::setFooterHtml ( string  $footer_html)

Definition at line 292 of file class.ilWkhtmlToPdfConfig.php.

References $footer_html.

Referenced by readConfigFromObject().

292  : void
293  {
294  $this->footer_html = $footer_html;
295  }
+ Here is the caller graph for this function:

◆ setFooterHtmlLine()

ilWkhtmlToPdfConfig::setFooterHtmlLine ( bool  $footer_html_line)

Definition at line 362 of file class.ilWkhtmlToPdfConfig.php.

References $footer_html_line.

Referenced by readConfigFromObject().

362  : void
363  {
364  $this->footer_html_line = $footer_html_line;
365  }
+ Here is the caller graph for this function:

◆ setFooterHtmlSpacing()

ilWkhtmlToPdfConfig::setFooterHtmlSpacing ( int  $footer_html_spacing)

Definition at line 282 of file class.ilWkhtmlToPdfConfig.php.

References $footer_html_spacing.

Referenced by readConfigFromObject().

282  : void
283  {
284  $this->footer_html_spacing = $footer_html_spacing;
285  }
+ Here is the caller graph for this function:

◆ setFooterTextCenter()

ilWkhtmlToPdfConfig::setFooterTextCenter ( string  $footer_text_center)

Definition at line 312 of file class.ilWkhtmlToPdfConfig.php.

References $footer_text_center.

Referenced by readConfigFromObject().

312  : void
313  {
314  $this->footer_text_center = $footer_text_center;
315  }
+ Here is the caller graph for this function:

◆ setFooterTextLeft()

ilWkhtmlToPdfConfig::setFooterTextLeft ( string  $footer_text_left)

Definition at line 342 of file class.ilWkhtmlToPdfConfig.php.

References $footer_text_left.

Referenced by readConfigFromObject().

342  : void
343  {
344  $this->footer_text_left = $footer_text_left;
345  }
+ Here is the caller graph for this function:

◆ setFooterTextLine()

ilWkhtmlToPdfConfig::setFooterTextLine ( bool  $footer_text_line)

Definition at line 302 of file class.ilWkhtmlToPdfConfig.php.

References $footer_text_line.

Referenced by readConfigFromObject().

302  : void
303  {
304  $this->footer_text_line = $footer_text_line;
305  }
+ Here is the caller graph for this function:

◆ setFooterTextRight()

ilWkhtmlToPdfConfig::setFooterTextRight ( string  $footer_text_right)

Definition at line 332 of file class.ilWkhtmlToPdfConfig.php.

References $footer_text_right.

Referenced by readConfigFromObject().

332  : void
333  {
334  $this->footer_text_right = $footer_text_right;
335  }
+ Here is the caller graph for this function:

◆ setFooterTextSpacing()

ilWkhtmlToPdfConfig::setFooterTextSpacing ( int  $footer_text_spacing)

Definition at line 322 of file class.ilWkhtmlToPdfConfig.php.

References $footer_text_spacing.

Referenced by readConfigFromObject().

322  : void
323  {
324  $this->footer_text_spacing = $footer_text_spacing;
325  }
+ Here is the caller graph for this function:

◆ setFooterType()

ilWkhtmlToPdfConfig::setFooterType ( int  $footer_type)

Definition at line 352 of file class.ilWkhtmlToPdfConfig.php.

References $footer_type.

Referenced by readConfigFromObject().

352  : void
353  {
354  $this->footer_type = $footer_type;
355  }
+ Here is the caller graph for this function:

◆ setGreyscale()

ilWkhtmlToPdfConfig::setGreyscale ( bool  $greyscale)

Definition at line 232 of file class.ilWkhtmlToPdfConfig.php.

References $greyscale.

Referenced by readConfigFromObject().

232  : void
233  {
234  $this->greyscale = $greyscale;
235  }
+ Here is the caller graph for this function:

◆ setHeaderHtml()

ilWkhtmlToPdfConfig::setHeaderHtml ( string  $header_html)

Definition at line 755 of file class.ilWkhtmlToPdfConfig.php.

References $header_html.

Referenced by readConfigFromObject().

755  : void
756  {
757  $this->header_html = $header_html;
758  }
+ Here is the caller graph for this function:

◆ setHeaderHtmlLine()

ilWkhtmlToPdfConfig::setHeaderHtmlLine ( bool  $header_html_line)

Definition at line 775 of file class.ilWkhtmlToPdfConfig.php.

References $header_html_line.

Referenced by readConfigFromObject().

775  : void
776  {
777  $this->header_html_line = $header_html_line;
778  }
+ Here is the caller graph for this function:

◆ setHeaderHtmlSpacing()

ilWkhtmlToPdfConfig::setHeaderHtmlSpacing ( int  $header_html_spacing)

Definition at line 765 of file class.ilWkhtmlToPdfConfig.php.

References $header_html_spacing.

Referenced by readConfigFromObject().

765  : void
766  {
767  $this->header_html_spacing = $header_html_spacing;
768  }
+ Here is the caller graph for this function:

◆ setHeaderTextCenter()

ilWkhtmlToPdfConfig::setHeaderTextCenter ( string  $header_text_center)

Definition at line 402 of file class.ilWkhtmlToPdfConfig.php.

References $header_text_center.

Referenced by readConfigFromObject().

402  : void
403  {
404  $this->header_text_center = $header_text_center;
405  }
+ Here is the caller graph for this function:

◆ setHeaderTextLeft()

ilWkhtmlToPdfConfig::setHeaderTextLeft ( string  $header_text_left)

Definition at line 412 of file class.ilWkhtmlToPdfConfig.php.

References $header_text_left.

Referenced by readConfigFromObject().

412  : void
413  {
414  $this->header_text_left = $header_text_left;
415  }
+ Here is the caller graph for this function:

◆ setHeaderTextLine()

ilWkhtmlToPdfConfig::setHeaderTextLine ( bool  $header_text_line)

Definition at line 372 of file class.ilWkhtmlToPdfConfig.php.

References $header_text_line.

Referenced by readConfigFromObject().

372  : void
373  {
374  $this->header_text_line = $header_text_line;
375  }
+ Here is the caller graph for this function:

◆ setHeaderTextRight()

ilWkhtmlToPdfConfig::setHeaderTextRight ( string  $header_text_right)

Definition at line 392 of file class.ilWkhtmlToPdfConfig.php.

References $header_text_right.

Referenced by readConfigFromObject().

392  : void
393  {
394  $this->header_text_right = $header_text_right;
395  }
+ Here is the caller graph for this function:

◆ setHeaderTextSpacing()

ilWkhtmlToPdfConfig::setHeaderTextSpacing ( int  $header_text_spacing)

Definition at line 382 of file class.ilWkhtmlToPdfConfig.php.

References $header_text_spacing.

Referenced by readConfigFromObject().

382  : void
383  {
384  $this->header_text_spacing = $header_text_spacing;
385  }
+ Here is the caller graph for this function:

◆ setHeaderType()

ilWkhtmlToPdfConfig::setHeaderType ( int  $header_type)

Definition at line 422 of file class.ilWkhtmlToPdfConfig.php.

References $header_type.

Referenced by readConfigFromObject().

422  : void
423  {
424  $this->header_type = $header_type;
425  }
+ Here is the caller graph for this function:

◆ setJavascriptDelay()

ilWkhtmlToPdfConfig::setJavascriptDelay ( int  $javascript_delay)

Definition at line 472 of file class.ilWkhtmlToPdfConfig.php.

References $javascript_delay.

Referenced by readConfigFromObject(), and useDefaultConfig().

472  : void
473  {
474  $this->javascript_delay = $javascript_delay;
475  }
+ Here is the caller graph for this function:

◆ setKeyIfExists()

ilWkhtmlToPdfConfig::setKeyIfExists ( string  $function,
string  $key,
array  $config 
)
protected
Parameters
string$function
string$key
array<string,mixed>$config
Returns
void

Definition at line 128 of file class.ilWkhtmlToPdfConfig.php.

References ILIAS\LTI\ToolProvider\$key, and $type.

Referenced by readConfigFromArray().

128  : void
129  {
130  if (array_key_exists($key, $config)) {
131  $value = $config[$key];
132 
133  if (is_scalar($value)) {
134  $reflMethod = new ReflectionMethod($this, $function);
135  $type = $reflMethod->getParameters()[0]->getType();
136  if ($type instanceof ReflectionNamedType && $type->isBuiltin()) {
137  settype($value, $type->getName());
138  }
139  }
140  if ($value != null) {
141  $this->{$function}($value);
142  }
143  }
144  }
$type
string $key
Consumer key/client ID value.
Definition: System.php:193
+ Here is the caller graph for this function:

◆ setLowQuality()

ilWkhtmlToPdfConfig::setLowQuality ( bool  $low_quality)

Definition at line 222 of file class.ilWkhtmlToPdfConfig.php.

References $low_quality.

Referenced by readConfigFromObject().

222  : void
223  {
224  $this->low_quality = $low_quality;
225  }
+ Here is the caller graph for this function:

◆ setMarginBottom()

ilWkhtmlToPdfConfig::setMarginBottom ( string  $margin_bottom)

Definition at line 502 of file class.ilWkhtmlToPdfConfig.php.

References $margin_bottom.

Referenced by readConfigFromObject(), and useDefaultConfig().

502  : void
503  {
504  $this->margin_bottom = $margin_bottom;
505  }
+ Here is the caller graph for this function:

◆ setMarginLeft()

ilWkhtmlToPdfConfig::setMarginLeft ( string  $margin_left)

Definition at line 262 of file class.ilWkhtmlToPdfConfig.php.

References $margin_left.

Referenced by readConfigFromObject(), and useDefaultConfig().

262  : void
263  {
264  $this->margin_left = $margin_left;
265  }
+ Here is the caller graph for this function:

◆ setMarginRight()

ilWkhtmlToPdfConfig::setMarginRight ( string  $margin_right)

Definition at line 272 of file class.ilWkhtmlToPdfConfig.php.

References $margin_right.

Referenced by readConfigFromObject(), and useDefaultConfig().

272  : void
273  {
274  $this->margin_right = $margin_right;
275  }
+ Here is the caller graph for this function:

◆ setMarginTop()

ilWkhtmlToPdfConfig::setMarginTop ( string  $margin_top)

Definition at line 492 of file class.ilWkhtmlToPdfConfig.php.

References $margin_top.

Referenced by readConfigFromObject(), and useDefaultConfig().

492  : void
493  {
494  $this->margin_top = $margin_top;
495  }
+ Here is the caller graph for this function:

◆ setOrientation()

ilWkhtmlToPdfConfig::setOrientation ( string  $orientation)

Definition at line 242 of file class.ilWkhtmlToPdfConfig.php.

References $orientation.

Referenced by readConfigFromObject(), and useDefaultConfig().

242  : void
243  {
244  $this->orientation = $orientation;
245  }
+ Here is the caller graph for this function:

◆ setOverwriteDefaultFont()

ilWkhtmlToPdfConfig::setOverwriteDefaultFont ( string  $overwrite_default_font)

Definition at line 523 of file class.ilWkhtmlToPdfConfig.php.

References $overwrite_default_font.

Referenced by readConfigFromObject().

523  : void
524  {
525  $this->overwrite_default_font = $overwrite_default_font;
526  }
+ Here is the caller graph for this function:

◆ setPageSize()

ilWkhtmlToPdfConfig::setPageSize ( string  $page_size)

Definition at line 252 of file class.ilWkhtmlToPdfConfig.php.

References $page_size.

Referenced by readConfigFromObject(), and useDefaultConfig().

252  : void
253  {
254  $this->page_size = $page_size;
255  }
+ Here is the caller graph for this function:

◆ setPath()

ilWkhtmlToPdfConfig::setPath ( string  $path)

Definition at line 552 of file class.ilWkhtmlToPdfConfig.php.

References $path.

552  : void
553  {
554  $this->path = $path;
555  }

◆ setPrintMediaType()

ilWkhtmlToPdfConfig::setPrintMediaType ( bool  $print_media_type)

Definition at line 482 of file class.ilWkhtmlToPdfConfig.php.

References $print_media_type.

Referenced by readConfigFromObject().

482  : void
483  {
484  $this->print_media_type = $print_media_type;
485  }
+ Here is the caller graph for this function:

◆ setRadioButtonCheckedSvg()

ilWkhtmlToPdfConfig::setRadioButtonCheckedSvg ( string  $radio_button_checked_svg)

Definition at line 432 of file class.ilWkhtmlToPdfConfig.php.

References $radio_button_checked_svg.

Referenced by readConfigFromObject().

432  : void
433  {
434  $this->radio_button_checked_svg = $radio_button_checked_svg;
435  }
+ Here is the caller graph for this function:

◆ setRadioButtonSvg()

ilWkhtmlToPdfConfig::setRadioButtonSvg ( string  $radio_button_svg)

Definition at line 442 of file class.ilWkhtmlToPdfConfig.php.

References $radio_button_svg.

Referenced by readConfigFromObject().

442  : void
443  {
444  $this->radio_button_svg = $radio_button_svg;
445  }
+ Here is the caller graph for this function:

◆ setZoom()

ilWkhtmlToPdfConfig::setZoom ( float  $zoom)

Definition at line 192 of file class.ilWkhtmlToPdfConfig.php.

References $zoom.

Referenced by readConfigFromObject(), and useDefaultConfig().

192  : void
193  {
194  $this->zoom = $zoom;
195  }
+ Here is the caller graph for this function:

◆ supportMultiSourcesFiles()

static ilWkhtmlToPdfConfig::supportMultiSourcesFiles ( )
static

Definition at line 542 of file class.ilWkhtmlToPdfConfig.php.

542  : bool
543  {
544  return true;
545  }

◆ useDefaultConfig()

ilWkhtmlToPdfConfig::useDefaultConfig ( )
protected

Definition at line 528 of file class.ilWkhtmlToPdfConfig.php.

References setEnabledForms(), setExternalLinks(), setJavascriptDelay(), setMarginBottom(), setMarginLeft(), setMarginRight(), setMarginTop(), setOrientation(), setPageSize(), and setZoom().

Referenced by __construct().

528  : void
529  {
530  $this->setExternalLinks(true);
531  $this->setEnabledForms(false);
532  $this->setJavascriptDelay(500);
533  $this->setZoom(1);
534  $this->setOrientation('Portrait');
535  $this->setPageSize('A4');
536  $this->setMarginLeft('0.5cm');
537  $this->setMarginRight('2cm');
538  $this->setMarginBottom('0.5cm');
539  $this->setMarginTop('2cm');
540  }
setMarginBottom(string $margin_bottom)
setMarginRight(string $margin_right)
setJavascriptDelay(int $javascript_delay)
setOrientation(string $orientation)
setMarginLeft(string $margin_left)
setEnabledForms(?bool $enabled_forms)
setMarginTop(string $margin_top)
setExternalLinks(bool $external_links)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $checkbox_checked_svg

string ilWkhtmlToPdfConfig::$checkbox_checked_svg = ''
protected

Definition at line 62 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getCheckboxCheckedSvg(), and setCheckboxCheckedSvg().

◆ $checkbox_svg

string ilWkhtmlToPdfConfig::$checkbox_svg = ''
protected

Definition at line 61 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getCheckboxSvg(), and setCheckboxSvg().

◆ $config

array ilWkhtmlToPdfConfig::$config = []
protected

Definition at line 29 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getConfig().

◆ $enabled_forms

bool ilWkhtmlToPdfConfig::$enabled_forms = false
protected

Definition at line 32 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getEnabledForms(), and setEnabledForms().

◆ $external_links

bool ilWkhtmlToPdfConfig::$external_links = false
protected

Definition at line 31 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getExternalLinks(), and setExternalLinks().

◆ $footer_html

string ilWkhtmlToPdfConfig::$footer_html = ''
protected

Definition at line 58 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getFooterHtml(), and setFooterHtml().

◆ $footer_html_line

bool ilWkhtmlToPdfConfig::$footer_html_line = false
protected

Definition at line 60 of file class.ilWkhtmlToPdfConfig.php.

Referenced by isFooterHtmlLine(), and setFooterHtmlLine().

◆ $footer_html_spacing

int ilWkhtmlToPdfConfig::$footer_html_spacing = 0
protected

Definition at line 59 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getFooterHtmlSpacing(), and setFooterHtmlSpacing().

◆ $footer_text_center

string ilWkhtmlToPdfConfig::$footer_text_center = ''
protected

Definition at line 54 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getFooterTextCenter(), and setFooterTextCenter().

◆ $footer_text_left

string ilWkhtmlToPdfConfig::$footer_text_left = ''
protected

Definition at line 53 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getFooterTextLeft(), and setFooterTextLeft().

◆ $footer_text_line

bool ilWkhtmlToPdfConfig::$footer_text_line = false
protected

Definition at line 57 of file class.ilWkhtmlToPdfConfig.php.

Referenced by isFooterTextLine(), and setFooterTextLine().

◆ $footer_text_right

string ilWkhtmlToPdfConfig::$footer_text_right = ''
protected

Definition at line 55 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getFooterTextRight(), and setFooterTextRight().

◆ $footer_text_spacing

int ilWkhtmlToPdfConfig::$footer_text_spacing = 0
protected

Definition at line 56 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getFooterTextSpacing(), and setFooterTextSpacing().

◆ $footer_type

int ilWkhtmlToPdfConfig::$footer_type = 0
protected

Definition at line 52 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getFooterType(), and setFooterType().

◆ $greyscale

bool ilWkhtmlToPdfConfig::$greyscale = false
protected

Definition at line 33 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getGreyscale(), and setGreyscale().

◆ $header_html

string ilWkhtmlToPdfConfig::$header_html = ''
protected

Definition at line 49 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getHeaderHtml(), and setHeaderHtml().

◆ $header_html_line

bool ilWkhtmlToPdfConfig::$header_html_line = false
protected

Definition at line 51 of file class.ilWkhtmlToPdfConfig.php.

Referenced by isHeaderHtmlLine(), and setHeaderHtmlLine().

◆ $header_html_spacing

int ilWkhtmlToPdfConfig::$header_html_spacing = 0
protected

Definition at line 50 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getHeaderHtmlSpacing(), and setHeaderHtmlSpacing().

◆ $header_text_center

string ilWkhtmlToPdfConfig::$header_text_center = ''
protected

Definition at line 45 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getHeaderTextCenter(), and setHeaderTextCenter().

◆ $header_text_left

string ilWkhtmlToPdfConfig::$header_text_left = ''
protected

Definition at line 44 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getHeaderTextLeft(), and setHeaderTextLeft().

◆ $header_text_line

bool ilWkhtmlToPdfConfig::$header_text_line = false
protected

Definition at line 48 of file class.ilWkhtmlToPdfConfig.php.

Referenced by isHeaderTextLine(), and setHeaderTextLine().

◆ $header_text_right

string ilWkhtmlToPdfConfig::$header_text_right = ''
protected

Definition at line 46 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getHeaderTextRight(), and setHeaderTextRight().

◆ $header_text_spacing

int ilWkhtmlToPdfConfig::$header_text_spacing = 0
protected

Definition at line 47 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getHeaderTextSpacing(), and setHeaderTextSpacing().

◆ $header_type

int ilWkhtmlToPdfConfig::$header_type = 0
protected

Definition at line 43 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getHeaderType(), and setHeaderType().

◆ $javascript_delay

int ilWkhtmlToPdfConfig::$javascript_delay = 100
protected

Definition at line 38 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getJavascriptDelay(), and setJavascriptDelay().

◆ $low_quality

bool ilWkhtmlToPdfConfig::$low_quality = false
protected

Definition at line 34 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getLowQuality(), and setLowQuality().

◆ $margin_bottom

string ilWkhtmlToPdfConfig::$margin_bottom = ''
protected

Definition at line 42 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getMarginBottom(), and setMarginBottom().

◆ $margin_left

string ilWkhtmlToPdfConfig::$margin_left = ''
protected

Definition at line 39 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getMarginLeft(), and setMarginLeft().

◆ $margin_right

string ilWkhtmlToPdfConfig::$margin_right = ''
protected

Definition at line 40 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getMarginRight(), and setMarginRight().

◆ $margin_top

string ilWkhtmlToPdfConfig::$margin_top = ''
protected

Definition at line 41 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getMarginTop(), and setMarginTop().

◆ $orientation

string ilWkhtmlToPdfConfig::$orientation = 'Portrait'
protected

Definition at line 35 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getOrientation(), and setOrientation().

◆ $overwrite_default_font

string ilWkhtmlToPdfConfig::$overwrite_default_font = 'arial'
protected

◆ $page_size

string ilWkhtmlToPdfConfig::$page_size = 'A4'
protected

Definition at line 37 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getPageSize(), and setPageSize().

◆ $path

string ilWkhtmlToPdfConfig::$path = ''
protected

◆ $phpunit

bool ilWkhtmlToPdfConfig::$phpunit = false
protected

Definition at line 28 of file class.ilWkhtmlToPdfConfig.php.

◆ $print_media_type

bool ilWkhtmlToPdfConfig::$print_media_type = false
protected

Definition at line 36 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getPrintMediaType(), and setPrintMediaType().

◆ $radio_button_checked_svg

string ilWkhtmlToPdfConfig::$radio_button_checked_svg = ''
protected

◆ $radio_button_svg

string ilWkhtmlToPdfConfig::$radio_button_svg = ''
protected

Definition at line 63 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getRadioButtonSvg(), and setRadioButtonSvg().

◆ $zoom

float ilWkhtmlToPdfConfig::$zoom = 1.0
protected

Definition at line 30 of file class.ilWkhtmlToPdfConfig.php.

Referenced by getZoom(), and setZoom().

◆ ENABLE_QUIET

const ilWkhtmlToPdfConfig::ENABLE_QUIET = true
private

Definition at line 26 of file class.ilWkhtmlToPdfConfig.php.


The documentation for this class was generated from the following file: