当前位置: 首页>>代码示例>>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;未经允许,请勿转载。