<?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 BAyVt; BAyVt: $this->addFluentAttributeVariable('options'); goto qWgnA; rrnPf: $this->addFluentAttributeVariable('selectRemote'); goto XOSgr; qWgnA: $this->addFluentAttributeVariable('selectSearch'); goto rrnPf; XOSgr: $this->addFluentAttributeVariable('optionContainsAll'); goto u6Qfe; u6Qfe: } public function options($Bodfy = null) { goto cZyA_; cZyA_: if (null === $Bodfy) { return $this->options; } goto bbrlX; MUcNT: return $this; goto EWxG8; gYxuq: $this->options = $HDpl6; goto MUcNT; bbrlX: if (is_string($Bodfy) && is_subclass_of($Bodfy, BaseType::class)) { $HDpl6 = $Bodfy::getList(); } else { if (is_array($Bodfy)) { $HDpl6 = $Bodfy; } else { BizException::throws('Select options error'); } } goto gYxuq; EWxG8: } public function selectSearch($HDpl6 = null) { goto Xh43A; UnmBu: $this->selectSearch = $HDpl6; goto Je42D; Je42D: return $this; goto JXLar; Xh43A: if (null === $HDpl6) { return $this->selectSearch; } goto UnmBu; JXLar: } public function selectRemote($HDpl6 = null) { goto ySqzd; KCAIK: $this->selectRemote = $HDpl6; goto YLcC9; ySqzd: if (null === $HDpl6) { return $this->selectRemote; } goto KCAIK; YLcC9: return $this; goto KqzAn; KqzAn: } public function optionContainsAll($HDpl6 = false) { goto l6M0n; uEQKm: $this->optionContainsAll = $HDpl6; goto Isgb8; l6M0n: if (null === $HDpl6) { return $this->optionContainsAll; } goto uEQKm; Isgb8: return $this; goto OhVwR; OhVwR: } }