Collects a list of rules for generating
LabelStatements. Also used for collecting dynamically generated permission rules for a User.
Created by the Platform and passed to the hUserPermissionRules hook.
function rule(label, statement, permissions)
Add a rule.
label is the
Ref of any store object.
statement is a
permissions is one or more
O.PERM_* constants ORed together.
function add(label, statement, permissions)
rule() so the code in hUserPermissionRules hooks reads a bit more nicely.
LabelStatements object by applying the rules specified by the calls to