¡@

Home 

php Programming Glossary: bitfield

Bitmask in PHP for settings?

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

class. define 'PERM_READ' 0 define 'PERM_WRITE' 1 class BitField private value public function __construct value 0 this value.. 1 n new n public function clear n this set n false bf new BitField user permissions if bf get PERM_READ can read bf set PERM_WRITE..

Improve this PHP Bitfield Class for settings/permissions?

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

a newbie when it comes to the whole OO arena. php class BitField const PERM_READ 0 const PERM_WRITE 1 const PERM_ADMIN 2 const.. 0 This value will come from MySQL or Sessions bf new BitField user_permissions turn these permission to on true bf set bf.. derived concrete classes. For example php abstract class BitField private value public function __construct value 0 this value..