<?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($m58Cs = array()) { goto RszBI; RszBI: if (null === $m58Cs) { return $this->quickSelect; } goto kRv5d; kRv5d: if (count($m58Cs) == 0) { $m58Cs = 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 Z9C3m; Z9C3m: $this->quickSelect = $m58Cs; goto qIUHJ; qIUHJ: return $this; goto oiJ_f; oiJ_f: } }