<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter; class Where extends AbstractFilter { protected $where; public $input; public function __construct(\Closure $qeoqS, $ldmKg) { goto GawOK; uH_0o: $this->column = static::getQueryHash($qeoqS, $this->label); goto pNxs2; mqOmG: $this->label = $this->formatLabel($ldmKg); goto uH_0o; f5keJ: $this->setupField(); goto twaeD; GawOK: $this->where = $qeoqS; goto mqOmG; pNxs2: $this->id = $this->formatId($this->column); goto f5keJ; twaeD: } public static function getQueryHash(\Closure $smpQd, $ldmKg = '') { $fTZGT = new \ReflectionFunction($smpQd); return md5($fTZGT->getFileName() . $fTZGT->getStartLine() . $fTZGT->getEndLine() . $ldmKg); } public function condition($EspyQ) { goto yfALN; CS913: return $this->buildCondition($this->where->bindTo($this)); goto YjFg8; Quolt: if (is_null($mdHu1) || empty($mdHu1)) { return; } goto dpzQ4; yfALN: $mdHu1 = array_get($EspyQ, static::getQueryHash($this->where, $this->label)); goto oouHD; oouHD: if (is_array($mdHu1)) { $mdHu1 = array_filter($mdHu1); } goto Quolt; dpzQ4: $this->input = $this->value = $mdHu1; goto CS913; YjFg8: } }