<?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($ZarpR = array()) { goto Cjvud; h2VxO: $this->quickSelect = $ZarpR; goto sDKtH; pI8wC: if (count($ZarpR) == 0) { $ZarpR = 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 h2VxO; Cjvud: if (null === $ZarpR) { return $this->quickSelect; } goto pI8wC; sDKtH: return $this; goto iLMYF; iLMYF: } }