Zend - The PHP Company




Code Gallery: kganger


permissions.class.php  

Type: class
Added by: kganger
Entered: 04/03/2004
Last modified: 03/12/2003
Rating: - (fewer than 3 votes)
Views: 7442
This class uses integer bitmasks to represent permissions. This allows for easy and acurate storage of complex permissions. To aid in ease of use the class will convert bitmasks to an associative array of boolean permissions and then convert the array back to a bitmask for easy storage.




Search