<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Admin\Config; class AdminMenu { private static $menu = array(); public static function register($yoPNL) { self::$menu[] = $yoPNL; } public static function get() { goto Bar1r; mNXYL: foreach (self::$menu as $Esk0p) { if ($Esk0p instanceof \Closure) { $Esk0p = call_user_func($Esk0p); } if (isset($Esk0p['title'])) { $yoPNL = array_merge($yoPNL, array($Esk0p)); } else { $yoPNL = array_merge($yoPNL, $Esk0p); } } goto MMMcB; MMMcB: return $yoPNL; goto UQkxz; Bar1r: $yoPNL = array(); goto mNXYL; UQkxz: } }