<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter\Field; use ModStart\Core\Exception\BizException; use ModStart\Core\Type\BaseType; class Radio extends AbstractFilterField { protected $options = array(); protected function setup() { $this->addFluentAttributeVariable('options'); } public function options($nO0o6 = null) { goto wjs3i; IvAKK: $this->options = $Gttsd; goto aYsri; DyzqC: if (is_string($nO0o6) && is_subclass_of($nO0o6, BaseType::class)) { $Gttsd = $nO0o6::getList(); } else { if (is_array($nO0o6)) { $Gttsd = $nO0o6; } else { BizException::throws('Select options error'); } } goto IvAKK; wjs3i: if (null === $nO0o6) { return $this->options; } goto DyzqC; aYsri: } }