Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/tests/include/web/elements/CSegmentedRadioElement.php')
-rw-r--r--frontends/php/tests/include/web/elements/CSegmentedRadioElement.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/frontends/php/tests/include/web/elements/CSegmentedRadioElement.php b/frontends/php/tests/include/web/elements/CSegmentedRadioElement.php
index 585c8e2f7c0..876080c4051 100644
--- a/frontends/php/tests/include/web/elements/CSegmentedRadioElement.php
+++ b/frontends/php/tests/include/web/elements/CSegmentedRadioElement.php
@@ -59,6 +59,13 @@ class CSegmentedRadioElement extends CElement {
}
/**
+ * @inheritdoc
+ */
+ public function isEnabled($enabled = true) {
+ return (($this->getLabels()->filter(CElementQuery::ATTRIBUTES_NOT_PRESENT, ['disabled'])->count() > 0) === $enabled);
+ }
+
+ /**
* Alias for select.
* @see self::select
*