<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Config; use Illuminate\Support\Str; use ModStart\Core\Util\RenderUtil; class MemberNavMenu { private static $menu = array(); public static function register($BXiBs) { self::$menu[] = $BXiBs; } public static function get() { goto SuBT_; UxLcZ: return $BXiBs; goto xnKAK; SuBT_: $BXiBs = array(); goto qe1vN; qe1vN: foreach (self::$menu as $Z32UA) { if ($Z32UA instanceof \Closure) { $Z32UA = call_user_func($Z32UA); } $BXiBs = array_merge($BXiBs, $Z32UA); } goto UxLcZ; xnKAK: } public static function render() { goto oO7s1; oO7s1: $SkrlQ = self::get(); goto qKDlE; tU2fi: return RenderUtil::view('module::Member.View.inc.memberNavMenu', array('items' => $SkrlQ)); goto arc0E; qKDlE: if (empty($SkrlQ)) { return ''; } goto tU2fi; arc0E: } }