<?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 gG3Ph; gG3Ph: $this->addFluentAttributeVariable('options'); goto AKisL; BSTeD: $this->addFluentAttributeVariable('optionContainsAll'); goto N4Zz3; oMQ8D: $this->addFluentAttributeVariable('selectRemote'); goto BSTeD; AKisL: $this->addFluentAttributeVariable('selectSearch'); goto oMQ8D; N4Zz3: } public function options($C87JF = null) { goto jEl16; pK06m: return $this; goto XUsQL; jEl16: if (null === $C87JF) { return $this->options; } goto f1awT; Hhw8q: $this->options = $gwXrh; goto pK06m; f1awT: if (is_string($C87JF) && is_subclass_of($C87JF, BaseType::class)) { $gwXrh = $C87JF::getList(); } else { if (is_array($C87JF)) { $gwXrh = $C87JF; } else { BizException::throws('Select options error'); } } goto Hhw8q; XUsQL: } public function selectSearch($gwXrh = null) { goto w66PT; w66PT: if (null === $gwXrh) { return $this->selectSearch; } goto xVFgH; xVFgH: $this->selectSearch = $gwXrh; goto CCGPX; CCGPX: return $this; goto yvli4; yvli4: } public function selectRemote($gwXrh = null) { goto QOahE; kvO4Y: $this->selectRemote = $gwXrh; goto PVIC5; PVIC5: return $this; goto hTspc; QOahE: if (null === $gwXrh) { return $this->selectRemote; } goto kvO4Y; hTspc: } public function optionContainsAll($gwXrh = false) { goto vCFvM; O0uBV: return $this; goto KRYjH; vCFvM: if (null === $gwXrh) { return $this->optionContainsAll; } goto BjcbO; BjcbO: $this->optionContainsAll = $gwXrh; goto O0uBV; KRYjH: } }