示例#1
0
文件: acl.php 项目: jonlb/JxCMS
 public static function onGetAdminMenu(Jx_Event_Notification $notification)
 {
     if ($notification->hasReturnData()) {
         $menu = $notification->getReturnData();
     } else {
         $menu = $notification->getObject();
     }
     $menu['security'] = array('text' => 'Security', 'title' => '', 'toplevel' => true, 'submenu' => array('groups' => array('text' => 'Manage Groups', 'title' => '', 'file' => 'groups'), 'users' => array('text' => 'Manage Users', 'title' => '', 'file' => 'users')));
     $notification->setReturnData($menu);
 }
示例#2
0
文件: settings.php 项目: jonlb/JxCMS
 public static function onGetAdminMenu(Jx_Event_Notification $notification)
 {
     if ($notification->hasReturnData()) {
         $menu = $notification->getReturnData();
     } else {
         $menu = $notification->getObject();
     }
     $menu['system']['submenu']['settings'] = array('text' => 'Manage Settings', 'title' => '', 'file' => 'settings');
     $notification->setReturnData($menu);
 }