ILIAS
release_8 Revision v8.19
|
Rendered MathJax image Supports image types SVG or PNG Files are stored in the web file system of ilias. More...
Public Member Functions | |
__construct (string $a_tex, string $a_type, int $a_dpi) | |
absolutePath () | |
Get the absolute path of the image. More... | |
exists () | |
Check if an image is cached. More... | |
read () | |
Read the content of a cached image. More... | |
write (string $a_content) | |
Save the content of a cached image. More... | |
getCacheSize () | |
Get the total size of the cache with an appropriate unit for display. More... | |
clearCache () | |
Delete all files from the cache. More... | |
Protected Member Functions | |
filepath () | |
Create the relative file path of the image. More... | |
Protected Attributes | |
ILIAS Filesystem Filesystem | $fs |
string | $basepath = '/temp/tex' |
string | $tex |
string | $suffix |
string | $salt |
Private Attributes | |
const | TYPE_PNG = 'png' |
const | TYPE_SVG = 'svg' |
Rendered MathJax image Supports image types SVG or PNG Files are stored in the web file system of ilias.
Definition at line 28 of file class.ilMathJaxImage.php.
ilMathJaxImage::__construct | ( | string | $a_tex, |
string | $a_type, | ||
int | $a_dpi | ||
) |
string | $a_tex | latex code |
string | $a_type | image type ('png' or 'svg') |
int | $a_dpi | dpi of rendered image |
Definition at line 64 of file class.ilMathJaxImage.php.
References $DIC.
ilMathJaxImage::absolutePath | ( | ) |
Get the absolute path of the image.
Definition at line 100 of file class.ilMathJaxImage.php.
References CLIENT_WEB_DIR, and filepath().
ilMathJaxImage::clearCache | ( | ) |
Delete all files from the cache.
Definition at line 156 of file class.ilMathJaxImage.php.
ilMathJaxImage::exists | ( | ) |
Check if an image is cached.
Definition at line 108 of file class.ilMathJaxImage.php.
References filepath().
|
protected |
Create the relative file path of the image.
Definition at line 88 of file class.ilMathJaxImage.php.
References $suffix.
Referenced by absolutePath(), exists(), read(), and write().
ilMathJaxImage::getCacheSize | ( | ) |
Get the total size of the cache with an appropriate unit for display.
Definition at line 133 of file class.ilMathJaxImage.php.
References $type.
ilMathJaxImage::read | ( | ) |
Read the content of a cached image.
Definition at line 116 of file class.ilMathJaxImage.php.
References filepath().
ilMathJaxImage::write | ( | string | $a_content | ) |
Save the content of a cached image.
string | $a_content | image content |
Definition at line 125 of file class.ilMathJaxImage.php.
References filepath().
|
protected |
Definition at line 42 of file class.ilMathJaxImage.php.
|
protected |
Definition at line 37 of file class.ilMathJaxImage.php.
|
protected |
Definition at line 57 of file class.ilMathJaxImage.php.
|
protected |
Definition at line 52 of file class.ilMathJaxImage.php.
Referenced by filepath().
|
protected |
Definition at line 47 of file class.ilMathJaxImage.php.
|
private |
Definition at line 30 of file class.ilMathJaxImage.php.
|
private |
Definition at line 31 of file class.ilMathJaxImage.php.