¡@

Home 

php Programming Glossary: perm_read

Bitmask in PHP for settings?

http://stackoverflow.com/questions/5319475/bitmask-in-php-for-settings

It's not hard to come up with a simple class. define 'PERM_READ' 0 define 'PERM_WRITE' 1 class BitField private value public.. set n false bf new BitField user permissions if bf get PERM_READ can read bf set PERM_WRITE true user permissions bf getValue..

Improve this PHP Bitfield Class for settings/permissions?

http://stackoverflow.com/questions/5380506/improve-this-php-bitfield-class-for-settings-permissions

option I really would rather not have to Define define 'PERM_READ' 1 in other parts of the site script would like to keep it somewhat.. it comes to the whole OO arena. php class BitField const PERM_READ 0 const PERM_WRITE 1 const PERM_ADMIN 2 const PERM_ADMIN2 3.. turn these permission to on true bf set bf PERM_READ bf set bf PERM_WRITE bf set bf PERM_ADMIN bf set bf PERM_ADMIN2..