Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4096882
MMLmfrac.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
MMLmfrac.php
View Options
<?php
namespace
MediaWiki\Extension\Math\WikiTexVC\MMLnodes
;
/**
* Presentation MathML 3 Element
* name: "mfrac"
* description: "form a fraction from two sub-expressions"
* category: "General Layout Schemata"
*/
class
MMLmfrac
extends
MMLbase
{
public
function
__construct
(
string
$texclass
=
""
,
array
$attributes
=
[]
)
{
parent
::
__construct
(
'mfrac'
,
$texclass
,
$attributes
);
}
/**
* Creates a new subtree element with base and scripts
* @param MMLbase $numerator Top portion of the fraction
* @param MMLbase $denominator Bottom portion of the fraction
* @param string $texclass Optional TeX class for styling
* @param array $attributes Additional HTML attributes for the element
* @return static New instance with children ordered as:
* [base, postsubscript, postsuperscript, presubscript, presuperscript]
*/
public
static
function
newSubtree
(
MMLbase
$numerator
,
MMLbase
$denominator
,
string
$texclass
=
""
,
array
$attributes
=
[]
)
{
$instance
=
new
self
(
$texclass
,
$attributes
);
$instance
->
children
=
[
$numerator
,
$denominator
];
return
$instance
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Aug 18, 14:32 (3 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
62/8b/0430144af0f5aeb9bf5a44053600
Default Alt Text
MMLmfrac.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment