|
Previous Class |
Solar_Role_Adapter_File |
Next Page |
Solar_Role_Adapter_File
Adapter to fetch roles from a Unix-style groups file.
The file format is "group:user1,user2,user3\n".
sysadmin:pmjones
writer:pmjones,boshag,agtsmith
editor:pmjones,agtsmith
Catalog
This class is part of the Solar_Role package.
Inheritance:
- Solar_Base
- Solar_Role_Adapter
- Solar_Role_Adapter_File
- Solar_Role_Adapter
Constants
None.
Public Properties
These are all the public properties in the Solar_Role_Adapter_File class.
You can also view the list of all public, protected, and private properties.
$list- A public reference to the session store.
Public Methods
These are all the public methods in the Solar_Role_Adapter_File class.
You can also view the list of all public, protected, and private methods.
__call()- Provides magic "isRoleName()" to map to "is('role_name')".
__construct()- Constructor to set up the storage adapter.
__destruct()- Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().
apiVersion()- Reports the API version for this class.
dump()- Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
fetch()- Fetches the roles for a username.
is()- Check to see if a user is in a role.
isAll()- Check to see if a user is in all of the listed roles.
isAny()- Check to see if a user is in any of the listed roles.
load()- Load the list of roles for the given user from the adapter.
locale()- Looks up class-specific locale strings based on a key.
reset()- Resets the role list to nothing.