Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4130495
MMLmmultiscripts.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
MMLmmultiscripts.php
View Options
<?php
namespace
MediaWiki\Extension\Math\WikiTexVC\MMLnodes
;
/**
* Presentation MathML 3 Element
* name: "mmultiscripts"
* description: "?"
* category: "?"
*/
class
MMLmmultiscripts
extends
MMLbase
{
public
function
__construct
(
string
$texclass
=
""
,
array
$attributes
=
[]
)
{
parent
::
__construct
(
"mmultiscripts"
,
$texclass
,
$attributes
);
}
/**
* @param MMLbase $base Main element being annotated
* @param MMLbase|null $postsubscript Subscript placed after the base
* @param MMLbase|null $postsuperscript Superscript placed after the base
* @param MMLbase|null $presubscript Subscript placed before the base
* @param MMLbase|null $presuperscript Superscript placed before the base
* @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
$base
,
?
MMLbase
$postsubscript
=
null
,
?
MMLbase
$postsuperscript
=
null
,
?
MMLbase
$presubscript
=
null
,
?
MMLbase
$presuperscript
=
null
,
string
$texclass
=
""
,
array
$attributes
=
[]
)
{
$instance
=
new
self
(
$texclass
,
$attributes
);
$children
=
[
$base
];
// Handle postscripts (must come in pairs)
$children
[]
=
$postsubscript
;
$children
[]
=
$postsuperscript
;
// Handle prescripts (requires mprescripts marker)
$hasPre
=
$presubscript
||
$presuperscript
;
if
(
$hasPre
)
{
$children
[]
=
new
MMLmprescripts
();
$children
[]
=
$presubscript
;
$children
[]
=
$presuperscript
;
}
$instance
->
children
=
$children
;
return
$instance
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 10:25 (2 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
31/d3/19834a78c61889e75387625e2d8c
Default Alt Text
MMLmmultiscripts.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment