<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter\Field; use ModStart\Core\Exception\BizException; use ModStart\Core\Type\BaseType; class Select extends AbstractFilterField { protected $options = array(); protected $selectSearch = false; protected $selectRemote = null; protected $optionContainsAll = true; protected function setup() { goto SwG0F; F5B1y: $this->addFluentAttributeVariable('selectRemote'); goto EBIUa; ncJ4m: $this->addFluentAttributeVariable('selectSearch'); goto F5B1y; SwG0F: $this->addFluentAttributeVariable('options'); goto ncJ4m; EBIUa: $this->addFluentAttributeVariable('optionContainsAll'); goto sgnkc; sgnkc: } public function options($ZNmAK = null) { goto Gj1F5; JshnV: 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 RsafU; RsafU: $this->options = $wvO30; goto cRpPk; Gj1F5: if (null === $ZNmAK) { return $this->options; } goto JshnV; cRpPk: return $this; goto DljNt; DljNt: } public function selectSearch($wvO30 = null) { goto yUsBW; JSQJx: return $this; goto pL7vn; yUsBW: if (null === $wvO30) { return $this->selectSearch; } goto AaE33; AaE33: $this->selectSearch = $wvO30; goto JSQJx; pL7vn: } public function selectRemote($wvO30 = null) { goto X5lER; X5lER: if (null === $wvO30) { return $this->selectRemote; } goto gluoX; O7_2z: return $this; goto RTHWT; gluoX: $this->selectRemote = $wvO30; goto O7_2z; RTHWT: } public function optionContainsAll($wvO30 = false) { goto ChM2K; lAdBn: $this->optionContainsAll = $wvO30; goto fJ8SI; fJ8SI: return $this; goto aJLbH; ChM2K: if (null === $wvO30) { return $this->optionContainsAll; } goto lAdBn; aJLbH: } }