<?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($RKwZR = null) { goto FsfbY; W1gwa: $this->options = $Mczr_; goto gz4fL; FsfbY: if (null === $RKwZR) { return $this->options; } goto k7lvJ; k7lvJ: if (is_string($RKwZR) && is_subclass_of($RKwZR, BaseType::class)) { $Mczr_ = $RKwZR::getList(); } else { if (is_array($RKwZR)) { $Mczr_ = $RKwZR; } else { BizException::throws('Select options error'); } } goto W1gwa; gz4fL: } }