<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid; use Illuminate\Contracts\Support\Renderable; use Illuminate\Database\Query\Builder; use Illuminate\Support\Collection; class GridFilterScope implements Renderable { protected $filter; public $key = ''; protected $label = ''; protected $queries; public function __construct(GridFilter $Nxn6E, $l6tBV = 'fixed', $AqEmT = '') { goto lAdH1; KoIRA: $this->label = $AqEmT ? $AqEmT : $l6tBV; goto qhEpE; lAdH1: $this->filter = $Nxn6E; goto kpAmR; qhEpE: $this->queries = new Collection(); goto Zn6P1; kpAmR: $this->key = $l6tBV; goto KoIRA; Zn6P1: } public function condition() { return $this->queries->map(function ($LBO09) { return array($LBO09['method'] => $LBO09['arguments']); })->toArray(); } public function render() { return ''; } public function __call($pK00s, $rxS2C) { $this->queries->push(array('method' => $pK00s, 'arguments' => $rxS2C)); return $this; } }