MaskBuilder

MaskBuilder

class MaskBuilder

This class allows you to build cumulative permissions easily, or convert masks to a human-readable format.

$builder = new MaskBuilder(); $builder ->add('view') ->add('create') ->add('edit') ; vardump($builder->get()); // int(7) vardump($builder->getPattern()); // string(32) ".............................ECV"

We have defined some commonly used base permissions which you can use: - VIEW: the SID is allowed to view the domain object / field - CREATE: the SID is allowed to create new instances of the domain object / fields - EDIT: the SID is allowed to edit existing instances of the domain object / field - DELETE: the SID is allowed to delete domain objects - UNDELETE: the SID is allowed to recover domain objects from trash - OPERATOR: the SID is allowed to perfo