<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter; class Where extends AbstractFilter { protected $where; public $input; public function __construct(\Closure $ZqQec, $lPHIy) { goto gQBZS; EdF3Y: $this->id = $this->formatId($this->column); goto s7H3x; s7H3x: $this->setupField(); goto AvZGO; LIHp5: $this->column = static::getQueryHash($ZqQec, $this->label); goto EdF3Y; gQBZS: $this->where = $ZqQec; goto qYfcF; qYfcF: $this->label = $this->formatLabel($lPHIy); goto LIHp5; AvZGO: } public static function getQueryHash(\Closure $YX_0r, $lPHIy = '') { $JbDot = new \ReflectionFunction($YX_0r); return md5($JbDot->getFileName() . $JbDot->getStartLine() . $JbDot->getEndLine() . $lPHIy); } public function condition($hXd8h) { goto uXZby; Jjo21: if (is_array($tzAUI)) { $tzAUI = array_filter($tzAUI); } goto xNxaw; UGm9s: $this->input = $this->value = $tzAUI; goto BF3EC; uXZby: $tzAUI = array_get($hXd8h, static::getQueryHash($this->where, $this->label)); goto Jjo21; xNxaw: if (is_null($tzAUI) || empty($tzAUI)) { return; } goto UGm9s; BF3EC: return $this->buildCondition($this->where->bindTo($this)); goto fF_zw; fF_zw: } }