ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilMathJax.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
30{
31 public const PURPOSE_BROWSER = 'browser';
32 public const PURPOSE_EXPORT = 'export';
33
34 protected static ?self $_instance;
35
39 public static function getInstance(): ilMathJax
40 {
41 return self::$_instance ??= new self();
42 }
43
47 public function setZoomFactor(float $a_factor): ilMathJax
48 {
49 return $this;
50 }
51
55 public function init(string $a_purpose = self::PURPOSE_BROWSER): ilMathJax
56 {
57 return $this;
58 }
59
63 public function includeMathJax(?ilGlobalTemplateInterface $a_tpl = null): ilMathJax
64 {
65 return $this;
66 }
67
71 public function insertLatexImages(string $a_text, ?string $a_start = '[tex]', ?string $a_end = '[/tex]'): string
72 {
73 return $a_text;
74 }
75}
Old ilMathJax class This class is kept temporary to prevent PHP errors in the components calling it.
init(string $a_purpose=self::PURPOSE_BROWSER)
includeMathJax(?ilGlobalTemplateInterface $a_tpl=null)
setZoomFactor(float $a_factor)
static self $_instance
static getInstance()
const PURPOSE_BROWSER
insertLatexImages(string $a_text, ?string $a_start='[tex]', ?string $a_end='[/tex]')
const PURPOSE_EXPORT