<?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 $CJNWc, $rvTrU = 'fixed', $y1zAr = '') { goto QrdwM; s64n1: $this->queries = new Collection(); goto a4PVG; dYp5L: $this->label = $y1zAr ? $y1zAr : $rvTrU; goto s64n1; mX6Dy: $this->key = $rvTrU; goto dYp5L; QrdwM: $this->filter = $CJNWc; goto mX6Dy; a4PVG: } public function condition() { return $this->queries->map(function ($lpymm) { return array($lpymm['method'] => $lpymm['arguments']); })->toArray(); } public function render() { return ''; } public function __call($HxDDI, $CUZy6) { $this->queries->push(array('method' => $HxDDI, 'arguments' => $CUZy6)); return $this; } }