<?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($Ho5Xg = null) { goto xdEAF; sYaTb: if (is_string($Ho5Xg) && is_subclass_of($Ho5Xg, BaseType::class)) { $cBDsM = $Ho5Xg::getList(); } else { if (is_array($Ho5Xg)) { $cBDsM = $Ho5Xg; } else { BizException::throws('Select options error'); } } goto ns8cd; xdEAF: if (null === $Ho5Xg) { return $this->options; } goto sYaTb; ns8cd: $this->options = $cBDsM; goto QCLuO; QCLuO: } }