CKFinder 3 – PHP Connector Documentation
MaskBuilder Class Reference

Public Member Functions

 allow ($permission)
 
 disallow ($permission)
 
 mergeRules ($inputMask)
 

Protected Attributes

 $maskAllowed = 0
 
 $maskDisallowed = 0
 

Detailed Description

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.

Member Function Documentation

◆ allow()

allow (   $permission)

Enables the permission bit in the mask for allowed permissions.

Parameters
int$permissionpermission numeric value
See also
Permission
Returns
MaskBuilder $this

◆ disallow()

disallow (   $permission)

Enables the permission bit in the mask for disallowed permissions.

Parameters
int$permissionpermission numeric value
See also
Permission
Returns
MaskBuilder $this

◆ mergeRules()

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.

Parameters
int$inputMaskmask numeric value
Returns
int computed mask value
See also
Acl::getComputedMask()

The documentation for this class was generated from the following file: