Public Member Functions | |
allow ($permission) | |
disallow ($permission) | |
mergeRules ($inputMask) | |
Protected Attributes | |
$maskAllowed = 0 | |
$maskDisallowed = 0 | |
The MaskBuilder class.
A class used to build access control masks for folder access management. Two masks are used to handle access rule inheritance from parent directories.
allow | ( | $permission | ) |
Enables the permission bit in the mask for allowed permissions.
int | $permission | permission numeric value |
disallow | ( | $permission | ) |
Enables the permission bit in the mask for disallowed permissions.
int | $permission | permission numeric value |
mergeRules | ( | $inputMask | ) |
Merges mask permission rules to input mask numeric value.
Modifies input mask numeric value to enable bits set in $maskAllowed and disable bits set in $maskDisallowed.
int | $inputMask | mask numeric value |