Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1430593
GroupWidget.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
597 B
Referenced Files
None
Subscribers
None
GroupWidget.php
View Options
<?php
namespace
OOUI
;
/**
* Use together with ItemWidget to make disabled state inheritable.
*
* @abstract
*
* @method Widget[] getItems()
*/
trait
GroupWidget
{
use
GroupElement
;
/**
* @param bool $disabled
*/
public
function
setDisabled
(
$disabled
)
{
// @phan-suppress-next-line PhanTraitParentReference
parent
::
setDisabled
(
$disabled
);
$modifiedItems
=
[];
$items
=
$this
->
getItems
();
/** @var Widget $item */
foreach
(
$items
as
$item
)
{
$modifiedItems
[]
=
$item
->
setDisabled
(
$disabled
);
}
$this
->
clearItems
();
$this
->
addItems
(
$modifiedItems
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 19:18 (6 h, 1 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cb/01/b24058adfd3c4dd2d2195c613736
Default Alt Text
GroupWidget.php (597 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment