<?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 $cF9SB, $m1RYi = 'fixed', $lPHIy = '') { goto ZLeFJ; nABCe: $this->key = $m1RYi; goto N3PDv; ZLeFJ: $this->filter = $cF9SB; goto nABCe; VE310: $this->queries = new Collection(); goto iFjiJ; N3PDv: $this->label = $lPHIy ? $lPHIy : $m1RYi; goto VE310; iFjiJ: } public function condition() { return $this->queries->map(function ($ZqQec) { return array($ZqQec['method'] => $ZqQec['arguments']); })->toArray(); } public function render() { return ''; } public function __call($WIVcd, $MVaFK) { $this->queries->push(array('method' => $WIVcd, 'arguments' => $MVaFK)); return $this; } }