<?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 $Nxn6E) { $this->filter = $Nxn6E; $this->setup(); } protected function setup() { } public function label($Mczr_ = null) { goto uUyY1; DipLC: $this->label = $Mczr_; goto eLRGV; uUyY1: if (is_null($Mczr_)) { return $this->label; } goto DipLC; eLRGV: return $this; goto nYqpv; nYqpv: } public function variables() { goto SnDVh; rtFWb: foreach ($this->fluentAttributes as $B34tD) { $qZY2j[$B34tD] = $this->{$B34tD}; } goto gpZLo; SnDVh: $qZY2j = array(); goto rtFWb; gpZLo: return $qZY2j; goto sCSRJ; sCSRJ: } public function __call($pK00s, $rxS2C) { if ($this->isFluentAttribute($pK00s)) { return $this->fluentAttribute($pK00s, $rxS2C); } throw new \Exception('AbstractFilterField __call error : ' . $pK00s); } }