<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter; class Where extends AbstractFilter { protected $where; public $input; public function __construct(\Closure $AOBVZ, $LfcEJ) { goto I3zVZ; OP9wa: $this->column = static::getQueryHash($AOBVZ, $this->label); goto S9eWI; I3zVZ: $this->where = $AOBVZ; goto zRVVF; zRVVF: $this->label = $this->formatLabel($LfcEJ); goto OP9wa; Tm8JY: $this->setupField(); goto u5cq0; S9eWI: $this->id = $this->formatId($this->column); goto Tm8JY; u5cq0: } public static function getQueryHash(\Closure $ToZUu, $LfcEJ = '') { $k4vG1 = new \ReflectionFunction($ToZUu); return md5($k4vG1->getFileName() . $k4vG1->getStartLine() . $k4vG1->getEndLine() . $LfcEJ); } public function condition($G4pdF) { goto YH0tZ; Llbl3: $this->input = $this->value = $FT9zA; goto y7pTQ; YH0tZ: $FT9zA = array_get($G4pdF, static::getQueryHash($this->where, $this->label)); goto Lk1Vd; OdRGS: if (is_null($FT9zA) || empty($FT9zA)) { return; } goto Llbl3; Lk1Vd: if (is_array($FT9zA)) { $FT9zA = array_filter($FT9zA); } goto OdRGS; y7pTQ: return $this->buildCondition($this->where->bindTo($this)); goto zV2ZW; zV2ZW: } }