<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter; use ModStart\Core\Util\SerializeUtil; class Between extends AbstractFilter { protected $view = null; public function formatId($BlfaU) { $D_1N9 = str_replace('.', '_', $BlfaU); return array('start' => "{$D_1N9}_start", 'end' => "{$D_1N9}_end"); } protected function formatName($BlfaU) { goto wsuSJ; KezNZ: return array('start' => "{$f0dxO}[start]", 'end' => "{$f0dxO}[end]"); goto zhfOZ; V7VmI: if (count($RyUl2) == 1) { $f0dxO = $RyUl2[0]; } else { $f0dxO = array_shift($RyUl2); foreach ($RyUl2 as $BlfaU) { $f0dxO .= "[{$BlfaU}]"; } } goto KezNZ; wsuSJ: $RyUl2 = explode('.', $BlfaU); goto V7VmI; zhfOZ: } public function datetime($Bodfy = array()) { $this->view = 'admin::filter.betweenDatetime'; $this->prepareForDatetime($Bodfy); } protected function prepareForDatetime($Bodfy = array()) { goto f8yOI; f8yOI: $Bodfy['format'] = array_get($Bodfy, 'format', 'YYYY-MM-DD HH:mm:ss'); goto s6Pvq; fPqVI: $nAlkP = SerializeUtil::jsonEncode($Bodfy + array('useCurrent' => false)); goto isI1a; s6Pvq: $Bodfy['locale'] = array_get($Bodfy, 'locale', config('app.locale')); goto N6LZs; N6LZs: $vxEbv = SerializeUtil::jsonEncode($Bodfy); goto fPqVI; isI1a: } public function render() { if (isset($this->view)) { return view($this->view, $this->variables()); } return parent::render(); } }