<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter; class Where extends AbstractFilter { protected $where; public $input; public function __construct(\Closure $hAzJ1, $Mbkw5) { goto wKkQH; TQ_Fm: $this->id = $this->formatId($this->column); goto fh_X3; G8tot: $this->label = $this->formatLabel($Mbkw5); goto qvYbN; qvYbN: $this->column = static::getQueryHash($hAzJ1, $this->label); goto TQ_Fm; wKkQH: $this->where = $hAzJ1; goto G8tot; fh_X3: $this->setupField(); goto dchT9; dchT9: } public static function getQueryHash(\Closure $oRPSk, $Mbkw5 = '') { $Rfo2B = new \ReflectionFunction($oRPSk); return md5($Rfo2B->getFileName() . $Rfo2B->getStartLine() . $Rfo2B->getEndLine() . $Mbkw5); } public function condition($Qlle3) { goto aR6Dv; YMdhl: if (is_array($wvO30)) { $wvO30 = array_filter($wvO30); } goto hE4sv; aR6Dv: $wvO30 = array_get($Qlle3, static::getQueryHash($this->where, $this->label)); goto YMdhl; MxWJt: $this->input = $this->value = $wvO30; goto AMOeM; AMOeM: return $this->buildCondition($this->where->bindTo($this)); goto xiVC9; hE4sv: if (is_null($wvO30) || empty($wvO30)) { return; } goto MxWJt; xiVC9: } }