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


PHP Web::checkUrl方法代碼示例

本文整理匯總了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, "*");
}
開發者ID:itillawarra,項目名稱:cmfive,代碼行數:4,代碼來源:report.roles.php

示例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");
}
開發者ID:itillawarra,項目名稱:cmfive,代碼行數:4,代碼來源:file.roles.php

示例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");
}
開發者ID:careck,項目名稱:bendms,代碼行數:4,代碼來源:bend.roles.php

示例4: role_inbox_sender_allowed

function role_inbox_sender_allowed(Web $w, $path)
{
    return $w->checkUrl($path, "inbox", null, '*');
    //preg_match("/inbox(-.*)?\//",$path);
}
開發者ID:itillawarra,項目名稱:cmfive,代碼行數:5,代碼來源:inbox.roles.php

示例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");
}
開發者ID:itillawarra,項目名稱:cmfive,代碼行數:4,代碼來源:task.roles.php

示例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");
}
開發者ID:itillawarra,項目名稱:cmfive,代碼行數:4,代碼來源:admin.roles.php


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