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.
O.labelStatementsBuilder() to create your own when you need to create a
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