<?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($BqNuz = array()) { goto gw6IA; VsAlp: $this->quickSelect = $BqNuz; goto O2Wzs; gw6IA: if (null === $BqNuz) { return $this->quickSelect; } goto Ek8xp; O2Wzs: return $this; goto zYcZ9; Ek8xp: if (count($BqNuz) == 0) { $BqNuz = 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 VsAlp; zYcZ9: } }