<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter; class Where extends AbstractFilter { protected $where; public $input; public function __construct(\Closure $sFfhd, $rhrTz) { goto NzSxX; aUdOY: $this->setupField(); goto iM3s0; FDIho: $this->label = $this->formatLabel($rhrTz); goto ZMDKQ; NzSxX: $this->where = $sFfhd; goto FDIho; cqHiK: $this->id = $this->formatId($this->column); goto aUdOY; ZMDKQ: $this->column = static::getQueryHash($sFfhd, $this->label); goto cqHiK; iM3s0: } public static function getQueryHash(\Closure $JPoXh, $rhrTz = '') { $FD_lk = new \ReflectionFunction($JPoXh); return md5($FD_lk->getFileName() . $FD_lk->getStartLine() . $FD_lk->getEndLine() . $rhrTz); } public function condition($Suzww) { goto XLzPm; XLzPm: $Gttsd = array_get($Suzww, static::getQueryHash($this->where, $this->label)); goto E1Oka; aVVBi: return $this->buildCondition($this->where->bindTo($this)); goto mros3; E1Oka: if (is_array($Gttsd)) { $Gttsd = array_filter($Gttsd); } goto Qw83w; HUhGK: $this->input = $this->value = $Gttsd; goto aVVBi; Qw83w: if (is_null($Gttsd) || empty($Gttsd)) { return; } goto HUhGK; mros3: } }