ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilMathJaxFactory Class Reference

Factory for objects used by ilMathJax. More...

+ Collaboration diagram for ilMathJaxFactory:

Public Member Functions

 __construct ()
 Constructor. More...
 
 server (ilMathJaxConfig $config)
 Create an ilMathJaxServer object. More...
 
 image (string $a_tex, string $a_type, int $a_dpi)
 Create an ilMathJaxImage object. More...
 
 template ()
 Get the global template. More...
 

Protected Attributes

ilGlobalTemplateInterface $template
 

Detailed Description

Factory for objects used by ilMathJax.

Definition at line 24 of file class.ilMathJaxFactory.php.

Constructor & Destructor Documentation

◆ __construct()

ilMathJaxFactory::__construct ( )

Constructor.

Definition at line 31 of file class.ilMathJaxFactory.php.

References $DIC.

32  {
33  global $DIC;
34  $this->template = $DIC->ui()->mainTemplate();
35  }
global $DIC
Definition: feed.php:28

Member Function Documentation

◆ image()

ilMathJaxFactory::image ( string  $a_tex,
string  $a_type,
int  $a_dpi 
)

Create an ilMathJaxImage object.

Definition at line 48 of file class.ilMathJaxFactory.php.

49  {
50  return new ilMathJaxImage($a_tex, $a_type, $a_dpi);
51  }
Rendered MathJax image Supports image types SVG or PNG Files are stored in the web file system of ili...

◆ server()

ilMathJaxFactory::server ( ilMathJaxConfig  $config)

Create an ilMathJaxServer object.

Definition at line 40 of file class.ilMathJaxFactory.php.

41  {
42  return new ilMathJaxServer($config);
43  }
Class for calling theMathJax server The server calls use cURL, if the extension is loaded...

◆ template()

ilMathJaxFactory::template ( )

Get the global template.

Definition at line 56 of file class.ilMathJaxFactory.php.

References $template.

57  {
58  return $this->template;
59  }
ilGlobalTemplateInterface $template

Field Documentation

◆ $template

ilGlobalTemplateInterface ilMathJaxFactory::$template
protected

Definition at line 26 of file class.ilMathJaxFactory.php.

Referenced by template().


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