<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter; class Between extends AbstractFilter { protected $view = null; public function formatId($JJepM) { $mK69g = str_replace('.', '_', $JJepM); return array('start' => "{$mK69g}_start", 'end' => "{$mK69g}_end"); } protected function formatName($JJepM) { goto OVqpS; H856c: return array('start' => "{$L4owo}[start]", 'end' => "{$L4owo}[end]"); goto cebTE; I38pD: if (count($PCTjY) == 1) { $L4owo = $PCTjY[0]; } else { $L4owo = array_shift($PCTjY); foreach ($PCTjY as $JJepM) { $L4owo .= "[{$JJepM}]"; } } goto H856c; OVqpS: $PCTjY = explode('.', $JJepM); goto I38pD; cebTE: } public function datetime($ZNmAK = array()) { $this->view = 'admin::filter.betweenDatetime'; $this->prepareForDatetime($ZNmAK); } protected function prepareForDatetime($ZNmAK = array()) { goto pZ4X2; pZ4X2: $ZNmAK['format'] = array_get($ZNmAK, 'format', 'YYYY-MM-DD HH:mm:ss'); goto SGVpn; SGVpn: $ZNmAK['locale'] = array_get($ZNmAK, 'locale', config('app.locale')); goto yruD8; yruD8: $rg_TM = json_encode($ZNmAK); goto WXnRm; WXnRm: $AeV5r = json_encode($ZNmAK + array('useCurrent' => false)); goto ikeoR; ikeoR: } public function render() { if (isset($this->view)) { return view($this->view, $this->variables()); } return parent::render(); } }