<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Admin\Controller; use Illuminate\Routing\Controller; use ModStart\Core\Dao\ModelManageUtil; use ModStart\Core\Dao\ModelUtil; use ModStart\Core\Util\TreeUtil; use ModStart\Module\ModuleManager; use Module\Vendor\Admin\Widget\AdminWidgetLink; use Module\Vendor\Type\AdminWidgetLinkType; class WidgetLinkController extends Controller { public static $PermitMethodMap = array('*' => '*'); public function select() { goto NlWJ5; GEF_s: return view('modstart::admin.dialog.linkSelector', array('types' => $UdEqQ, 'links' => $s6Tcx)); goto vxqaH; k6W5N: $UdEqQ = array(); goto RThli; NlWJ5: $s6Tcx = AdminWidgetLink::get(); goto k6W5N; RThli: foreach (AdminWidgetLinkType::getList() as $zO6V5 => $H_jRb) { goto G2OJa; Q1IBV: $UdEqQ[] = array('name' => $zO6V5, 'title' => $H_jRb, 'count' => $jkmMU, 'icon' => AdminWidgetLinkType::icon($zO6V5)); goto awhuN; G2OJa: $jkmMU = count(array_filter($s6Tcx, function ($NOEEy) use($zO6V5) { return $NOEEy['type'] == $zO6V5; })); goto db0xl; db0xl: if ($jkmMU <= 0) { continue; } goto Q1IBV; awhuN: } goto GEF_s; vxqaH: } }