ZMObject
└─ZMRuleSet
public class ZMRuleSet
extends ZMObject
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | __construct(string id, array rules) Create new rule set. |
| void | Add a new ZMRule. |
| void | addRules(array rules) Add a list of ZMRules. |
| int | getId() Get the rule set id. |
| array | getRules() Get the validation rules. |
| void | removeRule(string type, string name) Remove a rule. |
| Methods inherited from org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public void __construct(string id, array rules)
Create new rule set.
public void addRule(ZMRule rule)
Add a new ZMRule.
public void addRules(array rules)
Add a list of ZMRules.
ZMRule instances.public int getId()
Get the rule set id.
public array getRules()
Get the validation rules.
ZMRule objects.public void removeRule(string type, string name)
Remove a rule.
A set of validation rules.