How to solve zend_acl

Source: Internet
Author: User
About zend_acl, zend_acl is used to put the last generated $ acl into a file. now I take it out of reverse sequence and make it an array. However, it is very troublesome for me to retrieve a single role and resource. I do not know how the experts did this. I would like to hear your advice. PHPcodeZend_AclObject ([_ roleRegistry: protected] & gt; Zend_Acl_Role_Regist about zend_acl
Use zend_acl to put the last generated $ acl into a file. now I take it out of reverse sequence and make it an array. However, it is very troublesome for me to retrieve a single role and resource. I do not know how the experts did this. I would like to hear your advice.

PHP code
  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] =>                                                 )                                        )                                )                        )………………)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.