<?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($x8Qey = array()) { goto U7cK8; RF01h: $this->quickSelect = $x8Qey; goto Qa5kM; Qa5kM: return $this; goto i7VYh; NxJqk: if (count($x8Qey) == 0) { $x8Qey = 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 RF01h; U7cK8: if (null === $x8Qey) { return $this->quickSelect; } goto NxJqk; i7VYh: } }