<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter; class Where extends AbstractFilter { protected $where; public $input; public function __construct(\Closure $nYIOS, $JqDEI) { goto qQSBs; PXmIB: $this->label = $this->formatLabel($JqDEI); goto ln35X; ln35X: $this->column = static::getQueryHash($nYIOS, $this->label); goto hlV_R; hlV_R: $this->id = $this->formatId($this->column); goto j1Hn4; qQSBs: $this->where = $nYIOS; goto PXmIB; j1Hn4: $this->setupField(); goto kjWIY; kjWIY: } public static function getQueryHash(\Closure $FOLBJ, $JqDEI = '') { $LWcTV = new \ReflectionFunction($FOLBJ); return md5($LWcTV->getFileName() . $LWcTV->getStartLine() . $LWcTV->getEndLine() . $JqDEI); } public function condition($fKAnl) { goto xNLkh; NrU7i: $this->input = $this->value = $cBDsM; goto jRyW2; xNLkh: $cBDsM = array_get($fKAnl, static::getQueryHash($this->where, $this->label)); goto mNZPx; mNZPx: if (is_array($cBDsM)) { $cBDsM = array_filter($cBDsM); } goto dM1sz; jRyW2: return $this->buildCondition($this->where->bindTo($this)); goto eED9x; dM1sz: if (is_null($cBDsM) || empty($cBDsM)) { return; } goto NrU7i; eED9x: } }