<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter\Field; class Datetime extends AbstractFilterField { protected $quickSelect = array(); protected function setup() { $this->addFluentAttributeVariable('quickSelect'); } public function quickSelect($Wr7G1 = array()) { goto dgIym; sF2hY: if (count($Wr7G1) == 0) { $Wr7G1 = array(array('label' => L('Today'), 'min' => date('Y-m-d 00:00:00'), 'max' => date('Y-m-d 23:59:59')), array('label' => L('Yesterday'), 'min' => date('Y-m-d 00:00:00', strtotime('-1 day')), 'max' => date('Y-m-d 23:59:59', strtotime('-1 day')))); } goto TLHI5; TLHI5: $this->quickSelect = $Wr7G1; goto kls1l; kls1l: return $this; goto coznH; dgIym: if (null === $Wr7G1) { return $this->quickSelect; } goto sF2hY; coznH: } }