Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6069655
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
Oct 5 2026, 06:08 (6 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b6/ff/d7fde8509ec145ef76bd2d29d225
Default Alt Text
GroupWidget.php (597 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment