<?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($Tpa5t = null) { goto dLvIo; WTQhj: if (is_string($Tpa5t) && is_subclass_of($Tpa5t, BaseType::class)) { $mdHu1 = $Tpa5t::getList(); } else { if (is_array($Tpa5t)) { $mdHu1 = $Tpa5t; } else { BizException::throws('Select options error'); } } goto yhlW3; yhlW3: $this->options = $mdHu1; goto lRpJD; dLvIo: if (null === $Tpa5t) { return $this->options; } goto WTQhj; lRpJD: } }