<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter; use ModStart\Core\Dao\ModelUtil; use ModStart\Core\Type\BaseType; use ModStart\Grid\Filter\Field\Radio; class Eq extends AbstractFilter { public function select($H02oa) { goto VlPoc; uILMO: $this->field->options($H02oa); goto M22nu; VlPoc: $this->field = new Field\Select($this); goto uILMO; M22nu: return $this; goto ZE_YB; ZE_YB: } public function selectModel($I1hTb, $kkQsP = 'id', $Zmb65 = 'name', $ArzOE = array()) { return $this->select(ModelUtil::valueMap($I1hTb, $kkQsP, $Zmb65, $ArzOE)); } public function radio($H02oa) { goto xITX2; BJaXi: return $this; goto BxFe0; YOpEs: $this->field->options($H02oa); goto BJaXi; xITX2: $this->field = new Field\Radio($this); goto YOpEs; BxFe0: } public function switchRadioYesNo() { goto InDTy; Bf9Qk: return $this; goto REKNx; InDTy: $this->field = new Field\Radio($this); goto geeQ5; geeQ5: $this->field->options(array('0' => L('No'), '1' => L('Yes'))); goto Bf9Qk; REKNx: } public function switchRadioOnOff() { goto ku4Y2; ku4Y2: $this->field = new Field\Radio($this); goto ZdYph; ZdYph: $this->field->options(array('0' => L('Off'), '1' => L('On'))); goto wkN38; wkN38: return $this; goto UMIAj; UMIAj: } public function switchSelectYesNo() { goto M5zBu; xW_wT: return $this; goto OgdA3; zqOTU: $this->field->options(array('0' => L('No'), '1' => L('Yes'))); goto xW_wT; M5zBu: $this->field = new Field\Select($this); goto zqOTU; OgdA3: } public function switchSelectOnOff() { goto wCH4t; wCH4t: $this->field = new Field\Select($this); goto ih_xN; ih_xN: $this->field->options(array('0' => L('Off'), '1' => L('On'))); goto nQIRY; nQIRY: return $this; goto La7XO; La7XO: } }