<?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($ib3B9, $KJ_4C = array()) { goto vpEql; vpEql: if ($ib3B9 instanceof \Closure) { $ib3B9 = call_user_func($ib3B9, $this); } else { if (is_array($ib3B9)) { } else { if (null !== $KJ_4C && is_array($KJ_4C) && empty($KJ_4C)) { $KJ_4C = TypeUtil::colorGuessMap($ib3B9); } $ib3B9 = $ib3B9::getList(); } } goto Ylrbm; Ylrbm: $this->addVariables(array('valueMap' => $ib3B9, 'colorMap' => $KJ_4C)); goto rVP7D; rVP7D: return $this; goto k2bsR; k2bsR: } public function render() { $this->addCascadeScript(); return parent::render(); } }