<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter; class Where extends AbstractFilter { protected $where; public $input; public function __construct(\Closure $lpymm, $y1zAr) { goto rX1Nz; zqMjb: $this->setupField(); goto kTYcq; rX1Nz: $this->where = $lpymm; goto T7yCt; sRrCw: $this->id = $this->formatId($this->column); goto zqMjb; yb10Q: $this->column = static::getQueryHash($lpymm, $this->label); goto sRrCw; T7yCt: $this->label = $this->formatLabel($y1zAr); goto yb10Q; kTYcq: } public static function getQueryHash(\Closure $ofcu0, $y1zAr = '') { $DYRgm = new \ReflectionFunction($ofcu0); return md5($DYRgm->getFileName() . $DYRgm->getStartLine() . $DYRgm->getEndLine() . $y1zAr); } public function condition($wu9QR) { goto wN5UQ; klPAL: if (is_array($gwXrh)) { $gwXrh = array_filter($gwXrh); } goto Apy2j; Apy2j: if (is_null($gwXrh) || empty($gwXrh)) { return; } goto up0Vo; t1KWn: return $this->buildCondition($this->where->bindTo($this)); goto dB3fs; up0Vo: $this->input = $this->value = $gwXrh; goto t1KWn; wN5UQ: $gwXrh = array_get($wu9QR, static::getQueryHash($this->where, $this->label)); goto klPAL; dB3fs: } }