19declare(strict_types=1);
 
   38        $this->config = new \ilMathJaxConfig(
 
   39            (
bool) ($this->data[
'client_enabled'] ?? 
false),
 
   40            (
string) ($this->data[
'client_polyfill_url'] ?? 
''),
 
   41            (
string) ($this->data[
'client_script_url'] ?? 
''),
 
   42            (
int) ($this->data[
'client_limiter'] ?? 0),
 
   43            (
bool) ($this->data[
'server_enabled'] ?? 
false),
 
   44            (
string) ($this->data[
'server_address'] ?? 
''),
 
   45            (
int) ($this->data[
'server_timeout'] ?? 0),
 
   46            (
bool) ($this->data[
'server_for_browser'] ?? 
false),
 
   47            (
bool) ($this->data[
'server_for_export'] ?? 
false),
 
   48            (
bool) ($this->data[
'server_for_pdf'] ?? 
false)
 
   87        return isset($this->data[
'client_enabled']) && $this->config->isClientEnabled() !== 
$config->
isClientEnabled()
 
   96            || isset($this->data[
'server_for_pdf']) && $this->config->isServerForPdf() !== 
$config->
isServerForPdf();
 
  105        if (isset($this->data[
'client_enabled'])) {
 
  108        if (isset($this->data[
'client_polyfill_url'])) {
 
  111        if (isset($this->data[
'client_script_url'])) {
 
  114        if (isset($this->data[
'client_limiter'])) {
 
  117        if (isset($this->data[
'server_enabled'])) {
 
  120        if (isset($this->data[
'server_address'])) {
 
  123        if (isset($this->data[
'server_timeout'])) {
 
  126        if (isset($this->data[
'server_for_browser'])) {
 
  129        if (isset($this->data[
'server_for_export'])) {
 
  132        if (isset($this->data[
'server_for_pdf'])) {
 
Global Mathjax configuration.
 
withServerEnabled(bool $server_enabled)
Enable a server side rendering engine configured and enabled.
 
withClientScriptUrl(string $client_async_url)
Set the url of Mathjax script to be embedded on the page (for MathJax 3)
 
getClientLimiter()
Type of enclosing limiters for wich the embedded client-side Mathjax is configured.
 
withClientLimiter(int $client_limiter)
Set the type of enclosing limiters for wich the embedded client-side Mathjax is configured.
 
getServerTimeout()
timeout (s) to wait for the result of the rendering server
 
isServerForBrowser()
Should the server-side rendingeing be used for browser output.
 
withClientPolyfillUrl(string $client_js_url)
Set the url of a polyfill script neededby MathJax 3.
 
withServerAddress(string $server_address)
Set the url of the Mathjax server.
 
isServerForPdf()
Should the server-side rendingeing be used for PDF generation.
 
getServerAddress()
Url of Mathjax server.
 
withClientEnabled(bool $client_enabled)
Enable latex code bing rendered in the browser.
 
withServerTimeout(int $server_timeout)
Set the timeout (s) to wait for the result of the rendering server.
 
isServerEnabled()
Is a server side rendering engine configured and enabled.
 
withServerForPdf(bool $server_for_pdf)
Enable the server-side rendingeing for PDF generation.
 
isServerForExport()
Should the server-side rendingeing be used for HTML exports.
 
getClientScriptUrl()
Url of Mathjax script to be embedded with script tag on the page.
 
getClintPolyfillUrl()
Url of a javascript polyfill (needed by MathJax 3)
 
withServerForBrowser(bool $server_for_browser)
Enable the server-side rendingeing for browser output.
 
isClientEnabled()
Should latex code be rendered in the browser.
 
withServerForExport(bool $server_for_export)
Enable the server-side rendingeing for HTML exports.
 
isApplicableTo(ilMathJaxConfig $config)
Check if the setup config can be applied to an existing stored config Only the values that are actual...
 
getDataFromConfig(ilMathJaxConfig $config)
Get a data array from a config.
 
getConfig()
Get the MathJaxConfig object which is created from the data in config.json.
 
applyTo(ilMathJaxConfig $config)
Apply the setup config to an existing stored config Only the values that are actually defined in the ...
 
__construct(array $data)
Create the config fron a data array.
 
A configuration for the setup.
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...