关于zend_acl,该如何解决
Jun 13, 2016 pm 01:37 PM
array
assert
gt
protected
type
关于zend_acl
用zend_acl ,把$acl最后生成的放到一个文件里,现在我把它反序列取出来,成为一个数组。但是我要取出单独一个角色和资源来判断非常麻烦,不知道大牛们是怎么做的,愿听指教。
- PHP code
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> Zend_Acl Object ( [_roleRegistry:protected] => Zend_Acl_Role_Registry Object ( [_roles:protected] => Array ( [guest] => Array ( [instance] => Zend_Acl_Role Object ( [_roleId:protected] => guest ) [parents] => Array ( ) [children] => Array ( [member] => Zend_Acl_Role Object ( [_roleId:protected] => member ) ) ) [member] => Array ( [instance] => Zend_Acl_Role Object ( [_roleId:protected] => member ) [parents] => Array ( [guest] => Zend_Acl_Role Object ( [_roleId:protected] => guest ) ) [children] => Array ( ) ) [admin] => Array ( [instance] => Zend_Acl_Role Object ( [_roleId:protected] => admin ) [parents] => Array ( ) [children] => Array ( ) ) ) ) [_resources:protected] => Array ( [entertain] => Array ( [instance] => Zend_Acl_Resource Object ( [_resourceId:protected] => entertain ) [parent] => [children] => Array ( ) ) [sports] => Array ( [instance] => Zend_Acl_Resource Object ( [_resourceId:protected] => sports ) [parent] => [children] => Array ( ) ) [news] => Array ( [instance] => Zend_Acl_Resource Object ( [_resourceId:protected] => news ) [parent] => [children] => Array ( ) ) ) [_isAllowedRole:protected] => [_isAllowedResource:protected] => [_isAllowedPrivilege:protected] => [_rules:protected] => Array ( [allResources] => Array ( [allRoles] => Array ( [allPrivileges] => Array ( [type] => TYPE_DENY [assert] => ) [byPrivilegeId] => Array ( ) ) [byRoleId] => Array ( ) ) [byResourceId] => Array ( [entertain] => Array ( [byRoleId] => Array ( [guest] => Array ( [byPrivilegeId] => Array ( [watch] => Array ( [type] => TYPE_ALLOW [assert] => ) ) [allPrivileges] => Array ( [type] => [assert] => ) ) [member] => Array ( [byPrivilegeId] => Array ( [watch] => Array ( [type] => TYPE_ALLOW [assert] => ) [edit] => Array ( [type] => TYPE_ALLOW [assert] => ) [add] => Array ( [type] => TYPE_ALLOW [assert] => ) ) [allPrivileges] => Array ( [type] => [assert] => ) ) [admin] => Array ( [byPrivilegeId] => Array ( [watch] => Array ( [type] => TYPE_ALLOW [assert] => ) [edit] => Array ( [type] => TYPE_ALLOW [assert] => ) [add] => Array ( [type] => TYPE_ALLOW [assert] => ) [delete] => Array ( [type] => TYPE_ALLOW [assert] => ) ) [allPrivileges] => Array ( [type] => [assert] => ) ) ) )……………… ) <div class="clear"> </div>
登入後複製
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

熱門文章
擊敗分裂小說需要多長時間?
3 週前
By DDD
倉庫:如何復興隊友
3 週前
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island冒險:如何獲得巨型種子
3 週前
By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.能量晶體解釋及其做什麼(黃色晶體)
1 週前
By 尊渡假赌尊渡假赌尊渡假赌
公眾號網頁更新緩存難題:如何避免版本更新後舊緩存影響用戶體驗?
3 週前
By 王林

熱門文章
擊敗分裂小說需要多長時間?
3 週前
By DDD
倉庫:如何復興隊友
3 週前
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island冒險:如何獲得巨型種子
3 週前
By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.能量晶體解釋及其做什麼(黃色晶體)
1 週前
By 尊渡假赌尊渡假赌尊渡假赌
公眾號網頁更新緩存難題:如何避免版本更新後舊緩存影響用戶體驗?
3 週前
By 王林

熱門文章標籤

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)