<?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($jSsIt) { self::$menu[] = $jSsIt; } public static function get() { goto HSdbw; O_rea: foreach (self::$menu as $YaV4m) { if ($YaV4m instanceof \Closure) { $YaV4m = call_user_func($YaV4m); } $jSsIt = array_merge($jSsIt, $YaV4m); } goto wQ2Cw; HSdbw: $jSsIt = array(); goto O_rea; wQ2Cw: return $jSsIt; goto s1an1; s1an1: } public static function render() { goto IFwRo; b_taX: return RenderUtil::view('module::Member.View.inc.memberNavMenu', array('items' => $XdX3D)); goto yYRjh; IFwRo: $XdX3D = self::get(); goto OC_wY; OC_wY: if (empty($XdX3D)) { return ''; } goto b_taX; yYRjh: } }