<?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 Aw0El; ayI_n: $this->addFluentAttributeVariable('optionContainsAll'); goto FK09r; Aw0El: $this->addFluentAttributeVariable('options'); goto MKhxV; zLH18: $this->addFluentAttributeVariable('selectRemote'); goto ayI_n; MKhxV: $this->addFluentAttributeVariable('selectSearch'); goto zLH18; FK09r: } public function options($atZJ8 = null) { goto F6fGi; F6fGi: if (null === $atZJ8) { return $this->options; } goto jbxNo; jbxNo: 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 jdoI2; jdoI2: $this->options = $ib3B9; goto eU22h; eU22h: return $this; goto NRqdH; NRqdH: } public function selectSearch($ib3B9 = null) { goto H7LNx; H7LNx: if (null === $ib3B9) { return $this->selectSearch; } goto Y0jA2; irR9w: return $this; goto WaHCj; Y0jA2: $this->selectSearch = $ib3B9; goto irR9w; WaHCj: } public function selectRemote($ib3B9 = null) { goto IrNxM; IrNxM: if (null === $ib3B9) { return $this->selectRemote; } goto IiDmk; Fwdu4: return $this; goto fEF0r; IiDmk: $this->selectRemote = $ib3B9; goto Fwdu4; fEF0r: } public function optionContainsAll($ib3B9 = false) { goto Jb5Ts; Jb5Ts: if (null === $ib3B9) { return $this->optionContainsAll; } goto bKC2P; bKC2P: $this->optionContainsAll = $ib3B9; goto gxZZK; gxZZK: return $this; goto ySBTa; ySBTa: } }