<?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 $geg6A, $HQKqq = 'fixed', $ldmKg = '') { goto cmKxh; APOH0: $this->label = $ldmKg ? $ldmKg : $HQKqq; goto Em0ev; cmKxh: $this->filter = $geg6A; goto OEuzF; Em0ev: $this->queries = new Collection(); goto qLGn1; OEuzF: $this->key = $HQKqq; goto APOH0; qLGn1: } public function condition() { return $this->queries->map(function ($qeoqS) { return array($qeoqS['method'] => $qeoqS['arguments']); })->toArray(); } public function render() { return ''; } public function __call($hiFdg, $lLyBI) { $this->queries->push(array('method' => $hiFdg, 'arguments' => $lLyBI)); return $this; } }