About ZEND_ACL
With Zend_acl, I put the last generation of $acl into a file, and now I'm going to take it back out and become an array. But I have to take out a separate role and resources to judge very troublesome, do not know what Daniel did, and would like to listen to the advice.
PHP Code
Zend_acl object ([_roleregistry:protected] = Zend_acl_role_registry object ([_roles:protected] = > Array ([guest] = = Array ([in Stance] = 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] = m Ember) [parents] = = Array ( [Guest] = Zend_acl_role Object ( [_roleid:protected] = guest) ) [children] = = Array ( )) [admin] = = Array ( [Instance] = Zend_acl_role Object ([_roleid:prot Ected] = 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 ())) [_isallowedro Le:protected] [_isallowedresource:protected] = [_isallowedprivilege:protected] [_rules:protect ed] = Array ([allresources] = Array ([allroles] = array ([allprivileges] = = Array ( [Type] = Type_deny [assert] = = ) [Byprivilegeid] = = Array ( ) ) [Byroleid] = = Array ()) [Byresourceid] = = Array ([entertain] = = Array ( [Byroleid] = = Array ([gues T] = Array ([Byprivilegeid] = A Rray ([watch] = ARR Ay ([ty PE] = Type_allow [assert] = = ) ) [Allprivileges] = ARray ([type] = = [assert] = =) ) [member] = = Array ([Byprivilegeid] = = Array ([watch] = = Array ([Type] = Type_allow [assert] = =) [Edit] = = Array ( [Type] = Type_allow [assert] = = ) [Add] = ARR Ay ([ty PE] = 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] = =) ) ) )..................)