<?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($atZJ8 = null) { goto IJF8r; IJF8r: if (null === $atZJ8) { return $this->options; } goto jXs17; JUVSH: $this->options = $ib3B9; goto N68oL; jXs17: if (is_string($atZJ8) && is_subclass_of($atZJ8, BaseType::class)) { $ib3B9 = $atZJ8::getList(); } else { if (is_array($atZJ8)) { $ib3B9 = $atZJ8; } else { BizException::throws('Select options error'); } } goto JUVSH; N68oL: } }