<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter; class Where extends AbstractFilter { protected $where; public $input; public function __construct(\Closure $LBO09, $AqEmT) { goto VhuxX; VhuxX: $this->where = $LBO09; goto op3a4; op3a4: $this->label = $this->formatLabel($AqEmT); goto fwh5R; lZ2SG: $this->setupField(); goto cjBE1; fwh5R: $this->column = static::getQueryHash($LBO09, $this->label); goto Jaogp; Jaogp: $this->id = $this->formatId($this->column); goto lZ2SG; cjBE1: } public static function getQueryHash(\Closure $H7deD, $AqEmT = '') { $WtA8z = new \ReflectionFunction($H7deD); return md5($WtA8z->getFileName() . $WtA8z->getStartLine() . $WtA8z->getEndLine() . $AqEmT); } public function condition($XnKlU) { goto aMal6; cloKx: if (is_null($Mczr_) || empty($Mczr_)) { return; } goto r3dFH; r3dFH: $this->input = $this->value = $Mczr_; goto OQWZD; DoCbd: if (is_array($Mczr_)) { $Mczr_ = array_filter($Mczr_); } goto cloKx; aMal6: $Mczr_ = array_get($XnKlU, static::getQueryHash($this->where, $this->label)); goto DoCbd; OQWZD: return $this->buildCondition($this->where->bindTo($this)); goto b2VVr; b2VVr: } }