ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
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 | |
filedir () | |
Get the relative directory path of the image. More... | |
filepath () | |
Get the relative file path of the image. More... | |
Protected Attributes | |
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 30 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 66 of file class.ilMathJaxImage.php.
References $DIC.
ilMathJaxImage::absolutePath | ( | ) |
Get the absolute path of the image.
Definition at line 110 of file class.ilMathJaxImage.php.
References CLIENT_WEB_DIR, and filepath().
ilMathJaxImage::clearCache | ( | ) |
Delete all files from the cache.
Definition at line 181 of file class.ilMathJaxImage.php.
ilMathJaxImage::exists | ( | ) |
Check if an image is cached.
Definition at line 118 of file class.ilMathJaxImage.php.
References filepath().
|
protected |
Get the relative directory path of the image.
Definition at line 90 of file class.ilMathJaxImage.php.
Referenced by filepath(), and write().
|
protected |
Get the relative file path of the image.
Definition at line 101 of file class.ilMathJaxImage.php.
References $suffix, and filedir().
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 158 of file class.ilMathJaxImage.php.
ilMathJaxImage::read | ( | ) |
Read the content of a cached image.
Definition at line 126 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 135 of file class.ilMathJaxImage.php.
References filedir(), and filepath().
|
protected |
Definition at line 44 of file class.ilMathJaxImage.php.
|
protected |
Definition at line 39 of file class.ilMathJaxImage.php.
|
protected |
Definition at line 59 of file class.ilMathJaxImage.php.
|
protected |
Definition at line 54 of file class.ilMathJaxImage.php.
Referenced by filepath().
|
protected |
Definition at line 49 of file class.ilMathJaxImage.php.
|
private |
Definition at line 32 of file class.ilMathJaxImage.php.
|
private |
Definition at line 33 of file class.ilMathJaxImage.php.