<?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($X_z8L = array()) { goto zDEgE; Q1tsv: return $this; goto CYLmi; zDEgE: if (null === $X_z8L) { return $this->quickSelect; } goto tz3JY; c8Mo8: $this->quickSelect = $X_z8L; goto Q1tsv; tz3JY: if (count($X_z8L) == 0) { $X_z8L = 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 c8Mo8; CYLmi: } }