<?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($waQzp = array()) { goto lc49S; UllYL: $this->quickSelect = $waQzp; goto Nmh_B; Nmh_B: return $this; goto d2sfz; OByWG: if (count($waQzp) == 0) { $waQzp = 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 UllYL; lc49S: if (null === $waQzp) { return $this->quickSelect; } goto OByWG; d2sfz: } }