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
on
property is empty, or - the validator's
on
property 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.