<?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($wvO30, $L_KhE = array()) { goto lxBUl; lxBUl: if ($wvO30 instanceof \Closure) { $wvO30 = call_user_func($wvO30, $this); } else { if (is_array($wvO30)) { } else { if (null !== $L_KhE && is_array($L_KhE) && empty($L_KhE)) { $L_KhE = TypeUtil::colorGuessMap($wvO30); } $wvO30 = $wvO30::getList(); } } goto nWilC; nWilC: $this->addVariables(array('valueMap' => $wvO30, 'colorMap' => $L_KhE)); goto Cm7qx; Cm7qx: return $this; goto hxtVI; hxtVI: } public function render() { $this->addCascadeScript(); return parent::render(); } }