<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; use Illuminate\Support\Str; use ModStart\Core\Type\TypeUtil; use ModStart\Core\Util\ConstantUtil; class Type extends AbstractField { protected function setup() { $this->addVariables(array('valueMap' => null, 'colorMap' => array())); } public function type($tzAUI, $QxSRU = array()) { goto qvN4N; AsYmB: return $this; goto Olj6f; qvN4N: if ($tzAUI instanceof \Closure) { $tzAUI = call_user_func($tzAUI, $this); } else { if (is_array($tzAUI)) { } else { if (null !== $QxSRU && is_array($QxSRU) && empty($QxSRU)) { $QxSRU = TypeUtil::colorGuessMap($tzAUI); } $tzAUI = $tzAUI::getList(); } } goto ocPTM; ocPTM: $this->addVariables(array('valueMap' => $tzAUI, 'colorMap' => $QxSRU)); goto AsYmB; Olj6f: } }