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