<?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 $DMbpM, $oMJcb = 'fixed', $JqDEI = '') { goto mePZy; vFP2Z: $this->label = $JqDEI ? $JqDEI : $oMJcb; goto gXPtp; xV7AV: $this->key = $oMJcb; goto vFP2Z; mePZy: $this->filter = $DMbpM; goto xV7AV; gXPtp: $this->queries = new Collection(); goto MTI9X; MTI9X: } public function condition() { return $this->queries->map(function ($nYIOS) { return array($nYIOS['method'] => $nYIOS['arguments']); })->toArray(); } public function render() { return ''; } public function __call($UVOMF, $bY7Wp) { $this->queries->push(array('method' => $UVOMF, 'arguments' => $bY7Wp)); return $this; } }