<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter\Field; use ModStart\Grid\Filter\AbstractFilter; use ModStart\Support\Concern\HasFluentAttribute; abstract class AbstractFilterField { use HasFluentAttribute; private $fluentAttributes = array(); protected $label = ''; private $filter; public function __construct(AbstractFilter $geg6A) { $this->filter = $geg6A; $this->setup(); } protected function setup() { } public function label($mdHu1 = null) { goto Uea29; Uea29: if (is_null($mdHu1)) { return $this->label; } goto lErof; lErof: $this->label = $mdHu1; goto QDKtj; QDKtj: return $this; goto rF2a8; rF2a8: } public function variables() { goto BGRra; BGRra: $z6iou = array(); goto pL1QI; vkXeA: return $z6iou; goto j3PzV; pL1QI: foreach ($this->fluentAttributes as $Fkd1C) { $z6iou[$Fkd1C] = $this->{$Fkd1C}; } goto vkXeA; j3PzV: } public function __call($hiFdg, $lLyBI) { if ($this->isFluentAttribute($hiFdg)) { return $this->fluentAttribute($hiFdg, $lLyBI); } throw new \Exception('AbstractFilterField __call error : ' . $hiFdg); } }