<?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($FT9zA, $EKim5 = array()) { goto YE4ld; f_Riy: return $this; goto rBaXE; LSqdW: $this->addVariables(array('valueMap' => $FT9zA, 'colorMap' => $EKim5)); goto f_Riy; YE4ld: if ($FT9zA instanceof \Closure) { $FT9zA = call_user_func($FT9zA, $this); } else { if (is_array($FT9zA)) { } else { if (null !== $EKim5 && is_array($EKim5) && empty($EKim5)) { $EKim5 = TypeUtil::colorGuessMap($FT9zA); } $FT9zA = $FT9zA::getList(); } } goto LSqdW; rBaXE: } public function render() { $this->addCascadeScript(); return parent::render(); } }