PHP Classes
elePHPant
Icontem

Permissions: Manipulate user access permission using bit masks

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2004-03-04 (10 years ago) RSS 2.0 feedStarStarStar 58%Total: 4,062 This week: 2All time: 700 This week: 804Down
Version License Categories  
permission 1.0GNU General Public Lice...User Management, Math
Description Author  

This class uses integer bit masks to represent user access permissions. Each bit of an integer permission value represents one condition that determines whether the user can read, write, delete, etc. an associated resource. This allows easy and acurate storage of complex sets permissions in a single integer value.

The class can convert back and forth between permission bit mask values and an associative array of boolean values that has separate entries for each permission bit.

Picture of Keith
Name: Keith <contact>
Classes: 1 package by
Country: United States United States
Age: 36
All time rank: 68482 in United States United States
Week rank: 704 Down78 in United States United States Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example An example of how to use the permissions class
Plain text file permissions.class.php Class The class deal with bitmask permissions

 Version Control Unique User Downloads Download Rankings  
 0%Total:4,062All time:700
 This week:2This week:804Down
User Ratings User Comments (1)  
 All time
Utility:84%StarStarStarStarStar
Consistency:93%StarStarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:994
 
very nice! simple and useful! amazing.
6 years ago (Cesar Marinho)
67%StarStarStarStar