<?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 $udDBo) { $this->filter = $udDBo; $this->setup(); } protected function setup() { } public function label($wvO30 = null) { goto usNx3; usNx3: if (is_null($wvO30)) { return $this->label; } goto XqiFR; TmGjM: return $this; goto UjDil; XqiFR: $this->label = $wvO30; goto TmGjM; UjDil: } public function variables() { goto WrTzw; WrTzw: $oYeSv = array(); goto FTCJX; FTCJX: foreach ($this->fluentAttributes as $plrwN) { $oYeSv[$plrwN] = $this->{$plrwN}; } goto K2oyK; K2oyK: return $oYeSv; goto A2QTz; A2QTz: } public function __call($HkVnj, $nvZ9A) { if ($this->isFluentAttribute($HkVnj)) { return $this->fluentAttribute($HkVnj, $nvZ9A); } throw new \Exception('AbstractFilterField __call error : ' . $HkVnj); } }