本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}