當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Web::menuLink方法代碼示例

本文整理匯總了PHP中Web::menuLink方法的典型用法代碼示例。如果您正苦於以下問題:PHP Web::menuLink方法的具體用法?PHP Web::menuLink怎麽用?PHP Web::menuLink使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Web的用法示例。


在下文中一共展示了Web::menuLink方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: navigation

 /**
  * 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;
 }
開發者ID:itillawarra,項目名稱:cmfive,代碼行數:18,代碼來源:ChannelsService.php

示例2: navigation

 /**
  * 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;
 }
開發者ID:syntithenai,項目名稱:sprints,代碼行數:17,代碼來源:SprintService.php

示例3: navigation

 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;
 }
開發者ID:itillawarra,項目名稱:cmfive,代碼行數:20,代碼來源:AdminService.php

示例4: navigation

 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;
 }
開發者ID:itillawarra,項目名稱:cmfive,代碼行數:17,代碼來源:TaskService.php

示例5: navigation

 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;
 }
開發者ID:itillawarra,項目名稱:cmfive,代碼行數:17,代碼來源:ReportService.php

示例6: navigation

 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;
 }
開發者ID:itillawarra,項目名稱:cmfive,代碼行數:15,代碼來源:InboxService.php


注:本文中的Web::menuLink方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。