<?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 $z8oGH, $jPfeB = 'fixed', $rhrTz = '') { goto l5CL8; rNYTu: $this->queries = new Collection(); goto hw5Ys; XCtNj: $this->label = $rhrTz ? $rhrTz : $jPfeB; goto rNYTu; xxz6w: $this->key = $jPfeB; goto XCtNj; l5CL8: $this->filter = $z8oGH; goto xxz6w; hw5Ys: } public function condition() { return $this->queries->map(function ($sFfhd) { return array($sFfhd['method'] => $sFfhd['arguments']); })->toArray(); } public function render() { return ''; } public function __call($fSCUf, $g59Hh) { $this->queries->push(array('method' => $fSCUf, 'arguments' => $g59Hh)); return $this; } }