Documentation


SEARCH

TABLE OF CONTENT

    1. Getting started 2. Basic concepts 3. Request dispatching 4. Context container 5. Dual MVC 6. Component model: 7. Security 8. Configuration 9. Session handling 10. I18n 11. Cache 12. Logging 13. Error handling 14. Advanced Topics 15. API reference

      Tutorials: Frequently Asqued Questions

      See also:


      Class: __RoleManager


      Class Overview

      This class stores and manages all the roles and associated permissions in 2 ways:


      • Roles definitions
      • Permissions required by system resources for each role to grant/revoke the access


      
      
      				

      Methods

      [ Top ]

      Method Summary

      __RoleManager   &getInstance()   This method return a singleton instance of __RoleManager instance
      __Role   &getRole()   Returns a __Role instance that correspond with the specified role id
      bool   hasRole()   Get if a role with the specified role id exists or not
      void   startup()  

      [ Top ]

      Methods

      getInstance


        __RoleManager &getInstance( )

      This method return a singleton instance of __RoleManager instance

      Return:  a reference to the current __RoleManager instance
      Access:  public



      getRole


        __Role &getRole( string $role_id  )

      Returns a __Role instance that correspond with the specified role id


      Parameters:
      TypeNameDescription
      string $role_id The role id

      Return:  The requested __Role instance
      Access:  public



      hasRole


        bool hasRole( string $role_id  )

      Get if a role with the specified role id exists or not


      Parameters:
      TypeNameDescription
      string $role_id The role id

      Return:  true if there is any role with the specified roile id
      Access:  public



      startup


        void startup( )

      Access:  public