Public Member Functions | |
__construct ($tex, $params=array()) | |
setOutputMode ($mode) | |
render () | |
_error ($msg, $append= '') | |
_recall () | |
_doRender () | |
Select among PNG, HTML, or MathML output depending on. | |
_attribs ($tag, $defaults=array(), $overrides=array()) | |
_linkToMathImage () | |
_mathImageUrl () | |
_getHashPath () | |
_getHashSubPath () | |
Static Public Member Functions | |
static | renderMath ($tex, $params=array()) |
Public Attributes | |
$mode = MW_MATH_MODERN | |
$tex = '' | |
$inputhash = '' | |
$hash = '' | |
$html = '' | |
$mathml = '' | |
$conservativeness = 0 |
An appropriate rendering form is picked and returned.
Definition at line 16 of file Math.php.
MathRenderer::__construct | ( | $ | tex, | |
$ | params = array() | |||
) |
MathRenderer::_attribs | ( | $ | tag, | |
$ | defaults = array() , |
|||
$ | overrides = array() | |||
) |
Definition at line 280 of file Math.php.
References $defaults, Sanitizer::mergeAttributes(), and Sanitizer::validateTagAttributes().
Referenced by _doRender(), and _linkToMathImage().
MathRenderer::_doRender | ( | ) |
Select among PNG, HTML, or MathML output depending on.
Definition at line 261 of file Math.php.
References _attribs(), _linkToMathImage(), and Xml::tags().
Referenced by render().
MathRenderer::_error | ( | $ | msg, | |
$ | append = '' | |||
) |
MathRenderer::_getHashPath | ( | ) |
Definition at line 306 of file Math.php.
References $path, $wgMathDirectory, _getHashSubPath(), and wfDebug().
MathRenderer::_getHashSubPath | ( | ) |
MathRenderer::_linkToMathImage | ( | ) |
Definition at line 287 of file Math.php.
References $url, _attribs(), _mathImageUrl(), and Xml::element().
Referenced by _doRender().
MathRenderer::_mathImageUrl | ( | ) |
Definition at line 300 of file Math.php.
References $wgMathPath, and _getHashSubPath().
Referenced by _linkToMathImage(), and render().
MathRenderer::_recall | ( | ) |
Definition at line 202 of file Math.php.
References $dbr, $filename, $fname, $wgMathDirectory, _getHashPath(), wfGetDB(), and wfMkdirParents().
Referenced by render().
MathRenderer::render | ( | ) |
Definition at line 34 of file Math.php.
References $cmd, $dbw, $fname, $i, $u, $urls, $wgInputEncoding, $wgTexvc, $wgTmpDirectory, $wgUseSquid, _doRender(), _error(), _getHashPath(), _mathImageUrl(), _recall(), wfDebug(), wfEscapeShellArg(), wfGetDB(), wfIsWindows(), wfMkdirParents(), wfReadOnly(), and wfRunHooks().
static MathRenderer::renderMath | ( | $ | tex, | |
$ | params = array() | |||
) | [static] |
MathRenderer::$mode = MW_MATH_MODERN |
MathRenderer::$tex = '' |