<?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($IbTG8 = array()) { goto oW3cX; mm4rB: return $this; goto gQy0a; oW3cX: if (null === $IbTG8) { return $this->quickSelect; } goto gEfrC; gEfrC: if (count($IbTG8) == 0) { $IbTG8 = 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 AG12y; AG12y: $this->quickSelect = $IbTG8; goto mm4rB; gQy0a: } }