<?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($Mczr_, $dXSUW = array()) { goto rgDbM; v0vQz: return $this; goto DwfOo; A1oLv: $this->addVariables(array('valueMap' => $Mczr_, 'colorMap' => $dXSUW)); goto v0vQz; rgDbM: if ($Mczr_ instanceof \Closure) { $Mczr_ = call_user_func($Mczr_, $this); } else { if (is_array($Mczr_)) { } else { if (null !== $dXSUW && is_array($dXSUW) && empty($dXSUW)) { $dXSUW = TypeUtil::colorGuessMap($Mczr_); } $Mczr_ = $Mczr_::getList(); } } goto A1oLv; DwfOo: } public function render() { $this->addCascadeScript(); return parent::render(); } }