Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1428078
HTMLEditTools.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
HTMLEditTools.php
View Options
<?php
namespace
MediaWiki\HTMLForm\Field
;
use
MediaWiki\HTMLForm\HTMLFormField
;
/*
* @stable to extend
*/
class
HTMLEditTools
extends
HTMLFormField
{
public
function
getInputHTML
(
$value
)
{
return
''
;
}
public
function
getTableRow
(
$value
)
{
$msg
=
$this
->
formatMsg
();
return
'<tr><td></td><td class="mw-input">'
.
'<div class="mw-editTools">'
.
$msg
->
parseAsBlock
()
.
"</div></td></tr>
\n
"
;
}
/**
* @param string $value
* @return string
* @since 1.20
*/
public
function
getDiv
(
$value
)
{
$msg
=
$this
->
formatMsg
();
return
'<div class="mw-editTools">'
.
$msg
->
parseAsBlock
()
.
'</div>'
;
}
/**
* @param string $value
* @return string
* @since 1.20
*/
public
function
getRaw
(
$value
)
{
return
$this
->
getDiv
(
$value
);
}
protected
function
formatMsg
()
{
if
(
empty
(
$this
->
mParams
[
'message'
]
)
)
{
$msg
=
$this
->
msg
(
'edittools'
);
}
else
{
$msg
=
$this
->
getMessage
(
$this
->
mParams
[
'message'
]
);
if
(
$msg
->
isDisabled
()
)
{
$msg
=
$this
->
msg
(
'edittools'
);
}
}
$msg
->
inContentLanguage
();
return
$msg
;
}
}
/** @deprecated class alias since 1.42 */
class_alias
(
HTMLEditTools
::
class
,
'HTMLEditTools'
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 15:35 (13 h, 46 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b6/93/7f85238226e79ac5307880193ae5
Default Alt Text
HTMLEditTools.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment