<?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 $pvsQp, $GUcFO = 'fixed', $ob1v7 = '') { goto d_hZl; di0B3: $this->key = $GUcFO; goto j1tUV; j1tUV: $this->label = $ob1v7 ? $ob1v7 : $GUcFO; goto gmRZ9; d_hZl: $this->filter = $pvsQp; goto di0B3; gmRZ9: $this->queries = new Collection(); goto nm277; nm277: } public function condition() { return $this->queries->map(function ($xaAIg) { return array($xaAIg['method'] => $xaAIg['arguments']); })->toArray(); } public function render() { return ''; } public function __call($eNE35, $lUGZC) { $this->queries->push(array('method' => $eNE35, 'arguments' => $lUGZC)); return $this; } }