<?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($X3Hkn = null) { goto HQT2l; TdaKt: if (is_string($X3Hkn) && is_subclass_of($X3Hkn, BaseType::class)) { $FT9zA = $X3Hkn::getList(); } else { if (is_array($X3Hkn)) { $FT9zA = $X3Hkn; } else { BizException::throws('Select options error'); } } goto r8n5E; r8n5E: $this->options = $FT9zA; goto s8viy; HQT2l: if (null === $X3Hkn) { return $this->options; } goto TdaKt; s8viy: } }