<?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($VVmJT) { self::$menu[] = $VVmJT; } public static function get() { goto strHF; ZEAfn: foreach (self::$menu as $jIWZA) { if ($jIWZA instanceof \Closure) { $jIWZA = call_user_func($jIWZA); } $VVmJT = array_merge($VVmJT, $jIWZA); } goto pyFH4; pyFH4: return $VVmJT; goto ulEzX; strHF: $VVmJT = array(); goto ZEAfn; ulEzX: } public static function render() { goto iXleS; Yn7Eg: if (empty($wKMoW)) { return ''; } goto BslgV; BslgV: return RenderUtil::view('module::Member.View.inc.memberNavMenu', array('items' => $wKMoW)); goto xG17_; iXleS: $wKMoW = self::get(); goto Yn7Eg; xG17_: } }