ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilMathJax.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
29 class ilMathJax
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 
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...
insertLatexImages(string $a_text, ?string $a_start='[tex]', ?string $a_end='[/tex]')
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
const PURPOSE_BROWSER
static self $_instance
const PURPOSE_EXPORT
init(string $a_purpose=self::PURPOSE_BROWSER)
static getInstance()
includeMathJax(?ilGlobalTemplateInterface $a_tpl=null)
setZoomFactor(float $a_factor)