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