Пример #1
0
 /**
  * Call back hook to add menu entries.
  *
  * @return null
  */
 function addMenu()
 {
     Core_Menu_AddMenu('User', 'Bikes', array('module' => 'UserManagement', 'action' => 'bikes'));
     Core_Menu_AddMenu('User', 'Settings', array('module' => 'UserManagement', 'action' => 'settings'));
     if (isset($_SESSION['superuser']) && $_SESSION['superuser']) {
         Core_Menu_AddMenu('UserManagement', 'View Users', array('module' => 'UserManagement', 'action' => 'view'));
         Core_Menu_AddMenu('UserManagement', 'New User', array('module' => 'UserManagement', 'action' => 'create'));
     }
 }
Пример #2
0
 function addMenu()
 {
     Core_Menu_AddMenu('Sessions', 'View Sessions', array('module' => 'Sessions', 'action' => 'view'));
     Core_Menu_AddMenu('Sessions', 'Climbs', array('module' => 'Sessions', 'action' => 'viewClimbs'));
     Core_Menu_AddMenu('Sessions', 'File Upload', array('module' => 'Sessions', 'action' => 'viewUpload'));
 }
Пример #3
0
 function addMenu()
 {
     Core_Menu_AddMenu('DashBoard', 'DashBoard', array('module' => 'DashBoard', 'action' => 'view'));
 }
Пример #4
0
 function addMenu()
 {
     Core_Menu_AddMenu('User', 'Logout', array('module' => 'Login', 'action' => 'logout'));
 }
Пример #5
0
 function addMenu()
 {
     Core_Menu_AddMenu('Plans', 'View Plans', array('module' => 'Plans', 'action' => 'view'));
 }