Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1431616
HiddenInputWidget.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
960 B
Referenced Files
None
Subscribers
None
HiddenInputWidget.php
View Options
<?php
namespace
OOUI
;
/**
* Data widget intended for creating 'hidden'-type inputs.
*/
class
HiddenInputWidget
extends
Widget
{
/**
* @var string
*/
public
static
$tagName
=
'input'
;
/**
* DataWidget constructor.
*
* @param array $config Configuration options
* - string $config['value'] The data the input contains. (default: '')
* - string $config['name'] The name of the hidden input. (default: '')
*/
public
function
__construct
(
array
$config
)
{
// Parent constructor
parent
::
__construct
(
$config
);
// Initialization
$this
->
setAttributes
(
[
'type'
=>
'hidden'
,
'value'
=>
$config
[
'value'
]
??
''
,
'name'
=>
$config
[
'name'
]
??
''
,
]
);
$this
->
removeAttributes
(
[
'aria-disabled'
]
);
}
/** @inheritDoc */
public
function
getConfig
(
&
$config
)
{
$config
[
'value'
]
=
$this
->
getAttribute
(
'value'
);
$config
[
'name'
]
=
$this
->
getAttribute
(
'name'
);
return
parent
::
getConfig
(
$config
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 20:52 (1 d, 5 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c0/0e/fee47e8921d33ef2351164f9d060
Default Alt Text
HiddenInputWidget.php (960 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment