ILIAS  release_8 Revision v8.24
class.ilMathJaxFactory.php
Go to the documentation of this file.
1<?php
2
20
25{
27
31 public function __construct()
32 {
33 global $DIC;
34 $this->template = $DIC->ui()->mainTemplate();
35 }
36
41 {
42 return new ilMathJaxServer($config);
43 }
44
48 public function image(string $a_tex, string $a_type, int $a_dpi): ilMathJaxImage
49 {
50 return new ilMathJaxImage($a_tex, $a_type, $a_dpi);
51 }
52
56 public function template(): ilGlobalTemplateInterface
57 {
58 return $this->template;
59 }
60}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:32
Global Mathjax configuration.
Factory for objects used by ilMathJax.
image(string $a_tex, string $a_type, int $a_dpi)
Create an ilMathJaxImage object.
server(ilMathJaxConfig $config)
Create an ilMathJaxServer object.
ilGlobalTemplateInterface $template
Rendered MathJax image Supports image types SVG or PNG Files are stored in the web file system of ili...
Class for calling theMathJax server The server calls use cURL, if the extension is loaded,...
global $DIC
Definition: feed.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:85