<?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 $udDBo, $dwwIV = 'fixed', $Mbkw5 = '') { goto I7S9C; I7S9C: $this->filter = $udDBo; goto Mc28g; Mc28g: $this->key = $dwwIV; goto gcShH; TiEEN: $this->queries = new Collection(); goto WWOjx; gcShH: $this->label = $Mbkw5 ? $Mbkw5 : $dwwIV; goto TiEEN; WWOjx: } public function condition() { return $this->queries->map(function ($hAzJ1) { return array($hAzJ1['method'] => $hAzJ1['arguments']); })->toArray(); } public function render() { return ''; } public function __call($HkVnj, $nvZ9A) { $this->queries->push(array('method' => $HkVnj, 'arguments' => $nvZ9A)); return $this; } }