<?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 $DMbpM) { $this->filter = $DMbpM; $this->setup(); } protected function setup() { } public function label($cBDsM = null) { goto xmwa7; iivhe: return $this; goto k_bXE; ZA7t2: $this->label = $cBDsM; goto iivhe; xmwa7: if (is_null($cBDsM)) { return $this->label; } goto ZA7t2; k_bXE: } public function variables() { goto Uro4q; hOw_i: foreach ($this->fluentAttributes as $lxIPA) { $YVA52[$lxIPA] = $this->{$lxIPA}; } goto bIz0X; bIz0X: return $YVA52; goto Njhl5; Uro4q: $YVA52 = array(); goto hOw_i; Njhl5: } public function __call($UVOMF, $bY7Wp) { if ($this->isFluentAttribute($UVOMF)) { return $this->fluentAttribute($UVOMF, $bY7Wp); } throw new \Exception('AbstractFilterField __call error : ' . $UVOMF); } }