<?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 $XYn5i) { $this->filter = $XYn5i; $this->setup(); } protected function setup() { } public function label($HDpl6 = null) { goto p5MEE; p5MEE: if (is_null($HDpl6)) { return $this->label; } goto waDxp; L_CkJ: return $this; goto Ctb5b; waDxp: $this->label = $HDpl6; goto L_CkJ; Ctb5b: } public function variables() { goto R3nbN; h19ZD: foreach ($this->fluentAttributes as $pztz4) { $m9tbT[$pztz4] = $this->{$pztz4}; } goto fVhS2; fVhS2: return $m9tbT; goto J1z8F; R3nbN: $m9tbT = array(); goto h19ZD; J1z8F: } public function __call($fVu6a, $RSGSj) { if ($this->isFluentAttribute($fVu6a)) { return $this->fluentAttribute($fVu6a, $RSGSj); } throw new \Exception('AbstractFilterField __call error : ' . $fVu6a); } }