<?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; class WidgetLinkController extends Controller { public static $PermitMethodMap = array('*' => '*'); private function build($zLycW, $k1NHq) { if (empty($k1NHq)) { return null; } return array('title' => $zLycW, 'list' => array_filter(array_map(function ($MNZ1i) { return $MNZ1i ? array('title' => $MNZ1i[0], 'link' => $MNZ1i[1]) : null; }, $k1NHq))); } public function select() { return view('modstart::admin.dialog.linkSelector', array('links' => AdminWidgetLink::get())); } }