/**
  * Channels naivgation function
  * @return none
  */
 public function navigation(Web $w, $title = null, $prenav = null)
 {
     if ($title) {
         $w->ctx("title", $title);
     }
     $nav = $prenav ? $prenav : array();
     if ($w->Auth->loggedIn()) {
         $w->menuLink("channels/listchannels", "List Channels", $nav);
         $w->menuLink("channels/listprocessors", "List Processors", $nav);
         $w->menuLink("channels/listmessages", "List Messages", $nav);
     }
     $w->ctx("navigation", $nav);
     return $nav;
 }
 /**
  * Generate a list of menu entries which will go into a drop down
  * under the module name.
  * 
  * @param Web $w
  * @param string $title (not in use)
  * @param string $nav (not  in use)
  * @return array of menu entries
  */
 public function navigation(Web $w, $title = null, $nav = null)
 {
     $nav = array();
     if ($w->Auth->loggedIn()) {
         $w->menuLink("/sprints/index", "Sprints", $nav);
     }
     return $nav;
 }
 /**
  * Generate a list of menu entries which will go into a drop down
  * under the module name.
  * 
  * @param Web $w
  * @param string $title (not in use)
  * @param string $nav (not  in use)
  * @return array of menu entries
  */
 public function navigation(Web $w, $title = null, $nav = null)
 {
     $nav = array();
     if ($w->Auth->loggedIn()) {
         $w->menuLink("example/index", "Home", $nav);
     }
     return $nav;
 }
Exemple #4
0
 public function navigation(Web $w, $title = null, $prenav = null)
 {
     if ($title) {
         $w->ctx("title", $title);
     }
     $nav = $prenav ? $prenav : array();
     if ($w->Auth->loggedIn()) {
         $w->menuLink("admin/users", "List Users", $nav);
         $w->menuLink("admin/groups", "List Groups", $nav);
         $w->menuLink("admin/lookup", "Lookup", $nav);
         $w->menuLink("admin-templates", "Templates", $nav);
         $w->menuLink("admin/phpinfo", "PHP Info", $nav);
         $w->menuLink("admin/printers", "Printers", $nav);
         $w->menuLink("admin/printqueue", "Print Queue", $nav);
         $w->menuLink("admin/databasebackup", "Backup Database", $nav);
         $w->menuLink("admin/composer", "Install/Update Composer", $nav, null, "_blank");
     }
     $w->ctx("navigation", $nav);
     return $nav;
 }
Exemple #5
0
 public function navigation(Web $w, $title = null, $nav = null)
 {
     if ($title) {
         $w->ctx("title", $title);
     }
     $nav = $nav ? $nav : array();
     if ($w->Auth->loggedIn()) {
         $w->menuLink("task/edit", "New Task", $nav);
         $w->menuLink("task/index", "Task Dashboard", $nav);
         $w->menuLink("task/tasklist", "Task List", $nav);
         $w->menuLink("task/tasklist#notifications", "Notifications", $nav);
         $w->menuLink("task/taskweek", "Activity", $nav);
         $w->menuLink("task-group/viewtaskgrouptypes", "Task Groups", $nav);
     }
     $w->ctx("navigation", $nav);
     return $nav;
 }
Exemple #6
0
 public function navigation(Web $w, $title = null, $nav = null)
 {
     if (!empty($title)) {
         $w->ctx("title", $title);
     }
     $nav = $nav ? $nav : array();
     if ($w->Auth->loggedIn()) {
         $w->menuLink("report/index", "Report Dashboard", $nav);
         if ($w->Auth->user()->hasRole("report_editor") || $w->Auth->user()->hasRole("report_admin")) {
             $w->menuLink("report/edit", "Create a Report", $nav);
             $w->menuLink("report-connections", "Connections", $nav);
             $w->menuLink("report/listfeed", "Feeds Dashboard", $nav);
         }
     }
     $w->ctx("navigation", $nav);
     return $nav;
 }
Exemple #7
0
 public function navigation(Web $w, $title = null, $nav = null)
 {
     if ($title) {
         $w->ctx("title", $title);
     }
     $nav = $nav ? $nav : array();
     if ($w->Auth->loggedIn()) {
         $w->menuLink("inbox", "New Messages", $nav);
         $w->menuLink("inbox/read", "Read Messages", $nav);
         $w->menuLink("inbox/showarchive", "Archive", $nav);
         $w->menuLink("inbox/trash", "Bin", $nav);
     }
     $w->ctx("navigation", $nav);
     return $nav;
 }