<?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\Config\AdminWidgetLink; class WidgetLinkController extends Controller { public static $PermitMethodMap = array('*' => '*'); private function build($VXJ0s, $SAWK1) { if (empty($SAWK1)) { return null; } return array('title' => $VXJ0s, 'list' => array_filter(array_map(function ($lDvaK) { return $lDvaK ? array('title' => $lDvaK[0], 'link' => $lDvaK[1]) : null; }, $SAWK1))); } public function select() { goto HBil0; Dhtyz: $UYy_k[] = $this->build('系统', array(array('首页', modstart_web_url('')))); goto TGLHC; TGLHC: $UYy_k = array_merge($UYy_k, AdminWidgetLink::get()); goto LR_5M; LR_5M: return view('modstart::admin.dialog.linkSelector', array('links' => array_filter($UYy_k))); goto XtN_5; HBil0: $UYy_k = array(); goto Dhtyz; XtN_5: } }