本文整理匯總了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");
}