<?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($ZNmAK = null) { goto y2KS9; y2KS9: if (null === $ZNmAK) { return $this->options; } goto b4I1X; H0xTK: $this->options = $wvO30; goto dpIGu; b4I1X: if (is_string($ZNmAK) && is_subclass_of($ZNmAK, BaseType::class)) { $wvO30 = $ZNmAK::getList(); } else { if (is_array($ZNmAK)) { $wvO30 = $ZNmAK; } else { BizException::throws('Select options error'); } } goto H0xTK; dpIGu: } }