MathRenderer Class Reference
[Parser]

Takes LaTeX fragments, sends them to a helper program (texvc) for rendering to rasterized PNG and HTML and MathML approximations. More...

List of all members.

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


Detailed Description

Takes LaTeX fragments, sends them to a helper program (texvc) for rendering to rasterized PNG and HTML and MathML approximations.

An appropriate rendering form is picked and returned.

Author:
Tomasz Wegrzanowski, with additions by Brion Vibber (2003, 2004)

Definition at line 16 of file Math.php.


Constructor & Destructor Documentation

MathRenderer::__construct ( tex,
params = array() 
)

Definition at line 25 of file Math.php.

References $tex.


Member Function Documentation

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 = '' 
)

Definition at line 195 of file Math.php.

References $msg, $source, and wfMsg().

Referenced by render().

MathRenderer::_getHashPath (  ) 

Definition at line 306 of file Math.php.

References $path, $wgMathDirectory, _getHashSubPath(), and wfDebug().

Referenced by _recall(), and render().

MathRenderer::_getHashSubPath (  ) 

Definition at line 313 of file Math.php.

Referenced by _getHashPath(), and _mathImageUrl().

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 (  ) 

static MathRenderer::renderMath ( tex,
params = array() 
) [static]

Definition at line 319 of file Math.php.

References $tex, and $wgUser.

Referenced by Parser::extensionSubstitution().

MathRenderer::setOutputMode ( mode  ) 

Definition at line 30 of file Math.php.

References $mode.


Member Data Documentation

MathRenderer::$conservativeness = 0

Definition at line 23 of file Math.php.

MathRenderer::$hash = ''

Definition at line 20 of file Math.php.

MathRenderer::$html = ''

Definition at line 21 of file Math.php.

MathRenderer::$inputhash = ''

Definition at line 19 of file Math.php.

MathRenderer::$mathml = ''

Definition at line 22 of file Math.php.

MathRenderer::$mode = MW_MATH_MODERN

Definition at line 17 of file Math.php.

Referenced by setOutputMode().

MathRenderer::$tex = ''

Definition at line 18 of file Math.php.

Referenced by __construct(), and renderMath().


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

Generated on Sat Sep 5 02:08:42 2009 for MediaWiki by  doxygen 1.5.9