ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilMathJaxConfigStoredObjective Class Reference
+ Inheritance diagram for ilMathJaxConfigStoredObjective:
+ Collaboration diagram for ilMathJaxConfigStoredObjective:

Public Member Functions

 __construct (\ilMathJaxSetupConfig $config)
 
 getHash ()
 
 getLabel ()
 
 isNotable ()
 
 getPreconditions (Setup\Environment $environment)
 
 achieve (Setup\Environment $environment)
 

Protected Attributes

 $config
 

Detailed Description

Definition at line 7 of file class.ilMathJaxConfigStoredObjective.php.

Constructor & Destructor Documentation

◆ __construct()

ilMathJaxConfigStoredObjective::__construct ( \ilMathJaxSetupConfig  $config)

Definition at line 14 of file class.ilMathJaxConfigStoredObjective.php.

References $config.

Member Function Documentation

◆ achieve()

ilMathJaxConfigStoredObjective::achieve ( Setup\Environment  $environment)

Definition at line 43 of file class.ilMathJaxConfigStoredObjective.php.

43 : Setup\Environment
44 {
45 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
46
47 $ini->setVariable("tools", "latex", $this->config->getPathToLatexCGI());
48
49 if (!$ini->write()) {
50 throw new Setup\UnachievableException("Could not write ilias.ini.php");
51 }
52
53 return $environment;
54 }
$ini
Definition: raiseError.php:4

References $ini.

◆ getHash()

ilMathJaxConfigStoredObjective::getHash ( )

Definition at line 20 of file class.ilMathJaxConfigStoredObjective.php.

20 : string
21 {
22 return hash("sha256", self::class);
23 }

◆ getLabel()

ilMathJaxConfigStoredObjective::getLabel ( )

Definition at line 25 of file class.ilMathJaxConfigStoredObjective.php.

25 : string
26 {
27 return "Store configuration of Services/MathJax";
28 }

◆ getPreconditions()

ilMathJaxConfigStoredObjective::getPreconditions ( Setup\Environment  $environment)

Definition at line 35 of file class.ilMathJaxConfigStoredObjective.php.

35 : array
36 {
37 $common_config = $environment->getConfigFor("common");
38 return [
39 new ilIniFilesPopulatedObjective($common_config)
40 ];
41 }

◆ isNotable()

ilMathJaxConfigStoredObjective::isNotable ( )

Definition at line 30 of file class.ilMathJaxConfigStoredObjective.php.

30 : bool
31 {
32 return false;
33 }

Field Documentation

◆ $config

ilMathJaxConfigStoredObjective::$config
protected

Definition at line 12 of file class.ilMathJaxConfigStoredObjective.php.

Referenced by __construct().


The documentation for this class was generated from the following file: