-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
FeatureNew functionality to be addedNew functionality to be added
Description
// from https://secure.php.net/manual/en/language.operators.bitwise.php#108679
abstract class BitwiseFlag
{
protected $flags;
/*
* Note: these functions are protected to prevent outside code
* from falsely setting BITS. See how the extending class 'User'
* handles this.
*
*/
protected function isFlagSet($flag)
{
return (($this->flags & $flag) == $flag);
}
protected function setFlag($flag, $value)
{
if($value)
{
$this->flags |= $flag;
}
else
{
$this->flags &= ~$flag;
}
}
}Metadata
Metadata
Assignees
Labels
FeatureNew functionality to be addedNew functionality to be added