<?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 GvyqB; GvyqB: $this->addFluentAttributeVariable('options'); goto ikXA9; ikXA9: $this->addFluentAttributeVariable('selectSearch'); goto CIv2E; CIv2E: $this->addFluentAttributeVariable('selectRemote'); goto cnH2J; cnH2J: $this->addFluentAttributeVariable('optionContainsAll'); goto uWxCx; uWxCx: } public function options($RKwZR = null) { goto EcrlC; EcrlC: if (null === $RKwZR) { return $this->options; } goto OxNw6; QmdAZ: return $this; goto B5T8S; fW1sm: $this->options = $Mczr_; goto QmdAZ; OxNw6: if (is_string($RKwZR) && is_subclass_of($RKwZR, BaseType::class)) { $Mczr_ = $RKwZR::getList(); } else { if (is_array($RKwZR)) { $Mczr_ = $RKwZR; } else { BizException::throws('Select options error'); } } goto fW1sm; B5T8S: } public function selectSearch($Mczr_ = null) { goto SmfE5; TFKng: return $this; goto oIJ41; SmfE5: if (null === $Mczr_) { return $this->selectSearch; } goto pjL_D; pjL_D: $this->selectSearch = $Mczr_; goto TFKng; oIJ41: } public function selectRemote($Mczr_ = null) { goto y7z_V; DulK1: return $this; goto JUN4W; Ks88d: $this->selectRemote = $Mczr_; goto DulK1; y7z_V: if (null === $Mczr_) { return $this->selectRemote; } goto Ks88d; JUN4W: } public function optionContainsAll($Mczr_ = false) { goto DpRKw; lc7lx: $this->optionContainsAll = $Mczr_; goto R86ki; R86ki: return $this; goto fZ2qa; DpRKw: if (null === $Mczr_) { return $this->optionContainsAll; } goto lc7lx; fZ2qa: } }