<?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 GQM1K; DWjWz: $this->addFluentAttributeVariable('selectSearch'); goto LE8G7; NNhXj: $this->addFluentAttributeVariable('optionContainsAll'); goto j4Gr7; LE8G7: $this->addFluentAttributeVariable('selectRemote'); goto NNhXj; GQM1K: $this->addFluentAttributeVariable('options'); goto DWjWz; j4Gr7: } public function options($Ho5Xg = null) { goto OLVFV; B4cGn: return $this; goto joPYN; OLVFV: if (null === $Ho5Xg) { return $this->options; } goto jrAok; Xry9J: $this->options = $cBDsM; goto B4cGn; jrAok: if (is_string($Ho5Xg) && is_subclass_of($Ho5Xg, BaseType::class)) { $cBDsM = $Ho5Xg::getList(); } else { if (is_array($Ho5Xg)) { $cBDsM = $Ho5Xg; } else { BizException::throws('Select options error'); } } goto Xry9J; joPYN: } public function selectSearch($cBDsM = null) { goto VnIVe; VnIVe: if (null === $cBDsM) { return $this->selectSearch; } goto uERHk; uERHk: $this->selectSearch = $cBDsM; goto l_N9O; l_N9O: return $this; goto meP7C; meP7C: } public function selectRemote($cBDsM = null) { goto mPU0K; QDp6I: return $this; goto KW5Bd; vHIYG: $this->selectRemote = $cBDsM; goto QDp6I; mPU0K: if (null === $cBDsM) { return $this->selectRemote; } goto vHIYG; KW5Bd: } public function optionContainsAll($cBDsM = false) { goto arHRv; arHRv: if (null === $cBDsM) { return $this->optionContainsAll; } goto xMurg; MtSyv: return $this; goto XCU70; xMurg: $this->optionContainsAll = $cBDsM; goto MtSyv; XCU70: } }