<?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($C87JF = null) { goto gYNLF; EyBV4: $this->options = $gwXrh; goto M_sBD; gYNLF: if (null === $C87JF) { return $this->options; } goto uSrFb; uSrFb: 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 EyBV4; M_sBD: } }