<?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 $JCV6U, $ax5t3 = 'fixed', $LfcEJ = '') { goto frz6A; IgeWH: $this->queries = new Collection(); goto qLOIf; s0Jkk: $this->label = $LfcEJ ? $LfcEJ : $ax5t3; goto IgeWH; frz6A: $this->filter = $JCV6U; goto ax8uM; ax8uM: $this->key = $ax5t3; goto s0Jkk; qLOIf: } public function condition() { return $this->queries->map(function ($AOBVZ) { return array($AOBVZ['method'] => $AOBVZ['arguments']); })->toArray(); } public function render() { return ''; } public function __call($JHYOH, $HPXJC) { $this->queries->push(array('method' => $JHYOH, 'arguments' => $HPXJC)); return $this; } }