class staticbo.rules. ValidationContext
Source: rules/
Provides the context for custom validation rules.
Property
Method
new ValidationContext(dataStore, brokenRules)
Creates a new validation context object. Warning: Validation context objects are created in models internally. They are intended only to make publicly available the context for custom validation rules.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
dataStore |
|
The storage of the property values. |
|
brokenRules |
|
The list of the broken rules. |
- Throws
-
Argument error: The data store must be a DataStore object.
-
Argument error: The broken rules must be a BrokenRuleList object.
Property
read-onlybrokenRules
bo.rules.BrokenRuleList
The list of the broken rules.
Method
read-onlygetValue()
Returns the value of a model property.