19 declare(strict_types=1);
    34         return hash(
"sha256", self::class);
    39         return "Check configuration of Services/MathJax";
    50             new \ilSettingsFactoryExistsObjective()
    57         $factory = $environment->getResource(
Setup\Environment::RESOURCE_SETTINGS_FACTORY);
    58         $interaction = $environment->getResource(
Setup\Environment::RESOURCE_ADMIN_INTERACTION);
    76         $recommended = 
'https://YOUR_ILIAS_URL/assets/js/cdn-mathjax2-tex-mml-chtml-safe.js';
    79             $interaction->inform(
"ILIAS 10 cuts query params of javascript URLs that are added to the page."    80                 . 
" Please replace your MathJax URL with $recommended or a similar script that sets the save mode of MathJax!");
    82             if ($this->setup_config !== null && str_contains($this->setup_config->getConfig()->getClientScriptUrl(), 
'?')) {
    83                 $interaction->inform(
"Change the URL in the setup.json to avoid this message in the next update.");
 isApplicable(Setup\Environment $environment)
 
Global Mathjax configuration. 
 
ilMathJaxSetupConfig $setup_config
 
__construct(?\ilMathJaxSetupConfig $setup_config=null)
 
getClientScriptUrl()
Url of Mathjax script to be embedded with script tag on the page. 
 
getPreconditions(Setup\Environment $environment)
 
checkClientScriptUrl(ilMathJaxConfig $config, Setup\AdminInteraction $interaction)
Check if an outdated script URL is used. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
An environment holds resources to be used in the setup process. 
 
Repository for storing and loading the MathJax configuration.