<?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 oEZQR; QZhrH: $this->addFluentAttributeVariable('selectRemote'); goto tSsVY; tSsVY: $this->addFluentAttributeVariable('optionContainsAll'); goto ijuaP; oEZQR: $this->addFluentAttributeVariable('options'); goto ckCv6; ckCv6: $this->addFluentAttributeVariable('selectSearch'); goto QZhrH; ijuaP: } public function options($Tpa5t = null) { goto DuLu8; anEvu: $this->options = $mdHu1; goto MWQwm; SPNBj: if (is_string($Tpa5t) && is_subclass_of($Tpa5t, BaseType::class)) { $mdHu1 = $Tpa5t::getList(); } else { if (is_array($Tpa5t)) { $mdHu1 = $Tpa5t; } else { BizException::throws('Select options error'); } } goto anEvu; DuLu8: if (null === $Tpa5t) { return $this->options; } goto SPNBj; MWQwm: return $this; goto FISmT; FISmT: } public function selectSearch($mdHu1 = null) { goto WJqz3; avm5n: return $this; goto tMMq3; WJqz3: if (null === $mdHu1) { return $this->selectSearch; } goto ddgqM; ddgqM: $this->selectSearch = $mdHu1; goto avm5n; tMMq3: } public function selectRemote($mdHu1 = null) { goto nKLBf; nKLBf: if (null === $mdHu1) { return $this->selectRemote; } goto dobfw; CDkJ5: return $this; goto jvF_A; dobfw: $this->selectRemote = $mdHu1; goto CDkJ5; jvF_A: } public function optionContainsAll($mdHu1 = false) { goto LfxaE; LfxaE: if (null === $mdHu1) { return $this->optionContainsAll; } goto zyars; hSvq0: return $this; goto kLejz; zyars: $this->optionContainsAll = $mdHu1; goto hSvq0; kLejz: } }