<?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 $z8oGH) { $this->filter = $z8oGH; $this->setup(); } protected function setup() { } public function label($Gttsd = null) { goto oxKyX; lbCIT: return $this; goto OgOgD; JSb2Y: $this->label = $Gttsd; goto lbCIT; oxKyX: if (is_null($Gttsd)) { return $this->label; } goto JSb2Y; OgOgD: } public function variables() { goto aNv5H; aNv5H: $w_e8L = array(); goto zOpY7; wTF3W: return $w_e8L; goto Txcxe; zOpY7: foreach ($this->fluentAttributes as $RTHJ6) { $w_e8L[$RTHJ6] = $this->{$RTHJ6}; } goto wTF3W; Txcxe: } public function __call($fSCUf, $g59Hh) { if ($this->isFluentAttribute($fSCUf)) { return $this->fluentAttribute($fSCUf, $g59Hh); } throw new \Exception('AbstractFilterField __call error : ' . $fSCUf); } }