<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter; class Between extends AbstractFilter { protected $view = null; public function formatId($XrXh2) { $xYu70 = str_replace('.', '_', $XrXh2); return array('start' => "{$xYu70}_start", 'end' => "{$xYu70}_end"); } protected function formatName($XrXh2) { goto AfWJb; AfWJb: $JIRvO = explode('.', $XrXh2); goto EjuUz; e6j0O: return array('start' => "{$L1g9F}[start]", 'end' => "{$L1g9F}[end]"); goto wkQZx; EjuUz: if (count($JIRvO) == 1) { $L1g9F = $JIRvO[0]; } else { $L1g9F = array_shift($JIRvO); foreach ($JIRvO as $XrXh2) { $L1g9F .= "[{$XrXh2}]"; } } goto e6j0O; wkQZx: } public function datetime($C87JF = array()) { $this->view = 'admin::filter.betweenDatetime'; $this->prepareForDatetime($C87JF); } protected function prepareForDatetime($C87JF = array()) { goto GwSes; dkj2x: $C87JF['locale'] = array_get($C87JF, 'locale', config('app.locale')); goto uJLDk; GwSes: $C87JF['format'] = array_get($C87JF, 'format', 'YYYY-MM-DD HH:mm:ss'); goto dkj2x; HOw1G: $z6ggq = json_encode($C87JF + array('useCurrent' => false)); goto LHjUf; uJLDk: $Gh2Rd = json_encode($C87JF); goto HOw1G; LHjUf: } public function render() { if (isset($this->view)) { return view($this->view, $this->variables()); } return parent::render(); } }