<?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 $CJNWc) { $this->filter = $CJNWc; $this->setup(); } protected function setup() { } public function label($gwXrh = null) { goto HRzZZ; HRzZZ: if (is_null($gwXrh)) { return $this->label; } goto PBuW3; ZNDGj: return $this; goto nWArn; PBuW3: $this->label = $gwXrh; goto ZNDGj; nWArn: } public function variables() { goto JCYfg; JCYfg: $D6v2W = array(); goto AvM8w; AvM8w: foreach ($this->fluentAttributes as $GBNIv) { $D6v2W[$GBNIv] = $this->{$GBNIv}; } goto Cm3AI; Cm3AI: return $D6v2W; goto H3GUr; H3GUr: } public function __call($HxDDI, $CUZy6) { if ($this->isFluentAttribute($HxDDI)) { return $this->fluentAttribute($HxDDI, $CUZy6); } throw new \Exception('AbstractFilterField __call error : ' . $HxDDI); } }