<?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($ZNmAK = null) { goto wkJtw; nFCMF: $this->options = $wvO30; goto lzPUB; N0xXf: if (is_string($ZNmAK) && is_subclass_of($ZNmAK, BaseType::class)) { $wvO30 = $ZNmAK::getList(); } else { if (is_array($ZNmAK)) { $wvO30 = $ZNmAK; } else { BizException::throws('Select options error'); } } goto nFCMF; wkJtw: if (null === $ZNmAK) { return $this->options; } goto N0xXf; lzPUB: } }