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
Sat, May 16, 19:18 (5 h, 43 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cb/01/b24058adfd3c4dd2d2195c613736
Default Alt Text
GroupWidget.php (597 B)

Event Timeline