<?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 C4Tj4; C4Tj4: $this->addFluentAttributeVariable('options'); goto ctiWJ; qzJ6T: $this->addFluentAttributeVariable('selectRemote'); goto hAn2d; ctiWJ: $this->addFluentAttributeVariable('selectSearch'); goto qzJ6T; hAn2d: $this->addFluentAttributeVariable('optionContainsAll'); goto wHkpz; wHkpz: } public function options($nO0o6 = null) { goto pY5lw; pY5lw: if (null === $nO0o6) { return $this->options; } goto fq9vf; Qa4HH: $this->options = $Gttsd; goto Dd3jS; fq9vf: if (is_string($nO0o6) && is_subclass_of($nO0o6, BaseType::class)) { $Gttsd = $nO0o6::getList(); } else { if (is_array($nO0o6)) { $Gttsd = $nO0o6; } else { BizException::throws('Select options error'); } } goto Qa4HH; Dd3jS: return $this; goto N0tJx; N0tJx: } public function selectSearch($Gttsd = null) { goto q3jUj; fkfIq: return $this; goto MP2fk; d5G18: $this->selectSearch = $Gttsd; goto fkfIq; q3jUj: if (null === $Gttsd) { return $this->selectSearch; } goto d5G18; MP2fk: } public function selectRemote($Gttsd = null) { goto gcs9N; NuqrK: return $this; goto U83wR; MAplX: $this->selectRemote = $Gttsd; goto NuqrK; gcs9N: if (null === $Gttsd) { return $this->selectRemote; } goto MAplX; U83wR: } public function optionContainsAll($Gttsd = false) { goto B65m_; N5ujf: $this->optionContainsAll = $Gttsd; goto HAEjf; HAEjf: return $this; goto m0Qza; B65m_: if (null === $Gttsd) { return $this->optionContainsAll; } goto N5ujf; m0Qza: } }