<?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($C87JF = null) { goto WD24y; WD24y: if (null === $C87JF) { return $this->options; } goto lvupn; lmS2N: $this->options = $gwXrh; goto VPALc; lvupn: if (is_string($C87JF) && is_subclass_of($C87JF, BaseType::class)) { $gwXrh = $C87JF::getList(); } else { if (is_array($C87JF)) { $gwXrh = $C87JF; } else { BizException::throws('Select options error'); } } goto lmS2N; VPALc: } }