Page MenuHomeWickedGov Phorge

GroupWidget.php
No OneTemporary

Size
597 B
Referenced Files
None
Subscribers
None

GroupWidget.php

<?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

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)

Event Timeline