<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter\Field; use ModStart\Core\Exception\BizException; use ModStart\Core\Type\BaseType; class Checkbox extends AbstractFilterField { protected $options = array(); protected function setup() { $this->addFluentAttributeVariable('options'); } public function options($Tpa5t = null) { goto FxB0i; FSIOf: $this->options = $mdHu1; goto aZAqM; hRV4K: 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 FSIOf; FxB0i: if (null === $Tpa5t) { return $this->options; } goto hRV4K; aZAqM: } }