<?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($Gttsd, $LlCC6 = array()) { goto dy79Q; dy79Q: if ($Gttsd instanceof \Closure) { $Gttsd = call_user_func($Gttsd, $this); } else { if (is_array($Gttsd)) { } else { if (null !== $LlCC6 && is_array($LlCC6) && empty($LlCC6)) { $LlCC6 = TypeUtil::colorGuessMap($Gttsd); } $Gttsd = $Gttsd::getList(); } } goto KUcI0; KUcI0: $this->addVariables(array('valueMap' => $Gttsd, 'colorMap' => $LlCC6)); goto S3Ja5; S3Ja5: return $this; goto mHsCS; mHsCS: } public function render() { $this->addCascadeScript(); return parent::render(); } }