本文整理汇总了PHP中Web::checkUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP Web::checkUrl方法的具体用法?PHP Web::checkUrl怎么用?PHP Web::checkUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Web
的用法示例。
在下文中一共展示了Web::checkUrl方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: role_report_user_allowed
function role_report_user_allowed(Web $w, $path)
{
return $w->checkUrl($path, "report", null, "*");
}
示例2: role_file_download_allowed
function role_file_download_allowed(Web $w, $path)
{
return $w->checkUrl($path, "file", null, "index") || $w->checkUrl($path, "file", null, "path") || $w->checkUrl($path, "file", null, "atthumb") || $w->checkUrl($path, "file", null, "atdel") || $w->checkUrl($path, "file", null, "printview") || $w->checkUrl($path, "file", null, "atfile") || $w->checkUrl($path, "file", null, "thumb");
}
示例3: role_bend_user_allowed
function role_bend_user_allowed(Web $w, $path)
{
return $w->checkUrl($path, "bend", "workhours", ["index", "editworkentry", "enter", "ajax_getchildcategories", "list"]) || $w->checkUrl($path, "bend", "electricity", ["index"]) || $w->checkUrl($path, "bend", "", "index");
}
示例4: role_inbox_sender_allowed
function role_inbox_sender_allowed(Web $w, $path)
{
return $w->checkUrl($path, "inbox", null, '*');
//preg_match("/inbox(-.*)?\//",$path);
}
示例5: role_task_user_allowed
function role_task_user_allowed(Web $w, $path)
{
return $w->checkUrl($path, "task", null, "index") || $w->checkUrl($path, "task", null, "tasklist") || $w->checkUrl($path, "task", null, "edit") || $w->checkUrl($path, "task", null, "ajaxGetExtraDetails") || $w->checkUrl($path, "task", null, "ajaxGetFieldForm") || $w->checkUrl($path, "task", null, "addtime") || $w->checkUrl($path, "task", null, "edittime") || $w->checkUrl($path, "task", null, "updateusergroupnotify") || $w->checkUrl($path, "task", null, "updateusertasknotify") || $w->checkUrl($path, "task", null, "taskweek") || $w->checkUrl($path, "task", null, "taskAjaxSelectbyTaskGroup");
}
示例6: role_comment_allowed
function role_comment_allowed(Web $w, $path)
{
return $w->checkUrl($path, "admin", null, "commnet") || $w->checkUrl($path, "admin", null, "deletecomment") || $w->checkUrl($path, "admin", null, "ajaxSaveComment");
}