<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter; class Where extends AbstractFilter { protected $where; public $input; public function __construct(\Closure $xaAIg, $ob1v7) { goto shxmE; shxmE: $this->where = $xaAIg; goto QiCEj; xrq1W: $this->setupField(); goto JqtL_; QiCEj: $this->label = $this->formatLabel($ob1v7); goto oc7hg; oc7hg: $this->column = static::getQueryHash($xaAIg, $this->label); goto qA2vF; qA2vF: $this->id = $this->formatId($this->column); goto xrq1W; JqtL_: } public static function getQueryHash(\Closure $UmXKN, $ob1v7 = '') { $EC1v_ = new \ReflectionFunction($UmXKN); return md5($EC1v_->getFileName() . $EC1v_->getStartLine() . $EC1v_->getEndLine() . $ob1v7); } public function condition($HklG2) { goto Ydi3I; Ydi3I: $ib3B9 = array_get($HklG2, static::getQueryHash($this->where, $this->label)); goto x9424; I1chs: return $this->buildCondition($this->where->bindTo($this)); goto jv6fT; gTN2L: if (is_null($ib3B9) || empty($ib3B9)) { return; } goto DFV3l; DFV3l: $this->input = $this->value = $ib3B9; goto I1chs; x9424: if (is_array($ib3B9)) { $ib3B9 = array_filter($ib3B9); } goto gTN2L; jv6fT: } }