isActive() public method
Returns a value indicating whether the validator is active for the given scenario and attribute.
A validator is active if
- the validator's
onproperty is empty, or - the validator's
onproperty contains the specified scenario
| public boolean isActive ( $scenario ) | ||
|---|---|---|
| $scenario | string |
Scenario name |
| return | boolean |
Whether the validator applies to the specified scenario. |
Please login to continue.