<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter; use ModStart\Grid\Filter\Field\Datetime; class Range extends AbstractFilter { public function condition($d7NKF) { if (isset($d7NKF['range']) && ($d7NKF['range']['min'] || $d7NKF['range']['max'])) { goto Ab356; XhiBV: return $this->buildCondition($this->column, array($FT9zA['min'], $FT9zA['max'])); goto rCLeE; Pqp7d: if (!isset($FT9zA['max'])) { return $this->buildCondition($this->column, '>=', $FT9zA['min']); } goto pgvdc; iD77P: if (!isset($FT9zA['min'])) { return $this->buildCondition($this->column, '<=', $FT9zA['max']); } goto Pqp7d; pgvdc: $this->query = 'whereBetween'; goto XhiBV; Ab356: $FT9zA = $d7NKF['range']; goto iD77P; rCLeE: } return null; } public function datetime() { $this->field = new Field\Datetime($this); return $this; } public function date() { $this->field = new Field\Date($this); return $this; } public function text() { $this->field = new Field\Text($this); return $this; } public function number() { $this->field = new Field\Number($this); return $this; } }